summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-11-03 02:34:43 +0000
committerEnrico Granata <egranata@apple.com>2015-11-03 02:34:43 +0000
commit7339b9d75fff424d7d9a0686f303ef10b6c7ab05 (patch)
tree0e7d3042b72e7725b6d4f251228907b494b1a23e /lldb/source/Core/ValueObject.cpp
parentf538e133cc7e8e5b0e1fa22cedf83d1e633e14c3 (diff)
downloadbcm5719-llvm-7339b9d75fff424d7d9a0686f303ef10b6c7ab05.tar.gz
bcm5719-llvm-7339b9d75fff424d7d9a0686f303ef10b6c7ab05.zip
Do not try to copy host memory from address 0
llvm-svn: 251889
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r--lldb/source/Core/ValueObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index fe86f374a01..cf9dd776c6b 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -1105,7 +1105,7 @@ ValueObject::GetPointeeData (DataExtractor& data,
{
size_t bytes_read = std::min<uint64_t>(max_bytes - offset, bytes);
addr = m_value.GetScalar().ULongLong(LLDB_INVALID_ADDRESS);
- if (addr == LLDB_INVALID_ADDRESS)
+ if (addr == 0 || addr == LLDB_INVALID_ADDRESS)
break;
heap_buf_ptr->CopyData((uint8_t*)(addr + offset), bytes_read);
data.SetData(data_sp);
OpenPOWER on IntegriCloud