diff options
author | Jean-Daniel Dupas <devlists@shadowlab.org> | 2014-02-08 20:22:05 +0000 |
---|---|---|
committer | Jean-Daniel Dupas <devlists@shadowlab.org> | 2014-02-08 20:22:05 +0000 |
commit | ef37711f852e5036dbe8fb0af863e164921eb8e6 (patch) | |
tree | a1a481205dbcc6a241ff04582117469ec18a98d8 | |
parent | fa0f72837f98fd13fb2dfee1712be4a8b13b0260 (diff) | |
download | bcm5719-llvm-ef37711f852e5036dbe8fb0af863e164921eb8e6.tar.gz bcm5719-llvm-ef37711f852e5036dbe8fb0af863e164921eb8e6.zip |
Fix null dereference if address is NULL.
llvm-svn: 201026
-rw-r--r-- | lldb/source/Target/Process.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 68d95a9eeba..40d3e4950c6 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -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; } |