diff options
Diffstat (limited to 'lldb/source/Expression/IRInterpreter.cpp')
-rw-r--r-- | lldb/source/Expression/IRInterpreter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp index a01e19165e1..de3083283ec 100644 --- a/lldb/source/Expression/IRInterpreter.cpp +++ b/lldb/source/Expression/IRInterpreter.cpp @@ -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; |