[Lldb-commits] [lldb] r174579 - Address sanitizer found an issue which we filed a bug for: <rdar://problem/13168967>
Greg Clayton
gclayton at apple.com
Wed Feb 6 19:41:30 PST 2013
Author: gclayton
Date: Wed Feb 6 21:41:30 2013
New Revision: 174579
URL: http://llvm.org/viewvc/llvm-project?rev=174579&view=rev
Log:
Address sanitizer found an issue which we filed a bug for: <rdar://problem/13168967>
Modified:
lldb/trunk/source/Expression/IRInterpreter.cpp
Modified: lldb/trunk/source/Expression/IRInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRInterpreter.cpp?rev=174579&r1=174578&r2=174579&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRInterpreter.cpp (original)
+++ lldb/trunk/source/Expression/IRInterpreter.cpp Wed Feb 6 21:41:30 2013
@@ -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;
More information about the lldb-commits
mailing list