From 472b37fbf06e3588ff8ec9496aef44758ebf1bc3 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 29 Jul 2023 13:24:03 +0100 Subject: Fix another x86 case and add regression tests --- src/x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/x86.c b/src/x86.c index dc3610e..7a5d00e 100644 --- a/src/x86.c +++ b/src/x86.c @@ -74,7 +74,7 @@ P: X86_SEG_PREFIXES(CASES) case X86_CRAZY8: operandlen = 1; case X86_CRAZYW: if ((insn[1] & 0x38) >= 0x10) operandlen = 0; - return pfxlen + 2 + operandlen + mrmsib(insn + 1, addrlen); + return pfxlen + 1 + operandlen + mrmsib(insn + 1, addrlen); case X86_2BYTE: ++insn; goto b2; } return -1; -- cgit v1.2.3