mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
Use AFL hash32
This commit is contained in:
@ -542,9 +542,8 @@ u8 __attribute__((hot)) save_if_interesting(afl_state_t *afl, void *mem,
|
||||
afl->fsrv.map_size);
|
||||
simplify_trace(afl, afl->san_fsrvs[0].trace_bits);
|
||||
|
||||
// cksum_simplified = hash64(afl->san_fsrvs[0].trace_bits,
|
||||
// afl->fsrv.map_size, HASH_CONST);
|
||||
cksum_simplified = hash32_xxh32(afl->san_fsrvs[0].trace_bits,
|
||||
// Note: Original SAND implementation used XXHASH32
|
||||
cksum_simplified = hash32(afl->san_fsrvs[0].trace_bits,
|
||||
afl->fsrv.map_size, HASH_CONST);
|
||||
|
||||
if (unlikely(!bitmap_read(afl->simplified_n_fuzz, cksum_simplified))) {
|
||||
@ -570,7 +569,7 @@ u8 __attribute__((hot)) save_if_interesting(afl_state_t *afl, void *mem,
|
||||
likely(afl->san_abstraction == UNIQUE_TRACE)) {
|
||||
|
||||
cksum_unique =
|
||||
hash32_xxh32(afl->fsrv.trace_bits, afl->fsrv.map_size, HASH_CONST);
|
||||
hash32(afl->fsrv.trace_bits, afl->fsrv.map_size, HASH_CONST);
|
||||
if (unlikely(!bitmap_read(afl->n_fuzz_dup, cksum) &&
|
||||
fault == afl->crash_mode)) {
|
||||
|
||||
|
Reference in New Issue
Block a user