mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-12 21:28:48 +00:00
Address sanitizer found an issue which we filed a bug for: <rdar://problem/13168967>
llvm-svn: 174579
This commit is contained in:
parent
f6cdd126e8
commit
5c9737a5dd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user