mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-19 13:03:44 +00:00
solved MAP_SIZE overflow
This commit is contained in:
@ -134,7 +134,7 @@ static void afl_gen_compcov(target_ulong cur_loc, TCGv_i64 arg1, TCGv_i64 arg2,
|
|||||||
}
|
}
|
||||||
|
|
||||||
cur_loc = (cur_loc >> 4) ^ (cur_loc << 8);
|
cur_loc = (cur_loc >> 4) ^ (cur_loc << 8);
|
||||||
cur_loc &= MAP_SIZE - 1;
|
cur_loc &= MAP_SIZE - 7;
|
||||||
|
|
||||||
if (cur_loc >= afl_inst_rms) return;
|
if (cur_loc >= afl_inst_rms) return;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ static void afl_gen_compcov(TCGContext *s, uint64_t cur_loc, TCGv_i64 arg1,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
cur_loc = (cur_loc >> 4) ^ (cur_loc << 8);
|
cur_loc = (cur_loc >> 4) ^ (cur_loc << 8);
|
||||||
cur_loc &= MAP_SIZE - 1;
|
cur_loc &= MAP_SIZE - 7;
|
||||||
|
|
||||||
if (cur_loc >= s->uc->afl_inst_rms) return;
|
if (cur_loc >= s->uc->afl_inst_rms) return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user