google / google/atheris

Create LeakSanitizer suppression rules to run with detect_leaks=1

Open
#81 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
127
PR merge metrics
No merged PRs in 30d

Description

Hi,

Atheris is currently recommended to run with ASan's `detect_leaks=0` as per [native_extension_fuzzing.md#leak-detection](https://github.com/google/atheris/blob/33a1322dadaf4d561f7c99b5641cb33748d4036c/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](https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer#suppressions).

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.