mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
added mutation introspection make target
This commit is contained in:
@ -423,8 +423,8 @@ void dedup_extras(afl_state_t *afl) {
|
||||
}
|
||||
|
||||
if (afl->extras_cnt != orig_cnt)
|
||||
afl->extras = ck_realloc((void **)&afl->extras,
|
||||
afl->extras_cnt * sizeof(struct extra_data));
|
||||
afl->extras = afl_realloc_exact(
|
||||
(void **)&afl->extras, afl->extras_cnt * sizeof(struct extra_data));
|
||||
|
||||
}
|
||||
|
||||
@ -462,16 +462,8 @@ void add_extra(afl_state_t *afl, u8 *mem, u32 len) {
|
||||
|
||||
}
|
||||
|
||||
if (afl->extras) {
|
||||
|
||||
afl->extras = ck_realloc((void **)&afl->extras,
|
||||
(afl->extras_cnt + 1) * sizeof(struct extra_data));
|
||||
|
||||
} else {
|
||||
|
||||
afl->extras = ck_alloc((afl->extras_cnt + 1) * sizeof(struct extra_data));
|
||||
|
||||
}
|
||||
afl->extras = afl_realloc((void **)&afl->extras,
|
||||
(afl->extras_cnt + 1) * sizeof(struct extra_data));
|
||||
|
||||
if (unlikely(!afl->extras)) { PFATAL("alloc"); }
|
||||
|
||||
|
Reference in New Issue
Block a user