mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
fix counting favorites
This commit is contained in:
parent
8bd5d7676e
commit
d68bd656fe
1
TODO.md
1
TODO.md
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
## Roadmap 3.00+
|
## Roadmap 3.00+
|
||||||
|
|
||||||
|
- Update afl->pending_not_fuzzed for MOpt
|
||||||
- CPU affinity for many cores? There seems to be an issue > 96 cores
|
- CPU affinity for many cores? There seems to be an issue > 96 cores
|
||||||
- afl-plot to support multiple plot_data
|
- afl-plot to support multiple plot_data
|
||||||
- afl_custom_fuzz_splice_optin()
|
- afl_custom_fuzz_splice_optin()
|
||||||
|
@ -5119,14 +5119,23 @@ pacemaker_fuzzing:
|
|||||||
|
|
||||||
/* Update afl->pending_not_fuzzed count if we made it through the
|
/* Update afl->pending_not_fuzzed count if we made it through the
|
||||||
calibration cycle and have not seen this entry before. */
|
calibration cycle and have not seen this entry before. */
|
||||||
|
/*
|
||||||
|
// TODO FIXME: I think we need this plus need an -L -1 check
|
||||||
|
if (!afl->stop_soon && !afl->queue_cur->cal_failed &&
|
||||||
|
(afl->queue_cur->was_fuzzed == 0 || afl->queue_cur->fuzz_level == 0)
|
||||||
|
&& !afl->queue_cur->disabled) {
|
||||||
|
|
||||||
// if (!afl->stop_soon && !afl->queue_cur->cal_failed &&
|
if (!afl->queue_cur->was_fuzzed) {
|
||||||
// !afl->queue_cur->was_fuzzed) {
|
|
||||||
|
|
||||||
// afl->queue_cur->was_fuzzed = 1;
|
--afl->pending_not_fuzzed;
|
||||||
// --afl->pending_not_fuzzed;
|
afl->queue_cur->was_fuzzed = 1;
|
||||||
// if (afl->queue_cur->favored) --afl->pending_favored;
|
if (afl->queue_cur->favored) { --afl->pending_favored; }
|
||||||
// }
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
orig_in = NULL;
|
orig_in = NULL;
|
||||||
|
|
||||||
|
@ -680,13 +680,17 @@ void cull_queue(afl_state_t *afl) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
afl->top_rated[i]->favored = 1;
|
if (!afl->top_rated[i]->favored) {
|
||||||
++afl->queued_favored;
|
|
||||||
|
|
||||||
if (afl->top_rated[i]->fuzz_level == 0 ||
|
afl->top_rated[i]->favored = 1;
|
||||||
!afl->top_rated[i]->was_fuzzed) {
|
++afl->queued_favored;
|
||||||
|
|
||||||
++afl->pending_favored;
|
if (afl->top_rated[i]->fuzz_level == 0 ||
|
||||||
|
!afl->top_rated[i]->was_fuzzed) {
|
||||||
|
|
||||||
|
++afl->pending_favored;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user