[PATCH] D48891: [libFuzzer] Make -fsanitize=memory,fuzzer work.

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 3 14:54:09 PDT 2018


kcc added inline comments.


================
Comment at: compiler-rt/lib/fuzzer/FuzzerLoop.cpp:182
     return; // Happens when running individual inputs.
+  if (EF->__msan_disable_interceptor_checks)
+    EF->__msan_disable_interceptor_checks();
----------------
morehouse wrote:
> kcc wrote:
> > why do you need this here? 
> `DumpCurrentUnit` is called from most error callbacks.  When that happens, interceptor checks are still active.
> 
> Since we eventually call `fopen` to write out the current unit, we need to disable interceptor checks again here.
ACK. please make it a scoped operator (a class with a CTOR calling disable and DTOR calling enable). 


https://reviews.llvm.org/D48891





More information about the llvm-commits mailing list