[libFuzzer] set libFuzzer's own SEGV handler even one is already present, but call...
authorKostya Serebryany <kcc@google.com>
Thu, 31 Jan 2019 01:40:14 +0000 (01:40 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 31 Jan 2019 01:40:14 +0000 (01:40 +0000)
commit23482e1d071ec6d05ddbae8eaffda3221260a35f
tree635e144de5fbfe5b79ffa1add2864578675bd823
parent2a64598ef2ec4841dd48483dc368da034d80d933
[libFuzzer] set libFuzzer's own SEGV handler even one is already present, but call that handler from ours (unless we are unprotecting lazy counters). Call ProtectLazyCounters later, so that it runs after the initialization code in the target.

llvm-svn: 352713
compiler-rt/lib/fuzzer/FuzzerDriver.cpp
compiler-rt/lib/fuzzer/FuzzerInternal.h
compiler-rt/lib/fuzzer/FuzzerLoop.cpp
compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
compiler-rt/test/fuzzer/large.test