mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
fix for clang
This commit is contained in:
@ -2139,8 +2139,8 @@ havoc_stage:
|
||||
|
||||
LIST_FOREACH(&afl->custom_mutator_list, struct custom_mutator, {
|
||||
|
||||
if (el->stacked_custom &&
|
||||
rand_below(afl, 100) < el->stacked_custom_prob) {
|
||||
if (unlikely(el->stacked_custom &&
|
||||
rand_below(afl, 100) < el->stacked_custom_prob)) {
|
||||
|
||||
u8 *custom_havoc_buf = NULL;
|
||||
size_t new_len = el->afl_custom_havoc_mutation(
|
||||
@ -2170,7 +2170,8 @@ havoc_stage:
|
||||
|
||||
}
|
||||
|
||||
retry_havoc_step:
|
||||
retry_havoc_step : {
|
||||
|
||||
u32 r = rand_below(afl, MUT_STRATEGY_ARRAY_SIZE), item;
|
||||
|
||||
switch (mutation_array[r]) {
|
||||
@ -3250,6 +3251,8 @@ havoc_stage:
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (common_fuzz_stuff(afl, out_buf, temp_len)) { goto abandon_entry; }
|
||||
|
||||
/* out_buf might have been mangled a bit, so let's restore it to its
|
||||
|
Reference in New Issue
Block a user