Skip to content

Commit e1550dc

Browse files
dsandersllvmgithub-actions[bot]
authored andcommitted
Automerge: [lldb] Fix assertion when opcodes are exactly the length of the buffer (#157196)
2 parents d87eaf3 + 50b0c34 commit e1550dc

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)