mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 08:11:34 +00:00
Only execute the mutated input when it is not empty
This commit is contained in:
parent
b2f0b6f2b4
commit
a949b40d11
10
afl-fuzz.c
10
afl-fuzz.c
@ -5581,10 +5581,12 @@ static u8 fuzz_one(char** argv) {
|
||||
for (stage_cur = 0 ; stage_cur < stage_max ; stage_cur++) {
|
||||
size_t orig_size = (size_t) len;
|
||||
size_t mutated_size = custom_mutator(out_buf, orig_size, mutated_buf, max_seed_size, UR(UINT32_MAX));
|
||||
out_buf = ck_realloc(out_buf, mutated_size);
|
||||
memcpy(out_buf, mutated_buf, mutated_size);
|
||||
if (common_fuzz_stuff(argv, out_buf, (u32)mutated_size)) {
|
||||
goto abandon_entry;
|
||||
if (mutated_size > 0) {
|
||||
out_buf = ck_realloc(out_buf, mutated_size);
|
||||
memcpy(out_buf, mutated_buf, mutated_size);
|
||||
if (common_fuzz_stuff(argv, out_buf, (u32) mutated_size)) {
|
||||
goto abandon_entry;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
LLVMFuzzerMutate;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user