mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 01:01:33 +00:00
disable memory limits for ASAN build
This commit is contained in:
parent
effa766d4a
commit
24b9eddc7e
2
Makefile
2
Makefile
@ -153,7 +153,7 @@ endif
|
||||
|
||||
ifdef ASAN_BUILD
|
||||
$(info Compiling ASAN version of binaries)
|
||||
CFLAGS+=-fsanitize=address -fstack-protector-strong
|
||||
CFLAGS+=-fsanitize=address -fstack-protector-strong -D_ASAN_BUILD=1
|
||||
LDFLAGS+=-fsanitize=address -fstack-protector-strong
|
||||
endif
|
||||
|
||||
|
@ -721,6 +721,13 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
}
|
||||
|
||||
#ifdef _ASAN_BUILD
|
||||
if (!afl->fsrv.mem_limit) {
|
||||
WARNF("in the ASAN build we disable all memory limits");
|
||||
afl->fsrv.mem_limit = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
setup_signal_handlers();
|
||||
check_asan_opts();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user