[Lldb-commits] [lldb] r184023 - Fix unitialized variable in AuxVector::GetEntryName() which crashed in AuxVector::DumpToLog

Michael Sartain mikesart at valvesoftware.com
Fri Jun 14 17:25:53 PDT 2013


Author: mikesart
Date: Fri Jun 14 19:25:52 2013
New Revision: 184023

URL: http://llvm.org/viewvc/llvm-project?rev=184023&view=rev
Log:
Fix unitialized variable in AuxVector::GetEntryName() which crashed in AuxVector::DumpToLog


Modified:
    lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp

Modified: lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp?rev=184023&r1=184022&r2=184023&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp Fri Jun 14 19:25:52 2013
@@ -124,7 +124,7 @@ AuxVector::DumpToLog(Log *log) const
 const char *
 AuxVector::GetEntryName(EntryType type)
 {
-    const char *name;
+    const char *name = "AT_???";
 
 #define ENTRY_NAME(_type) _type: name = #_type
     switch (type) 





More information about the lldb-commits mailing list