@@ -4250,14 +4250,29 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
4250
4250
u64 temp_temp_puppet =
4251
4251
afl -> queued_paths + afl -> unique_crashes - temp_total_found ;
4252
4252
afl -> total_puppet_find = afl -> total_puppet_find + temp_temp_puppet ;
4253
- for (i = 0 ; i < operator_num ; ++ i ) {
4254
4253
4255
- if (MOpt_globals .cycles_v2 [ i ] > MOpt_globals . cycles_v3 [ i ]) {
4254
+ if (MOpt_globals .is_pilot_mode ) {
4256
4255
4257
- MOpt_globals .finds_v2 [i ] += temp_temp_puppet ;
4256
+ for (i = 0 ; i < operator_num ; ++ i ) {
4257
+
4258
+ if (MOpt_globals .cycles_v2 [i ] > MOpt_globals .cycles_v3 [i ]) {
4259
+
4260
+ MOpt_globals .finds_v2 [i ] += temp_temp_puppet ;
4261
+
4262
+ }
4258
4263
4259
4264
}
4260
4265
4266
+ } else {
4267
+
4268
+ for (i = 0 ; i < operator_num ; i ++ ) {
4269
+
4270
+ if (afl -> core_operator_cycles_puppet_v2 [i ] > afl -> core_operator_cycles_puppet_v3 [i ])
4271
+
4272
+ afl -> core_operator_finds_puppet_v2 [i ] += temp_temp_puppet ;
4273
+
4274
+ }
4275
+
4261
4276
}
4262
4277
4263
4278
} /* if */
@@ -4437,7 +4452,6 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
4437
4452
4438
4453
afl -> total_pacemaker_time += * MOpt_globals .pTime ;
4439
4454
* MOpt_globals .pTime = 0 ;
4440
- afl -> temp_puppet_find = afl -> total_puppet_find ;
4441
4455
new_hit_cnt = afl -> queued_paths + afl -> unique_crashes ;
4442
4456
4443
4457
if (MOpt_globals .is_pilot_mode ) {
@@ -4448,6 +4462,7 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
4448
4462
4449
4463
}
4450
4464
4465
+ afl -> temp_puppet_find = afl -> total_puppet_find ;
4451
4466
u64 temp_stage_finds_puppet = 0 ;
4452
4467
for (i = 0 ; i < operator_num ; ++ i ) {
4453
4468
@@ -4530,6 +4545,15 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
4530
4545
4531
4546
} else {
4532
4547
4548
+ for (i = 0 ; i < operator_num ; i ++ )
4549
+ {
4550
+
4551
+ afl -> core_operator_finds_puppet [i ] = afl -> core_operator_finds_puppet_v2 [i ];
4552
+ afl -> core_operator_cycles_puppet [i ] = afl -> core_operator_cycles_puppet_v2 [i ];
4553
+ temp_stage_finds_puppet += afl -> core_operator_finds_puppet [i ];
4554
+
4555
+ }
4556
+
4533
4557
afl -> key_module = 2 ;
4534
4558
4535
4559
afl -> old_hit_count = new_hit_cnt ;
0 commit comments