mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 19:08:08 +00:00
fix attempt at post_process implementation
This commit is contained in:
@ -133,7 +133,12 @@ write_to_testcase(afl_state_t *afl, void **mem, u32 len, u32 fix) {
|
||||
|
||||
}
|
||||
|
||||
if (new_mem != *mem) { *mem = new_mem; }
|
||||
if (new_mem != *mem && new_mem != NULL && new_size > 0) {
|
||||
|
||||
*mem = afl_realloc((void **)mem, new_size);
|
||||
memmove(*mem, new_mem, new_size);
|
||||
|
||||
}
|
||||
|
||||
if (unlikely(afl->custom_mutators_count)) {
|
||||
|
||||
|
Reference in New Issue
Block a user