Bug 1452625 - bumped in-tree libFuzzer to latest version; r=decoder
authorAlex Gaynor <agaynor@mozilla.com>
Mon, 09 Apr 2018 10:00:54 -0400
changeset 779682 470ed9163d2219a5dfd9b26f8fce4842ecbeab9d
parent 779681 426b3bc756740e0fd53dd8f9f74a0b9293e0d401
child 779683 d3c654a2185f86142b0df54c9279906e94ff9ed5
push id105836
push userbmo:ato@sny.no
push dateTue, 10 Apr 2018 12:07:22 +0000
reviewersdecoder
bugs1452625
milestone61.0a1
Bug 1452625 - bumped in-tree libFuzzer to latest version; r=decoder MozReview-Commit-ID: 4Y5MMrK45ts
tools/fuzzing/libfuzzer/FuzzerIOPosix.cpp
tools/fuzzing/libfuzzer/clone_libfuzzer.sh
--- a/tools/fuzzing/libfuzzer/FuzzerIOPosix.cpp
+++ b/tools/fuzzing/libfuzzer/FuzzerIOPosix.cpp
@@ -49,17 +49,17 @@ size_t FileSize(const std::string &Path)
 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch,
                              Vector<std::string> *V, bool TopDir) {
   auto E = GetEpoch(Dir);
   if (Epoch)
     if (E && *Epoch >= E) return;
 
   DIR *D = opendir(Dir.c_str());
   if (!D) {
-    Printf("No such directory: %s; exiting\n", Dir.c_str());
+    Printf("%s: %s; exiting\n", strerror(errno), Dir.c_str());
     exit(1);
   }
   while (auto E = readdir(D)) {
     std::string Path = DirPlusFile(Dir, E->d_name);
     if (E->d_type == DT_REG || E->d_type == DT_LNK ||
         (E->d_type == DT_UNKNOWN && IsFile(Path)))
       V->push_back(Path);
     else if ((E->d_type == DT_DIR ||
--- a/tools/fuzzing/libfuzzer/clone_libfuzzer.sh
+++ b/tools/fuzzing/libfuzzer/clone_libfuzzer.sh
@@ -1,11 +1,11 @@
 #!/bin/sh
 
 mkdir tmp/
 git clone --no-checkout --depth 1 https://chromium.googlesource.com/chromium/llvm-project/compiler-rt/lib/fuzzer tmp/
-(cd tmp && git reset --hard 2c1f00d30409ff8662e62a6480718726dad77586)
+(cd tmp && git reset --hard c2b235ee789fd452ba37c57957cc280fb37f9c52)
 
 # Copy only source code and includes
 cp tmp/*.cpp tmp/*.h tmp/*.def .
 
 # Remove the temporary directory
 rm -Rf tmp/