1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

X86 GetTarget fix

This commit is contained in:
Brian Fiete 2020-10-28 13:21:42 -07:00
parent 25ff5ef109
commit 114f5a3c92

View file

@ -384,7 +384,7 @@ uint32 X86Instr::GetTarget(Debugger* debugger, X86CPURegisters* registers)
int opIdx = 0; int opIdx = 0;
auto operand = mMCInst.getOperand(0); auto operand = mMCInst.getOperand(0);
if ((instDesc.OpInfo[0].OperandType == MCOI::OPERAND_REGISTER) && (instDesc.OpInfo[4].OperandType == MCOI::OPERAND_MEMORY)) if ((mMCInst.getNumOperands() >= 5) && (instDesc.OpInfo[0].OperandType == MCOI::OPERAND_REGISTER) && (instDesc.OpInfo[4].OperandType == MCOI::OPERAND_MEMORY))
{ {
opIdx = 4; opIdx = 4;
operand = mMCInst.getOperand(opIdx); operand = mMCInst.getOperand(opIdx);