mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
reorder
This commit is contained in:
@ -1562,10 +1562,10 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
afl->first_trace = ck_realloc(afl->first_trace, map_size);
|
afl->first_trace = ck_realloc(afl->first_trace, map_size);
|
||||||
afl->map_tmp_buf = ck_realloc(afl->map_tmp_buf, map_size);
|
afl->map_tmp_buf = ck_realloc(afl->map_tmp_buf, map_size);
|
||||||
|
|
||||||
afl_shm_deinit(&afl->shm);
|
|
||||||
afl_fsrv_kill(&afl->fsrv);
|
afl_fsrv_kill(&afl->fsrv);
|
||||||
|
afl_shm_deinit(&afl->shm);
|
||||||
afl->fsrv.map_size = new_map_size;
|
afl->fsrv.map_size = new_map_size;
|
||||||
afl->fsrv.trace_bits = afl_shm_init(&afl->shm, afl->fsrv.map_size,
|
afl->fsrv.trace_bits = afl_shm_init(&afl->shm, new_map_size,
|
||||||
afl->non_instrumented_mode);
|
afl->non_instrumented_mode);
|
||||||
setenv("AFL_NO_AUTODICT", "1", 1); // loaded already
|
setenv("AFL_NO_AUTODICT", "1", 1); // loaded already
|
||||||
afl_fsrv_start(&afl->fsrv, afl->argv, &afl->stop_soon,
|
afl_fsrv_start(&afl->fsrv, afl->argv, &afl->stop_soon,
|
||||||
@ -1602,7 +1602,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
// only reinitialize when it needs to be larger
|
// only reinitialize when it needs to be larger
|
||||||
if (map_size < new_map_size) {
|
if (map_size < new_map_size) {
|
||||||
|
|
||||||
OKF("Re-initializing maps to %u bytes", new_map_size);
|
OKF("Re-initializing maps to %u bytes due cmplog", new_map_size);
|
||||||
|
|
||||||
afl->virgin_bits = ck_realloc(afl->virgin_bits, map_size);
|
afl->virgin_bits = ck_realloc(afl->virgin_bits, map_size);
|
||||||
afl->virgin_tmout = ck_realloc(afl->virgin_tmout, map_size);
|
afl->virgin_tmout = ck_realloc(afl->virgin_tmout, map_size);
|
||||||
@ -1614,9 +1614,9 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
afl->first_trace = ck_realloc(afl->first_trace, map_size);
|
afl->first_trace = ck_realloc(afl->first_trace, map_size);
|
||||||
afl->map_tmp_buf = ck_realloc(afl->map_tmp_buf, map_size);
|
afl->map_tmp_buf = ck_realloc(afl->map_tmp_buf, map_size);
|
||||||
|
|
||||||
afl_shm_deinit(&afl->shm);
|
|
||||||
afl_fsrv_kill(&afl->fsrv);
|
afl_fsrv_kill(&afl->fsrv);
|
||||||
afl_fsrv_kill(&afl->cmplog_fsrv);
|
afl_fsrv_kill(&afl->cmplog_fsrv);
|
||||||
|
afl_shm_deinit(&afl->shm);
|
||||||
afl->cmplog_fsrv.map_size = new_map_size; // non-cmplog stays the same
|
afl->cmplog_fsrv.map_size = new_map_size; // non-cmplog stays the same
|
||||||
|
|
||||||
afl->fsrv.trace_bits = afl_shm_init(&afl->shm, new_map_size,
|
afl->fsrv.trace_bits = afl_shm_init(&afl->shm, new_map_size,
|
||||||
|
Reference in New Issue
Block a user