forked from OSchip/llvm-project
Fix null dereference if address is NULL.
llvm-svn: 201026
This commit is contained in:
parent
fa0f72837f
commit
ef37711f85
|
@ -5918,9 +5918,7 @@ Process::ResolveIndirectFunction(const Address *address, Error &error)
|
|||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue