[Lldb-commits] [lldb] r201026 - Fix null dereference if address is NULL.
Jean-Daniel Dupas
devlists at shadowlab.org
Sat Feb 8 12:22:06 PST 2014
Author: jddupas
Date: Sat Feb 8 14:22:05 2014
New Revision: 201026
URL: http://llvm.org/viewvc/llvm-project?rev=201026&view=rev
Log:
Fix null dereference if address is NULL.
Modified:
lldb/trunk/source/Target/Process.cpp
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=201026&r1=201025&r2=201026&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Sat Feb 8 14:22:05 2014
@@ -5918,9 +5918,7 @@ Process::ResolveIndirectFunction(const A
{
if (address == nullptr)
{
- Symbol *symbol = address->CalculateSymbolContextSymbol();
- error.SetErrorStringWithFormat("unable to determine direct function call for indirect function %s",
- symbol ? symbol->GetName().AsCString() : "<UNKNOWN>");
+ error.SetErrorString("Invalid address argument");
return LLDB_INVALID_ADDRESS;
}
More information about the lldb-commits
mailing list