projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6cdd12
)
Address sanitizer found an issue which we filed a bug for: <rdar://problem/13168967>
author
Greg Clayton
<gclayton@apple.com>
Thu, 7 Feb 2013 03:41:30 +0000
(
03:41
+0000)
committer
Greg Clayton
<gclayton@apple.com>
Thu, 7 Feb 2013 03:41:30 +0000
(
03:41
+0000)
llvm-svn: 174579
lldb/source/Expression/IRInterpreter.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Expression/IRInterpreter.cpp
b/lldb/source/Expression/IRInterpreter.cpp
index
a01e191
..
de30832
100644
(file)
--- 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;