Skip to content

Commit 50b0c34

Browse files
authored
[lldb] Fix assertion when opcodes are exactly the length of the buffer (#157196)
1 parent d2646ca commit 50b0c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/include/lldb/Core/Opcode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class Opcode {
211211
if (bytes != nullptr && length > 0) {
212212
m_type = type;
213213
m_data.inst.length = length;
214-
assert(length < sizeof(m_data.inst.bytes));
214+
assert(length <= sizeof(m_data.inst.bytes));
215215
memcpy(m_data.inst.bytes, bytes, length);
216216
m_byte_order = order;
217217
} else {

0 commit comments

Comments
 (0)