mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +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
|
||||
interesting_32[INTERESTING_8_LEN + INTERESTING_16_LEN + INTERESTING_32_LEN];
|
||||
|
||||
extern u32 bmcnt, initcnt, one1cnt, one2cnt, runcnt;
|
||||
|
||||
|
||||
struct queue_entry {
|
||||
|
||||
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
|
||||
successful. */
|
||||
|
||||
bmcnt++;
|
||||
res = calibrate_case(afl, afl->queue_top, mem, afl->queue_cycle - 1, 0);
|
||||
|
||||
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 */
|
||||
|
||||
u32 bmcnt, initcnt, one1cnt, one2cnt, runcnt;
|
||||
|
||||
static void init_mopt_globals(afl_state_t *afl) {
|
||||
|
||||
MOpt_globals_t *core = &afl->mopt_globals_core;
|
||||
|
@ -473,7 +473,6 @@ void perform_dry_run(afl_state_t *afl) {
|
||||
|
||||
close(fd);
|
||||
|
||||
initcnt++;
|
||||
res = calibrate_case(afl, q, use_mem, 0, 1);
|
||||
ck_free(use_mem);
|
||||
|
||||
|
@ -442,7 +442,6 @@ u8 fuzz_one_original(afl_state_t *afl) {
|
||||
|
||||
if (afl->queue_cur->cal_failed < CAL_CHANCES) {
|
||||
|
||||
one1cnt++;
|
||||
res =
|
||||
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) {
|
||||
|
||||
one2cnt++;
|
||||
res =
|
||||
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);
|
||||
|
||||
runcnt++;
|
||||
|
||||
return fault;
|
||||
|
||||
}
|
||||
|
@ -1196,8 +1196,6 @@ stop_fuzzing:
|
||||
|
||||
OKF("We're done here. Have a nice day!\n");
|
||||
|
||||
printf("%u %u %u %u %u\n", bmcnt, initcnt, one1cnt, one2cnt, runcnt);
|
||||
|
||||
exit(0);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user