trailofbits / ruzzy

A coverage-guided fuzzer for pure Ruby code and Ruby C extensions
GNU Affero General Public License v3.0
78 stars 5 forks source link

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

Open disconnect3d opened 6 months ago

disconnect3d commented 6 months ago

Similarly to the issue in Atheris - https://github.com/google/atheris/issues/81 - we currently recommend running Ruzzy with ASan's detect_leaks=0 due to the fact that the Ruby interpreter leaks memory.

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 make them "builtin" (so they are applied automagically) if there is such an option.