honor AFL_MAP_SIZE well outside of afl++

This commit is contained in:
vanhauser-thc
2022-06-08 10:56:11 +02:00
parent 683dcc4710
commit 83f32c5248
4 changed files with 41 additions and 10 deletions

View File

@ -130,11 +130,7 @@ write_to_testcase(afl_state_t *afl, void **mem, u32 len, u32 fix) {
}
if (new_mem != *mem) {
*mem = new_mem;
}
if (new_mem != *mem) { *mem = new_mem; }
/* everything as planned. use the potentially new data. */
afl_fsrv_write_to_testcase(&afl->fsrv, *mem, new_size);