diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-03-21 21:43:58 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-03-21 21:48:52 +0100 |
commit | 54d01fec43c8b649fdc04350262d5982f1e4ae85 (patch) | |
tree | 8d3f8feac7421964214c609d29bfc05d2b0d08dd /src/afl-fuzz-run.c | |
parent | f8d717d195c526ded57005ef11cf5662d1641a77 (diff) | |
download | afl++-54d01fec43c8b649fdc04350262d5982f1e4ae85.tar.gz |
moved string formatting to header
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r-- | src/afl-fuzz-run.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index 7a789cfb..3f0a5962 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -605,7 +605,7 @@ u8 trim_case(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) { u32 remove_len; u32 len_p2; - u8 int_bufs[2][16]; + u8 val_bufs[2][STRINGIFY_VAL_SIZE_MAX]; /* Although the trimmer will be less useful when variable behavior is detected, it will still work to some extent, so we don't check for @@ -631,8 +631,8 @@ u8 trim_case(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) { u32 remove_pos = remove_len; snprintf(afl->stage_name_buf, STAGE_BUF_SIZE, "trim %s/%s", - DI(int_bufs[0], sizeof(int_bufs[0]), remove_len), - DI(int_bufs[1], sizeof(int_bufs[1]), remove_len)); + stringify_int(val_bufs[0], sizeof(val_bufs[0]), remove_len), + stringify_int(val_bufs[1], sizeof(val_bufs[1]), remove_len)); afl->stage_cur = 0; afl->stage_max = q->len / remove_len; |