mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
fix exploit, mmopt and rare schedule
This commit is contained in:
@ -243,13 +243,13 @@ enum {
|
||||
enum {
|
||||
|
||||
/* 00 */ EXPLORE, /* AFL default, Exploration-based constant schedule */
|
||||
/* 01 */ EXPLOIT, /* AFL's exploitation-based const. */
|
||||
/* 02 */ FAST, /* Exponential schedule */
|
||||
/* 03 */ COE, /* Cut-Off Exponential schedule */
|
||||
/* 04 */ LIN, /* Linear schedule */
|
||||
/* 05 */ QUAD, /* Quadratic schedule */
|
||||
/* 06 */ RARE, /* Rare edges */
|
||||
/* 07 */ MMOPT, /* Modified MOPT schedule */
|
||||
/* 01 */ MMOPT, /* Modified MOPT schedule */
|
||||
/* 02 */ EXPLOIT, /* AFL's exploitation-based const. */
|
||||
/* 03 */ FAST, /* Exponential schedule */
|
||||
/* 04 */ COE, /* Cut-Off Exponential schedule */
|
||||
/* 05 */ LIN, /* Linear schedule */
|
||||
/* 06 */ QUAD, /* Quadratic schedule */
|
||||
/* 07 */ RARE, /* Rare edges */
|
||||
/* 08 */ SEEK, /* EXPLORE that ignores timings */
|
||||
|
||||
POWER_SCHEDULES_NUM
|
||||
|
@ -710,7 +710,7 @@ u32 calculate_score(afl_state_t *afl, struct queue_entry *q) {
|
||||
|
||||
}
|
||||
|
||||
if (unlikely(afl->schedule >= FAST && afl->schedule <= RARE)) {
|
||||
if (unlikely(afl->schedule >= EXPLOIT && afl->schedule <= QUAD)) {
|
||||
|
||||
if (factor > MAX_FACTOR) { factor = MAX_FACTOR; }
|
||||
perf_score *= factor / POWER_BETA;
|
||||
|
@ -1366,7 +1366,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
afl->expand_havoc = 2;
|
||||
break;
|
||||
case 2:
|
||||
if (!have_p) afl->schedule = EXPLOIT;
|
||||
//if (!have_p) afl->schedule = EXPLOIT;
|
||||
afl->expand_havoc = 3;
|
||||
break;
|
||||
case 3:
|
||||
|
Reference in New Issue
Block a user