mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
remove debug code
This commit is contained in:
@ -118,9 +118,6 @@ extern s16 interesting_16[INTERESTING_8_LEN + INTERESTING_16_LEN];
|
|||||||
extern s32
|
extern s32
|
||||||
interesting_32[INTERESTING_8_LEN + INTERESTING_16_LEN + INTERESTING_32_LEN];
|
interesting_32[INTERESTING_8_LEN + INTERESTING_16_LEN + INTERESTING_32_LEN];
|
||||||
|
|
||||||
extern u32 bmcnt, initcnt, one1cnt, one2cnt, runcnt;
|
|
||||||
|
|
||||||
|
|
||||||
struct queue_entry {
|
struct queue_entry {
|
||||||
|
|
||||||
u8 *fname; /* File name for the test case */
|
u8 *fname; /* File name for the test case */
|
||||||
|
@ -578,7 +578,6 @@ u8 save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) {
|
|||||||
/* Try to calibrate inline; this also calls update_bitmap_score() when
|
/* Try to calibrate inline; this also calls update_bitmap_score() when
|
||||||
successful. */
|
successful. */
|
||||||
|
|
||||||
bmcnt++;
|
|
||||||
res = calibrate_case(afl, afl->queue_top, mem, afl->queue_cycle - 1, 0);
|
res = calibrate_case(afl, afl->queue_top, mem, afl->queue_cycle - 1, 0);
|
||||||
|
|
||||||
if (res == FAULT_ERROR) FATAL("Unable to execute target application");
|
if (res == FAULT_ERROR) FATAL("Unable to execute target application");
|
||||||
|
@ -38,8 +38,6 @@ u8 *doc_path = NULL; /* gath to documentation dir */
|
|||||||
|
|
||||||
/* Initialize MOpt "globals" for this afl state */
|
/* Initialize MOpt "globals" for this afl state */
|
||||||
|
|
||||||
u32 bmcnt, initcnt, one1cnt, one2cnt, runcnt;
|
|
||||||
|
|
||||||
static void init_mopt_globals(afl_state_t *afl) {
|
static void init_mopt_globals(afl_state_t *afl) {
|
||||||
|
|
||||||
MOpt_globals_t *core = &afl->mopt_globals_core;
|
MOpt_globals_t *core = &afl->mopt_globals_core;
|
||||||
|
@ -473,7 +473,6 @@ void perform_dry_run(afl_state_t *afl) {
|
|||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
initcnt++;
|
|
||||||
res = calibrate_case(afl, q, use_mem, 0, 1);
|
res = calibrate_case(afl, q, use_mem, 0, 1);
|
||||||
ck_free(use_mem);
|
ck_free(use_mem);
|
||||||
|
|
||||||
|
@ -442,7 +442,6 @@ u8 fuzz_one_original(afl_state_t *afl) {
|
|||||||
|
|
||||||
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
|
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
|
||||||
|
|
||||||
one1cnt++;
|
|
||||||
res =
|
res =
|
||||||
calibrate_case(afl, afl->queue_cur, in_buf, afl->queue_cycle - 1, 0);
|
calibrate_case(afl, afl->queue_cur, in_buf, afl->queue_cycle - 1, 0);
|
||||||
|
|
||||||
@ -2461,7 +2460,6 @@ u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
|
|||||||
|
|
||||||
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
|
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
|
||||||
|
|
||||||
one2cnt++;
|
|
||||||
res =
|
res =
|
||||||
calibrate_case(afl, afl->queue_cur, in_buf, afl->queue_cycle - 1, 0);
|
calibrate_case(afl, afl->queue_cur, in_buf, afl->queue_cycle - 1, 0);
|
||||||
|
|
||||||
|
@ -438,8 +438,6 @@ abort_calibration:
|
|||||||
|
|
||||||
if (!first_run) show_stats(afl);
|
if (!first_run) show_stats(afl);
|
||||||
|
|
||||||
runcnt++;
|
|
||||||
|
|
||||||
return fault;
|
return fault;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1196,8 +1196,6 @@ stop_fuzzing:
|
|||||||
|
|
||||||
OKF("We're done here. Have a nice day!\n");
|
OKF("We're done here. Have a nice day!\n");
|
||||||
|
|
||||||
printf("%u %u %u %u %u\n", bmcnt, initcnt, one1cnt, one2cnt, runcnt);
|
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user