Fix uninitialized memory read in llvm-dsymutil for the second time.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 7 Jan 2015 21:13:30 +0000 (21:13 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 7 Jan 2015 21:13:30 +0000 (21:13 +0000)
This was already fixed by r224481, but apparently was accidentally
reverted in r225207.

llvm-svn: 225386

llvm/tools/dsymutil/MachODebugMapParser.cpp

index fbb5ad6..6b244fc 100644 (file)
@@ -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