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-one.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-one.c')
-rw-r--r-- | src/afl-fuzz-one.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c index 8dfafb7b..b1bbad0a 100644 --- a/src/afl-fuzz-one.c +++ b/src/afl-fuzz-one.c @@ -1618,8 +1618,8 @@ custom_mutator_stage: afl->mutator->data, out_buf, len, &mutated_buf, new_buf, target->len, max_seed_size); - if (unlikely(mutated_size < 0)) - FATAL("custom_fuzz returned %zd", mutated_size); + if (unlikely(!mutated_buf)) + FATAL("Error in custom_fuzz. Size returned: %zd", mutated_size); if (mutated_size > len) afl->out_size = mutated_size; @@ -1734,7 +1734,7 @@ havoc_stage: u8 * custom_havoc_buf = NULL; size_t new_len = afl->mutator->afl_custom_havoc_mutation( afl->mutator->data, out_buf, temp_len, &custom_havoc_buf, MAX_FILE); - if (unlikely(new_len < 0)) + if (unlikely(!custom_havoc_buf)) FATAL("Error in custom_havoc (return %zd)", new_len); if (likely(new_len > 0 && custom_havoc_buf)) { |