summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Daniel Dupas <devlists@shadowlab.org>2014-02-08 20:22:05 +0000
committerJean-Daniel Dupas <devlists@shadowlab.org>2014-02-08 20:22:05 +0000
commitef37711f852e5036dbe8fb0af863e164921eb8e6 (patch)
treea1a481205dbcc6a241ff04582117469ec18a98d8
parentfa0f72837f98fd13fb2dfee1712be4a8b13b0260 (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud