fixed asan mem limit

This commit is contained in:
Dominik Maier
2020-04-01 12:43:26 +02:00
parent 24b9eddc7e
commit 29b1e30126
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ endif
ifdef ASAN_BUILD ifdef ASAN_BUILD
$(info Compiling ASAN version of binaries) $(info Compiling ASAN version of binaries)
CFLAGS+=-fsanitize=address -fstack-protector-strong -D_ASAN_BUILD=1 CFLAGS+=-fsanitize=address -fstack-protector-strong
LDFLAGS+=-fsanitize=address -fstack-protector-strong LDFLAGS+=-fsanitize=address -fstack-protector-strong
endif endif

View File

@ -721,7 +721,7 @@ int main(int argc, char **argv_orig, char **envp) {
} }
#ifdef _ASAN_BUILD #if defined(__SANITIZE_ADDRESS__)
if (!afl->fsrv.mem_limit) { if (!afl->fsrv.mem_limit) {
WARNF("in the ASAN build we disable all memory limits"); WARNF("in the ASAN build we disable all memory limits");
afl->fsrv.mem_limit = 0; afl->fsrv.mem_limit = 0;