Skip to content

Commit

Permalink
[libFuzzer] Properly check if we can use dumpbin.
Browse files Browse the repository at this point in the history
The flag "/sumary" is necessary, otherwise it returns a non-zero value.

Differential Revision: https://reviews.llvm.org/D29371

llvm-svn: 293790
  • Loading branch information
Marcos Pividori committed Feb 1, 2017
1 parent 063e284 commit 7a3a390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Fuzzer/FuzzerUtilWindows.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 7a3a390

Please sign in to comment.