mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
LTO optimization, variable map size, autodictionary (#307)
* lto module clean-up * step 1/3 * step 1/3 completed * if tmp is ever made non-static * parts 2 and 3 - autodictionary is complete * variable map_size support * variable map size: changed overlooked functions * remove debug for autodict * 64 bit alignment of map size * fix review comments * force 64 bit alignment on both sides * typo
This commit is contained in:
@ -389,7 +389,7 @@ u8 run_cmplog_target(afl_state_t *afl, u32 timeout) {
|
||||
must prevent any earlier operations from venturing into that
|
||||
territory. */
|
||||
|
||||
memset(afl->fsrv.trace_bits, 0, MAP_SIZE);
|
||||
memset(afl->fsrv.trace_bits, 0, afl->fsrv.map_size);
|
||||
MEM_BARRIER();
|
||||
|
||||
/* Since we always have a forkserver (or a fauxserver) running, we can simply
|
||||
@ -469,9 +469,9 @@ u8 run_cmplog_target(afl_state_t *afl, u32 timeout) {
|
||||
tb4 = *(u32 *)afl->fsrv.trace_bits;
|
||||
|
||||
#ifdef WORD_SIZE_64
|
||||
classify_counts((u64 *)afl->fsrv.trace_bits);
|
||||
classify_counts(afl, (u64 *)afl->fsrv.trace_bits);
|
||||
#else
|
||||
classify_counts((u32 *)afl->fsrv.trace_bits);
|
||||
classify_counts(afl, (u32 *)afl->fsrv.trace_bits);
|
||||
#endif /* ^WORD_SIZE_64 */
|
||||
|
||||
afl->cmplog_prev_timed_out = afl->fsrv.child_timed_out;
|
||||
|
Reference in New Issue
Block a user