Do not try to copy host memory from address 0

llvm-svn: 251889
This commit is contained in:
Enrico Granata 2015-11-03 02:34:43 +00:00
parent f538e133cc
commit 7339b9d75f
1 changed files with 1 additions and 1 deletions

View File

@ -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);