diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-05-14 11:17:58 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-14 11:17:58 +0200 |
| commit | faf3e3d2299100f0fccf2f6187d58e398cab06be (patch) | |
| tree | dbf468be98cbcc72b4b88104c572fe8e821a8146 /executor/executor_fuchsia.cc | |
| parent | d5dc4006db71f4d27934000be3a499d9e56ff7fe (diff) | |
executor: filter out invalid PCs on linux/x86_64
Fuzzer manages to corrupt output region and write random coverage again and again.
Do a sanity range check on coverage PCs to filter out invalid ones.
Diffstat (limited to 'executor/executor_fuchsia.cc')
| -rw-r--r-- | executor/executor_fuchsia.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/executor/executor_fuchsia.cc b/executor/executor_fuchsia.cc index 506b65015..b0d4f0eef 100644 --- a/executor/executor_fuchsia.cc +++ b/executor/executor_fuchsia.cc @@ -56,6 +56,16 @@ uint32 read_cover_size(thread_t* th) return 0; } +bool cover_check(uint32 pc) +{ + return true; +} + +bool cover_check(uint64 pc) +{ + return true; +} + uint32* write_output(uint32 v) { return &output; |
