adjusted int_bufs

This commit is contained in:
Dominik Maier
2020-03-21 20:28:01 +01:00
parent a5af81506f
commit 6f78b67f03
2 changed files with 6 additions and 6 deletions

View File

@ -323,7 +323,7 @@ void read_testcases(afl_state_t *afl) {
u32 i; u32 i;
u8 * fn1; u8 * fn1;
u8 int_buf[12][16]; u8 int_buf[2][16];
/* Auto-detect non-in-place resumption attempts. */ /* Auto-detect non-in-place resumption attempts. */
@ -556,7 +556,7 @@ void perform_dry_run(afl_state_t *afl) {
if (afl->fsrv.mem_limit) { if (afl->fsrv.mem_limit) {
u8 int_tmp[16]; u8 int_buf[16];
SAYF("\n" cLRD "[-] " cRST SAYF("\n" cLRD "[-] " cRST
"Oops, the program crashed with one of the test cases provided. " "Oops, the program crashed with one of the test cases provided. "
@ -598,7 +598,7 @@ void perform_dry_run(afl_state_t *afl) {
"other options\n" "other options\n"
" fail, poke <afl-users@googlegroups.com> for " " fail, poke <afl-users@googlegroups.com> for "
"troubleshooting tips.\n", "troubleshooting tips.\n",
DMS(int_tmp, sizeof(int_tmp), afl->fsrv.mem_limit << 20), DMS(int_buf, sizeof(int_buf), afl->fsrv.mem_limit << 20),
afl->fsrv.mem_limit - 1, doc_path); afl->fsrv.mem_limit - 1, doc_path);
} else { } else {

View File

@ -205,7 +205,7 @@ void show_stats(afl_state_t *afl) {
u8 tmp[256]; u8 tmp[256];
u8 time_tmp[64]; u8 time_tmp[64];
u8 int_buf[16][16]; u8 int_buf[8][16];
#define IB(i) int_buf[(i)], sizeof(int_buf[(i)]) #define IB(i) int_buf[(i)], sizeof(int_buf[(i)])
cur_ms = get_cur_time(); cur_ms = get_cur_time();
@ -789,8 +789,8 @@ void show_init_stats(afl_state_t *afl) {
u64 avg_us = 0; u64 avg_us = 0;
u32 max_len = 0; u32 max_len = 0;
u8 int_buf[12][16]; u8 int_bufs[4][16];
#define IB(i) int_buf[(i)], sizeof(int_buf[(i)]) #define IB(i) int_bufs[(i)], sizeof(int_bufs[(i)])
if (afl->total_cal_cycles) avg_us = afl->total_cal_us / afl->total_cal_cycles; if (afl->total_cal_cycles) avg_us = afl->total_cal_us / afl->total_cal_cycles;