diff options
author | hexcoder- <heiko@hexco.de> | 2020-03-28 12:16:01 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-03-28 12:16:01 +0100 |
commit | 6ac40e2cc5edab506d716e33f0cba356690a30c6 (patch) | |
tree | af02917d3857f49d804ecd5a1d29374ff62d4209 /src/afl-fuzz-run.c | |
parent | 5625e059e1ca99bb6f82a619063cf9aebfdd0a95 (diff) | |
parent | 11767bec0e567db943e612b22d9ef4e25682b2b9 (diff) | |
download | afl++-6ac40e2cc5edab506d716e33f0cba356690a30c6.tar.gz |
Merge branch 'dev' of https://github.com/vanhauser-thc/AFLplusplus into dev
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r-- | src/afl-fuzz-run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index 315539d1..90cb2ed5 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -221,7 +221,7 @@ void write_to_testcase(afl_state_t *afl, void *mem, u32 len) { size_t new_size = afl->mutator->afl_custom_pre_save(afl->mutator->data, mem, len, &new_buf); - if (unlikely(new_size <= 0 || !new_buf)) + if (unlikely(!new_buf)) FATAL("Custom_pre_save failed (ret: %lu)", (long unsigned)new_size); /* everything as planned. use the new data. */ |