mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 03:18:07 +00:00
add new seed selection algo and make it the default
This commit is contained in:
@ -554,7 +554,10 @@ u8 fuzz_one_original(afl_state_t *afl) {
|
||||
* PERFORMANCE SCORE *
|
||||
*********************/
|
||||
|
||||
orig_perf = perf_score = calculate_score(afl, afl->queue_cur);
|
||||
if (likely(!afl->old_seed_selection))
|
||||
orig_perf = perf_score = afl->queue_cur->perf_score;
|
||||
else
|
||||
orig_perf = perf_score = calculate_score(afl, afl->queue_cur);
|
||||
|
||||
if (unlikely(perf_score == 0)) { goto abandon_entry; }
|
||||
|
||||
@ -2769,7 +2772,10 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
|
||||
* PERFORMANCE SCORE *
|
||||
*********************/
|
||||
|
||||
orig_perf = perf_score = calculate_score(afl, afl->queue_cur);
|
||||
if (likely(!afl->old_seed_selection))
|
||||
orig_perf = perf_score = afl->queue_cur->perf_score;
|
||||
else
|
||||
orig_perf = perf_score = calculate_score(afl, afl->queue_cur);
|
||||
|
||||
if (unlikely(afl->shm.cmplog_mode && !afl->queue_cur->fully_colorized)) {
|
||||
|
||||
|
Reference in New Issue
Block a user