diff options
| author | vanhauser-thc <vh@thc.org> | 2021-12-02 10:41:24 +0100 |
|---|---|---|
| committer | vanhauser-thc <vh@thc.org> | 2021-12-02 10:41:24 +0100 |
| commit | ca7144161f900a0f5c8b76922a0102fbcc291f2c (patch) | |
| tree | b613e31142b9598c0f385c3e40ff25366e292035 /instrumentation | |
| parent | 80d5afa3738c06a376f8a256129537a9cbdd2229 (diff) | |
| download | afl++-ca7144161f900a0f5c8b76922a0102fbcc291f2c.tar.gz | |
fixes
Diffstat (limited to 'instrumentation')
| -rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 5d198ada..cc73e5ec 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -275,6 +275,8 @@ static void __afl_map_shm(void) { char *id_str = getenv(SHM_ENV_VAR); + if (__afl_final_loc) { ++__afl_final_loc; } // as we count starting 0 + if (__afl_final_loc) { __afl_map_size = __afl_final_loc; |
