Skip to content

Cherry-pick adding sanitize-coverage args #73618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

thetruestblue
Copy link
Contributor

As is, you cannot set all default fuzzer options directly using -sanitize-coverage. Because of this you can use default fuzzer sanitize-coverage args, or a limited number coverage options.

This PR adds pc-table and inline-8bit-counter as valid args to be parsed for sanitize-coverage flag. These are default fuzzer options -- and will allow customizing sanitizer-coverage in variations of fuzzer defaults. (i.e. w/o pc-table enabled).

In upstream clang the option -fno-sanitize-coverage exists to disable various coverage options. Swift currently does not have a convention of using excluding args for sanitizer flags. This aims to limit the need for a new flag by inclusively setting desired coverage up to current fuzzer defaults.

Corresponding swift-driver change: swiftlang/swift-driver#1604

rdar://127881891

thetruestblue and others added 2 commits May 14, 2024 10:23
…counter.

As is, you cannot set all default fuzzer options directly using -sanitize-coverage. Because of this you can use default fuzzer sanitize-coverage args, or a limited number coverage options.

This PR adds pc-table and inline-8bit-counter as valid args to be parsed for sanitize-coverage flag. These are default fuzzer options -- and will allow customizing sanitizer-coverage in variations of fuzzer defaults. (i.e. w/o pc-table enabled).

In upstream clang the option -fno-sanitize-coverage exists to disable various coverage options. Swift currently does not have a convention of using excluding args for sanitizer flags. This aims to limit the need for a new flag by inclusively setting desired coverage up to current fuzzer defaults.

rdar://127881891
@thetruestblue thetruestblue requested a review from a team as a code owner May 14, 2024 17:26
@thetruestblue
Copy link
Contributor Author

Using:
swiftlang/swift-driver#1604
@swift-ci smoke test

@thetruestblue
Copy link
Contributor Author

@swift-ci please test

@usama54321
Copy link
Contributor

@swift-ci please test Windows

@thetruestblue thetruestblue enabled auto-merge May 15, 2024 04:40
@thetruestblue thetruestblue merged commit ee616b1 into swiftlang:release/6.0 May 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants