diff options
author | Greg Clayton <gclayton@apple.com> | 2013-02-07 03:41:30 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-02-07 03:41:30 +0000 |
commit | 5c9737a5dd039b97a12b4c8607364db20cabeca1 (patch) | |
tree | 9c67f3d25105aee13e5b482efefa66d7f35ff965 /lldb/source/Expression/IRInterpreter.cpp | |
parent | f6cdd126e8a305facea26144230b1975f2076a31 (diff) | |
download | bcm5719-llvm-5c9737a5dd039b97a12b4c8607364db20cabeca1.tar.gz bcm5719-llvm-5c9737a5dd039b97a12b4c8607364db20cabeca1.zip |
Address sanitizer found an issue which we filed a bug for: <rdar://problem/13168967>
llvm-svn: 174579
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; |