diff options
author | hexcoder- <heiko@hexco.de> | 2020-06-26 01:14:21 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-06-26 01:14:21 +0200 |
commit | 07fead04663b491c0a2f9053630e9a175dcbf635 (patch) | |
tree | 0fb73e9344d71279dce9384f8b9213490df2aed7 /src/afl-analyze.c | |
parent | 8bd8442bcc5a57a6ce5461e26cd957b343a12fc2 (diff) | |
download | afl++-07fead04663b491c0a2f9053630e9a175dcbf635.tar.gz |
fix shared memory leaks in afl-showmap, initialize cmplog_mode
Diffstat (limited to 'src/afl-analyze.c')
-rw-r--r-- | src/afl-analyze.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/afl-analyze.c b/src/afl-analyze.c index f9ba8860..56284f6f 100644 --- a/src/afl-analyze.c +++ b/src/afl-analyze.c @@ -1049,6 +1049,9 @@ int main(int argc, char **argv, char **envp) { check_environment_vars(envp); sharedmem_t shm = {0}; + + /* initialize cmplog_mode */ + shm.cmplog_mode = 0; trace_bits = afl_shm_init(&shm, map_size, 0); atexit(at_exit_handler); setup_signal_handlers(); |