mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
fix #261
This commit is contained in:
@ -199,7 +199,12 @@ void HELPER(afl_cmplog_rtn)(CPUArchState *env) {
|
|||||||
|
|
||||||
if (!area_is_mapped(ptr1, 32) || !area_is_mapped(ptr2, 32)) return;
|
if (!area_is_mapped(ptr1, 32) || !area_is_mapped(ptr2, 32)) return;
|
||||||
|
|
||||||
|
#if defined(TARGET_X86_64) || defined(TARGET_I386)
|
||||||
uintptr_t k = (uintptr_t)env->eip;
|
uintptr_t k = (uintptr_t)env->eip;
|
||||||
|
#else
|
||||||
|
uintptr_t k = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
k = (k >> 4) ^ (k << 8);
|
k = (k >> 4) ^ (k << 8);
|
||||||
k &= CMP_MAP_W - 1;
|
k &= CMP_MAP_W - 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user