Address sanitizer found an issue which we filed a bug for: <rdar://problem/13168967>

llvm-svn: 174579
This commit is contained in:
Greg Clayton 2013-02-07 03:41:30 +00:00
parent f6cdd126e8
commit 5c9737a5dd

View File

@ -533,6 +533,9 @@ public:
DataEncoderSP region_encoder = m_memory.GetEncoder(region);
if (buf.GetByteSize() > region_encoder->GetByteSize())
return false; // TODO figure out why this happens; try "expr int i = 12; i"
memcpy(region_encoder->GetDataStart(), buf.GetBytes(), buf.GetByteSize());
return true;