mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 19:08:08 +00:00
post_process 0/NULL return support
This commit is contained in:
@ -647,8 +647,19 @@ save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) {
|
||||
|
||||
if (afl->fsrv.exec_tmout < afl->hang_tmout) {
|
||||
|
||||
u8 new_fault;
|
||||
len = write_to_testcase(afl, &mem, len, 0);
|
||||
u8 new_fault;
|
||||
u32 tmp_len = write_to_testcase(afl, &mem, len, 0);
|
||||
|
||||
if (likely(tmp_len)) {
|
||||
|
||||
len = tmp_len;
|
||||
|
||||
} else {
|
||||
|
||||
len = write_to_testcase(afl, &mem, len, 1);
|
||||
|
||||
}
|
||||
|
||||
new_fault = fuzz_run_target(afl, &afl->fsrv, afl->hang_tmout);
|
||||
classify_counts(&afl->fsrv);
|
||||
|
||||
|
Reference in New Issue
Block a user