curl / curl-fuzzer

Quality assurance testing for the curl project
MIT License
82 stars 29 forks source link

Detect GDBMODE and compile fuzz targets appropriately #78

Closed cmeister2 closed 11 months ago

cmeister2 commented 11 months ago

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