fixed lasan defaults evaluation

This commit is contained in:
killerra
2024-07-28 11:30:48 +01:00
committed by GitHub
parent 6e37f9b237
commit 26ae4124f3

View File

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