Handle detect_leaks 0 and false

This commit is contained in:
killerra
2024-08-02 14:51:42 +01:00
committed by GitHub
parent 4369d6209f
commit dd16be405a

View File

@ -108,7 +108,7 @@ void set_sanitizer_defaults() {
if (!have_san_options) { strcpy(buf, default_options); }
if (have_asan_options) {
if (NULL != strstr(have_asan_options, "detect_leaks=false")) {
if (NULL != strstr(have_asan_options, "detect_leaks=0") || NULL != strstr(have_asan_options, "detect_leaks=false")) {
strcat(buf, "exitcode=" STRINGIFY(LSAN_ERROR) ":fast_unwind_on_malloc=0:print_suppressions=0:detect_leaks=0:malloc_context_size=0:");