remove debug code

This commit is contained in:
van Hauser
2020-03-21 22:17:57 +01:00
parent 96736309a7
commit 5cf3426834
7 changed files with 0 additions and 13 deletions

View File

@ -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 */

View File

@ -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");

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -438,8 +438,6 @@ abort_calibration:
if (!first_run) show_stats(afl);
runcnt++;
return fault;
}

View File

@ -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);
}