diff options
author | van Hauser <vh@thc.org> | 2020-10-15 15:48:39 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-10-15 15:48:39 +0200 |
commit | f41aafa4f7aa446c3cb1cbe6d77364cf32a6c6cb (patch) | |
tree | 7d46730b4b7f3b74ef78e42dfc9fdccb18985e4e /include/afl-fuzz.h | |
parent | 354bda28465588e424c0a93b413af01a603191ce (diff) | |
download | AFLplusplus-f41aafa4f7aa446c3cb1cbe6d77364cf32a6c6cb.tar.gz |
retake from mem if possible
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index acded98f..6204c81b 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -1165,6 +1165,10 @@ u8 *queue_testcase_get(afl_state_t *afl, struct queue_entry *q); void queue_testcase_retake(afl_state_t *afl, struct queue_entry *q, u32 old_len); +/* If trimming changes the testcase size we have to replace it */ +void queue_testcase_retake_mem(afl_state_t *afl, struct queue_entry *q, u8 *in, + u32 len, u32 old_len); + #if TESTCASE_CACHE == 1 #error define of TESTCASE_CACHE must be zero or larger than 1 #endif |