Fuchsia has several exceptions which are merely informational and should not be treated as crashes. This patch puts logic that read from the exception port and handled the exception in a loop, and ignores non-exceptions and informational exceptions.
Details
Details
- Reviewers
phosek mcgrathr jfb - Commits
- rZORGa88dd3e96732: [libFuzzer] Ignore synthetic exceptions on Fuchsia
rGa88dd3e96732: [libFuzzer] Ignore synthetic exceptions on Fuchsia
rG9bd4dc929c94: [libFuzzer] Ignore synthetic exceptions on Fuchsia
rCRT361407: [libFuzzer] Ignore synthetic exceptions on Fuchsia
rL361407: [libFuzzer] Ignore synthetic exceptions on Fuchsia
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lgtm with one nit: either change to an assert or improve the comment to clarify what other cases are expected
compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp | ||
---|---|---|
245 | I think !ZX_PKT_IS_EXCEPTION here is unexpected and would indicate a bug. |
I think !ZX_PKT_IS_EXCEPTION here is unexpected and would indicate a bug.
There should be no packets received except the ones you've asked for.
Probably you should just assert that it is.