Skip to content

Commit c51b53d

Browse files
authored
Fix out of bound read/write issue (intel#18137)
JIRA: CMPLRLLVM-54071 Cherry-pick from https://github.com/intel-restricted/applications.compilers.llvm-project/pull/18047
1 parent e0b53b5 commit c51b53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ struct InternalInstruction {
948948
// Immediates. There can be two in some cases
949949
uint8_t numImmediatesConsumed;
950950
uint8_t numImmediatesTranslated;
951-
uint64_t immediates[2];
951+
uint64_t immediates[3]; // INTEL
952952

953953
// A register or immediate operand encoded into the opcode
954954
Reg opcodeRegister;

0 commit comments

Comments
 (0)