mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
removed tmp alloc in queue
This commit is contained in:
@ -608,6 +608,9 @@ typedef struct afl_state {
|
|||||||
u8 * ex_buf;
|
u8 * ex_buf;
|
||||||
size_t ex_size;
|
size_t ex_size;
|
||||||
|
|
||||||
|
u8 * map_tmp_buf;
|
||||||
|
size_t map_tmp_size;
|
||||||
|
|
||||||
} afl_state_t;
|
} afl_state_t;
|
||||||
|
|
||||||
/* A global pointer to all instances is needed (for now) for signals to arrive
|
/* A global pointer to all instances is needed (for now) for signals to arrive
|
||||||
|
@ -275,7 +275,7 @@ void cull_queue(afl_state_t *afl) {
|
|||||||
|
|
||||||
if (afl->dumb_mode || !afl->score_changed) return;
|
if (afl->dumb_mode || !afl->score_changed) return;
|
||||||
|
|
||||||
temp_v = ck_alloc(afl->fsrv.map_size >> 3);
|
temp_v = ck_maybe_grow((void **)&afl->map_tmp_buf, &afl->map_tmp_size, afl->fsrv.map_size >> 3);
|
||||||
|
|
||||||
afl->score_changed = 0;
|
afl->score_changed = 0;
|
||||||
|
|
||||||
@ -324,8 +324,6 @@ void cull_queue(afl_state_t *afl) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ck_free(temp_v);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calculate case desirability score to adjust the length of havoc fuzzing.
|
/* Calculate case desirability score to adjust the length of havoc fuzzing.
|
||||||
|
Reference in New Issue
Block a user