This commit is contained in:
vanhauser-thc
2023-03-31 08:12:32 +02:00
parent 8f17c81691
commit 9eed60d105

View File

@ -2137,7 +2137,7 @@ havoc_stage:
u32 *mutation_array; u32 *mutation_array;
// if ( ... ) // if ( ... )
mutation_array = (u32 **)&mutation_array_explore; mutation_array = (u32 *)&mutation_array_explore;
mutation_array_len = sizeof(mutation_array_explore) / 4; mutation_array_len = sizeof(mutation_array_explore) / 4;
r_max = mutation_array_len; r_max = mutation_array_len;
@ -2192,6 +2192,7 @@ havoc_stage:
} }
u32 r = rand_below(afl, r_max); u32 r = rand_below(afl, r_max);
switch (mutation_array[r]) { switch (mutation_array[r]) {
case 0: { case 0: {