Address sanitizer found an issue which we filed a bug for: <rdar://problem/13168967>
llvm-svn: 174579
diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp
index a01e191..de30832 100644
--- a/lldb/source/Expression/IRInterpreter.cpp
+++ b/lldb/source/Expression/IRInterpreter.cpp
@@ -533,6 +533,9 @@
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;