diff options
author | vanhauser-thc <vh@thc.org> | 2024-10-30 10:55:38 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-10-30 10:55:44 +0100 |
commit | d1fd072b793cba16c28249abefe73ecb7feae4f2 (patch) | |
tree | f5d907aafec2fdfe4abca67f8357e9cb1b62d5f4 | |
parent | c282156451fd84733165743d94cdf40bb4b0a437 (diff) | |
download | afl++-d1fd072b793cba16c28249abefe73ecb7feae4f2.tar.gz |
fix
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 075d4d29..77a9623c 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -419,7 +419,7 @@ static void __afl_map_shm(void) { if ((ptr = getenv("AFL_MAP_SIZE")) != NULL) { val = atoi(ptr); } - if (val > MAP_INITIAL_SIZE) { + if (val > MAP_INITIAL_SIZE && val > __afl_final_loc) { __afl_map_size = val; |