diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-04-13 16:57:19 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-04-13 16:57:19 +0200 |
commit | 326ab632c378878c96f44586a6e1f3dfa3db2276 (patch) | |
tree | af7203c4502671c04b6b87545a9e29b4e2cca87d /src/afl-fuzz-bitmap.c | |
parent | dda096da03cae528dee9fd53e64896e93efe8f4a (diff) | |
download | afl++-326ab632c378878c96f44586a6e1f3dfa3db2276.tar.gz |
fixed uaf and warnings
Diffstat (limited to 'src/afl-fuzz-bitmap.c')
-rw-r--r-- | src/afl-fuzz-bitmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c index b6a494db..9603f2f5 100644 --- a/src/afl-fuzz-bitmap.c +++ b/src/afl-fuzz-bitmap.c @@ -535,7 +535,7 @@ u8 save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) { if (unlikely(len == 0)) return 0; u8 *queue_fn = ""; - u8 hnb; + u8 hnb = '\0'; s32 fd; u8 keeping = 0, res; @@ -718,9 +718,9 @@ u8 save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) { // if the user wants to be informed on new crashes - do that #if !TARGET_OS_IPHONE - if (system(afl->infoexec) == -1) - hnb += 0; // we dont care if system errors, but we dont want a - // compiler warning either + // we dont care if system errors, but we dont want a + // compiler warning either + (void)(system(afl->infoexec)+1); #else WARNF("command execution unsupported"); #endif |