summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-01-07 21:13:30 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-01-07 21:13:30 +0000
commitdb50b3d09087ae0044160c8fab5954a498296e59 (patch)
tree688614dccd4035a7741821f69b28bc8b304f1ac6
parent31875f74902b73f0a2dc8610b897c689d1f50ad5 (diff)
downloadbcm5719-llvm-db50b3d09087ae0044160c8fab5954a498296e59.tar.gz
bcm5719-llvm-db50b3d09087ae0044160c8fab5954a498296e59.zip
Fix uninitialized memory read in llvm-dsymutil for the second time.
This was already fixed by r224481, but apparently was accidentally reverted in r225207. llvm-svn: 225386
-rw-r--r--llvm/tools/dsymutil/MachODebugMapParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/dsymutil/MachODebugMapParser.cpp b/llvm/tools/dsymutil/MachODebugMapParser.cpp
index fbb5ad6b9ec..6b244fc369e 100644
--- a/llvm/tools/dsymutil/MachODebugMapParser.cpp
+++ b/llvm/tools/dsymutil/MachODebugMapParser.cpp
@@ -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
OpenPOWER on IntegriCloud