mirror of
https://gitlab.com/qemu-project/capstone.git
synced 2025-09-17 02:01:15 +08:00
ppc: return failure when Base>=32 in decodeMemRIOperands()
This commit is contained in:
@ -261,6 +261,8 @@ static DecodeStatus decodeMemRIOperands(MCInst *Inst, uint64_t Imm,
|
||||
uint64_t Disp = Imm & 0xFFFF;
|
||||
|
||||
// assert(Base < 32 && "Invalid base register");
|
||||
if (Base >= 32)
|
||||
return MCDisassembler_Fail;
|
||||
|
||||
switch (MCInst_getOpcode(Inst)) {
|
||||
default: break;
|
||||
|
Reference in New Issue
Block a user