mem error fix

This commit is contained in:
van Hauser
2020-12-18 10:20:43 +01:00
parent 4ff9eb0e67
commit ea9db86bb8
3 changed files with 6 additions and 5 deletions

View File

@ -641,11 +641,11 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
if (!fsrv->map_size) { fsrv->map_size = MAP_SIZE; }
if (unlikely(tmp_map_size % 8)) {
if (unlikely(tmp_map_size % 32)) {
// should not happen
WARNF("Target reported non-aligned map size of %u", tmp_map_size);
tmp_map_size = (((tmp_map_size + 8) >> 3) << 3);
tmp_map_size = (((tmp_map_size + 31) >> 5) << 5);
}