aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorYuchuan Liu <yuchuanliu@google.com>2022-06-24 00:51:09 +0800
committerDmitry Vyukov <dvyukov@google.com>2022-06-24 09:16:15 +0200
commita5dbd430e216c19b40593c047b622c3a8149a41d (patch)
treedefef883632ec8017fae0c8ebc16dea7818026a8 /executor
parent912f5df7fadf1d0214995def5446208d0f26c54b (diff)
syz-manager, executor: fix out-of-bound access due to NextInstructionPC
Diffstat (limited to 'executor')
-rw-r--r--executor/cov_filter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/cov_filter.h b/executor/cov_filter.h
index f43b57738..61f8f9e3f 100644
--- a/executor/cov_filter.h
+++ b/executor/cov_filter.h
@@ -31,7 +31,7 @@ static void init_coverage_filter(char* filename)
cov_filter = (cov_filter_t*)mmap(preferred, st.st_size, PROT_READ, MAP_PRIVATE, f, 0);
if (cov_filter != preferred)
failmsg("failed to mmap coverage filter bitmap", "want=%p, got=%p", preferred, cov_filter);
- if ((uint32)st.st_size != sizeof(uint32) * 2 + ((cov_filter->pcsize >> 4) / 8 + 1))
+ if ((uint32)st.st_size != sizeof(uint32) * 2 + ((cov_filter->pcsize >> 4) / 8 + 2))
fail("bad coverage filter bitmap size");
close(f);
}