fix warnings

This commit is contained in:
vanhauser-thc
2021-04-15 11:04:39 +02:00
parent 61a918f820
commit cd40fa1745

View File

@ -427,7 +427,7 @@ void show_stats(afl_state_t *afl) {
u32 t_bytes, t_bits; u32 t_bytes, t_bits;
u32 banner_len, banner_pad; u32 banner_len, banner_pad;
u8 tmp[256]; u8 tmp[256], tmp2[256];
u8 time_tmp[64]; u8 time_tmp[64];
u8 val_buf[8][STRINGIFY_VAL_SIZE_MAX]; u8 val_buf[8][STRINGIFY_VAL_SIZE_MAX];
@ -1003,19 +1003,19 @@ void show_stats(afl_state_t *afl) {
if (unlikely(afl->afl_env.afl_custom_mutator_library)) { if (unlikely(afl->afl_env.afl_custom_mutator_library)) {
sprintf(tmp, "%s%s/%s, ", tmp, sprintf(tmp2, " %s%s/%s,", tmp,
u_stringify_int(IB(2), afl->stage_finds[STAGE_PYTHON]), u_stringify_int(IB(2), afl->stage_finds[STAGE_PYTHON]),
u_stringify_int(IB(3), afl->stage_cycles[STAGE_PYTHON])); u_stringify_int(IB(3), afl->stage_cycles[STAGE_PYTHON]));
} else { } else {
strcat(tmp, "unused, "); strcat(tmp2, " unused,");
} }
if (unlikely(afl->shm.cmplog_mode)) { if (unlikely(afl->shm.cmplog_mode)) {
sprintf(tmp, "%s%s/%s, %s/%s", tmp, sprintf(tmp, "%s %s/%s, %s/%s", tmp2,
u_stringify_int(IB(4), afl->stage_finds[STAGE_COLORIZATION]), u_stringify_int(IB(4), afl->stage_finds[STAGE_COLORIZATION]),
u_stringify_int(IB(5), afl->stage_cycles[STAGE_COLORIZATION]), u_stringify_int(IB(5), afl->stage_cycles[STAGE_COLORIZATION]),
u_stringify_int(IB(6), afl->stage_finds[STAGE_ITS]), u_stringify_int(IB(6), afl->stage_finds[STAGE_ITS]),
@ -1023,7 +1023,7 @@ void show_stats(afl_state_t *afl) {
} else { } else {
strcat(tmp, "unused, unused "); sprintf(tmp, "%s unused, unused", tmp2);
} }