solved MAP_SIZE overflow

This commit is contained in:
Andrea Fioraldi
2019-08-28 19:07:19 +02:00
parent 733c8e4c34
commit 892513708b
2 changed files with 2 additions and 2 deletions

View File

@ -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 &= MAP_SIZE - 1;
cur_loc &= MAP_SIZE - 7;
if (cur_loc >= afl_inst_rms) return;