From 7c8246f18f86e1a1e853908bec443bcf0c70e024 Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Mon, 9 May 2022 14:30:40 +0200 Subject: fix --- src/afl-fuzz-mutators.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/afl-fuzz-mutators.c') diff --git a/src/afl-fuzz-mutators.c b/src/afl-fuzz-mutators.c index b6aeec63..9407adfb 100644 --- a/src/afl-fuzz-mutators.c +++ b/src/afl-fuzz-mutators.c @@ -460,6 +460,8 @@ u8 trim_case_custom(afl_state_t *afl, struct queue_entry *q, u8 *in_buf, } out_len = retlen; + // TODO are we sure that retbuf fits into out_buf if retbuf can actually + // increase in size? memcpy(out_buf, retbuf, retlen); /* Tell the custom mutator that the trimming was successful */ -- cgit 1.4.1