[llvm] r225386 - Fix uninitialized memory read in llvm-dsymutil for the second time.
Alexey Samsonov
vonosmas at gmail.com
Wed Jan 7 13:13:31 PST 2015
Author: samsonov
Date: Wed Jan 7 15:13:30 2015
New Revision: 225386
URL: http://llvm.org/viewvc/llvm-project?rev=225386&view=rev
Log:
Fix uninitialized memory read in llvm-dsymutil for the second time.
This was already fixed by r224481, but apparently was accidentally
reverted in r225207.
Modified:
llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp
Modified: llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp?rev=225386&r1=225385&r2=225386&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp (original)
+++ llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp Wed Jan 7 15:13:30 2015
@@ -24,7 +24,8 @@ public:
MachODebugMapParser(StringRef BinaryPath, StringRef PathPrefix = "",
bool Verbose = false)
: BinaryPath(BinaryPath), PathPrefix(PathPrefix),
- MainBinaryHolder(Verbose), CurrentObjectHolder(Verbose) {}
+ MainBinaryHolder(Verbose), CurrentObjectHolder(Verbose),
+ CurrentDebugMapObject(nullptr) {}
/// \brief Parses and returns the DebugMap of the input binary.
/// \returns an error in case the provided BinaryPath doesn't exist
More information about the llvm-commits
mailing list