Skip to content
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

Detect GDBMODE and compile fuzz targets appropriately #78

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

cmeister2
Copy link
Collaborator

Compiling GDB on its own doesn't really do much if you don't also drop the level of optimisation. Testing seems to indicate a level of -O0 to give the best results.

To trigger this behaviour you can either call export GDBMODE=1 before running compile in a shell environment, or call the infra/helper as

python infra/helper.py shell --architecture <arch> --sanitizer <sanitizer> -e GDBMODE=1 curl

@cmeister2 cmeister2 merged commit 1260cc6 into master Jul 26, 2023
21 checks passed
@cmeister2 cmeister2 deleted the cm2/gdbbehaviour branch July 26, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant