Skip to content

Add support for a --sanitize=fuzzer flag #8729

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

DanBlackwell
Copy link
Contributor

Motivation:

I hope that this should fix #8731, and make it easier to build with libFuzzer.

Modifications:

Add support for a -sanitize=fuzzer option in swift-build, that sets the correct flags (including -parse-as-library) to build a binary for fuzzing. Add an additional test to make sure that these flags get set.

@thomasvl
Copy link
Contributor

Once this lands, could this get merged into a patch release or would it have to wait for the next minor release?

@dschaefer2
Copy link
Member

@swift-ci please test

@DanBlackwell
Copy link
Contributor Author

Hi @dschaefer2, I see that some of the automated checks failed - when I looked at the logs I couldn't figure out which tests were newly failing, is there a way I can get back at the logs now or will it need rerunning?

@dschaefer2
Copy link
Member

@swift-ci please test

1 similar comment
@DanBlackwell
Copy link
Contributor Author

@swift-ci please test

@DanBlackwell
Copy link
Contributor Author

@swift-ci please test Linux

@DanBlackwell DanBlackwell merged commit d23e6a7 into swiftlang:main Jun 12, 2025
6 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.

Fuzzing support is broken since Xcode 15
3 participants