[PATCH] D68067: [libFuzzer] Dump trace and provide correct msg for overwritten input.

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 27 15:03:42 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL373130: [libFuzzer] Dump trace and provide correct msg for overwritten input. (authored by hctim, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D68067?vs=221874&id=222254#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68067/new/

https://reviews.llvm.org/D68067

Files:
  compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp


Index: compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
===================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
+++ compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
@@ -515,8 +515,10 @@
 void Fuzzer::CrashOnOverwrittenData() {
   Printf("==%d== ERROR: libFuzzer: fuzz target overwrites its const input\n",
          GetPid());
+  PrintStackTrace();
+  Printf("SUMMARY: libFuzzer: overwrites-const-input\n");
   DumpCurrentUnit("crash-");
-  Printf("SUMMARY: libFuzzer: out-of-memory\n");
+  PrintFinalStats();
   _Exit(Options.ErrorExitCode); // Stop right now.
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68067.222254.patch
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190927/2d932799/attachment.bin>


More information about the llvm-commits mailing list