From 90e4124e52dc93746953ff798f3186c98357baff Mon Sep 17 00:00:00 2001 From: Marcos Pividori Date: Wed, 1 Feb 2017 17:59:19 +0000 Subject: [PATCH] [libFuzzer] Properly check if we can use dumpbin. The flag "/sumary" is necessary, otherwise it returns a non-zero value. Differential Revision: https://reviews.llvm.org/D29371 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293790 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Fuzzer/FuzzerUtilWindows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Fuzzer/FuzzerUtilWindows.cpp b/lib/Fuzzer/FuzzerUtilWindows.cpp index b9e039f81e5..34a17cf305b 100644 --- a/lib/Fuzzer/FuzzerUtilWindows.cpp +++ b/lib/Fuzzer/FuzzerUtilWindows.cpp @@ -179,7 +179,7 @@ const void *SearchMemory(const void *Data, size_t DataLen, const void *Patt, } std::string DisassembleCmd(const std::string &FileName) { - if (ExecuteCommand("dumpbin > nul") == 0) + if (ExecuteCommand("dumpbin /summary > nul") == 0) return "dumpbin /disasm " + FileName; if (ExecuteCommand("llvm-objdump > nul") == 0) return "llvm-objdump -d " + FileName; -- 2.50.1