From db50b3d09087ae0044160c8fab5954a498296e59 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Wed, 7 Jan 2015 21:13:30 +0000 Subject: [PATCH] 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 --- llvm/tools/dsymutil/MachODebugMapParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/tools/dsymutil/MachODebugMapParser.cpp b/llvm/tools/dsymutil/MachODebugMapParser.cpp index fbb5ad6..6b244fc 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 -- 2.7.4