[llvm] r293790 - [libFuzzer] Properly check if we can use dumpbin.
Marcos Pividori via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 1 09:59:19 PST 2017
Author: mpividori
Date: Wed Feb 1 11:59:19 2017
New Revision: 293790
URL: http://llvm.org/viewvc/llvm-project?rev=293790&view=rev
Log:
[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
Modified:
llvm/trunk/lib/Fuzzer/FuzzerUtilWindows.cpp
Modified: llvm/trunk/lib/Fuzzer/FuzzerUtilWindows.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerUtilWindows.cpp?rev=293790&r1=293789&r2=293790&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerUtilWindows.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerUtilWindows.cpp Wed Feb 1 11:59:19 2017
@@ -179,7 +179,7 @@ const void *SearchMemory(const void *Dat
}
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;
More information about the llvm-commits
mailing list