diff options
author | van Hauser <vh@thc.org> | 2020-04-24 12:09:25 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-04-24 12:09:25 +0200 |
commit | 766085293da050f84a397161e7a84384620956a2 (patch) | |
tree | 1ea92db874c0fc8487742bf926e65e1385cd7bf6 /src/afl-fuzz-state.c | |
parent | 4a593d04056ce37743f6922f7d0f0002a6b4e0d5 (diff) | |
download | afl++-766085293da050f84a397161e7a84384620956a2.tar.gz |
variable map size fix, error reporting through forkserver, code format
Diffstat (limited to 'src/afl-fuzz-state.c')
-rw-r--r-- | src/afl-fuzz-state.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c index b38c9ec5..9f48182b 100644 --- a/src/afl-fuzz-state.c +++ b/src/afl-fuzz-state.c @@ -81,7 +81,15 @@ void afl_state_init(afl_state_t *afl, uint32_t map_size) { and out_size are NULL/0 by default. */ memset(afl, 0, sizeof(afl_state_t)); - if (!map_size) { afl->shm.map_size = MAP_SIZE; } + if (!map_size) { + + afl->shm.map_size = MAP_SIZE; + + } else { + + afl->shm.map_size = map_size; + + } afl->w_init = 0.9; afl->w_end = 0.3; |