google / atheris

Apache License 2.0
1.35k stars 111 forks source link

Create LeakSanitizer suppression rules to run with detect_leaks=1 #81

Open disconnect3d opened 4 months ago

disconnect3d commented 4 months ago

Hi,

Atheris is currently recommended to run with ASan's detect_leaks=0 as per native_extension_fuzzing.md#leak-detection.

I believe this can be fixed/changed by suppressing the Python initialization's memory leaks using the LeakSanitizer suppression rules.

We should implement those rules and recommend users to run with them, or, make them somehow "builtin" (so they are applied automagically) if there is such an option.