This commit is contained in:
van Hauser
2021-01-03 00:37:56 +01:00
parent 3c88de565a
commit 1857df8d06
2 changed files with 8 additions and 61 deletions

View File

@ -802,13 +802,13 @@ u8 input_to_state_stage(afl_state_t *afl, u8 *orig_buf, u8 *buf, u32 len,
u64 exec_cksum) {
u8 r = 1;
if (afl->orig_cmp_map == NULL) {
if (unlikely(!afl->orig_cmp_map)) {
afl->orig_cmp_map = ck_alloc_nozero(sizeof(struct cmp_map));
}
if (afl->pass_stats == NULL) {
if (unlikely(!afl->pass_stats)) {
afl->pass_stats = ck_alloc(sizeof(struct afl_pass_stat) * CMP_MAP_W);