tiny changes in custom mut api

This commit is contained in:
Dominik Maier
2020-03-28 11:55:10 +01:00
parent f370ef38c4
commit ab5e0703da
6 changed files with 39 additions and 25 deletions

View File

@ -229,7 +229,7 @@ u8 trim_case_custom(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) {
size_t retlen = afl->mutator->afl_custom_trim(afl->mutator->data, &retbuf);
if (unlikely(retlen < 0 || !retbuf))
if (unlikely(!retbuf))
FATAL("custom_trim failed (ret %zd)", retlen);
else if (unlikely(retlen > orig_len))
FATAL(