[libFuzzer] Ignore synthetic exceptions on Fuchsia
authorPetr Hosek <phosek@chromium.org>
Wed, 22 May 2019 16:36:35 +0000 (16:36 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 22 May 2019 16:36:35 +0000 (16:36 +0000)
commit9bd4dc929c945622b6563874438f7f453e83ffb0
tree52182ac4f6219167249b8302cf23c400fcdc376e
parent418e23e33c0c67a362b8a2d2250b2746c3dbf64a
[libFuzzer] Ignore synthetic exceptions on Fuchsia

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.

Patch By: aarongreen

Differential Revision: https://reviews.llvm.org/D62226

llvm-svn: 361407
compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp