use HASH_CONST

This commit is contained in:
yuawn
2021-07-31 08:09:47 +00:00
parent b3eadc6a77
commit 08080e70a6
2 changed files with 2 additions and 2 deletions

View File

@ -1105,7 +1105,7 @@ void afl_fsrv_write_to_testcase(afl_forkserver_t *fsrv, u8 *buf, size_t len) {
if (getenv("AFL_DEBUG")) {
fprintf(stderr, "FS crc: %016llx len: %u\n",
hash64(fsrv->shmem_fuzz, *fsrv->shmem_fuzz_len, 0xa5b35705),
hash64(fsrv->shmem_fuzz, *fsrv->shmem_fuzz_len, HASH_CONST),
*fsrv->shmem_fuzz_len);
fprintf(stderr, "SHM :");
for (u32 i = 0; i < *fsrv->shmem_fuzz_len; i++)

View File

@ -220,7 +220,7 @@ static void write_with_gap(afl_state_t *afl, u8 *mem, u32 len, u32 skip_at,
fprintf(
stderr, "FS crc: %16llx len: %u\n",
hash64(afl->fsrv.shmem_fuzz, *afl->fsrv.shmem_fuzz_len, 0xa5b35705),
hash64(afl->fsrv.shmem_fuzz, *afl->fsrv.shmem_fuzz_len, HASH_CONST),
*afl->fsrv.shmem_fuzz_len);
fprintf(stderr, "SHM :");
for (u32 i = 0; i < *afl->fsrv.shmem_fuzz_len; i++)