about summary refs log tree commit diff
path: root/src/afl-analyze.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-06-26 01:14:21 +0200
committerhexcoder- <heiko@hexco.de>2020-06-26 01:14:21 +0200
commit07fead04663b491c0a2f9053630e9a175dcbf635 (patch)
tree0fb73e9344d71279dce9384f8b9213490df2aed7 /src/afl-analyze.c
parent8bd8442bcc5a57a6ce5461e26cd957b343a12fc2 (diff)
downloadafl++-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.c3
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();