From 81f2bcf31c869867f092c42c14bc30f61280ea33 Mon Sep 17 00:00:00 2001 From: David Carne Date: Thu, 28 Apr 2016 20:04:33 -0700 Subject: [PATCH] x86: initialize eaDisplacement in 16-bit mode. Fixes #656 --- arch/X86/X86DisassemblerDecoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/X86/X86DisassemblerDecoder.c b/arch/X86/X86DisassemblerDecoder.c index 4038e2ad4b..6ba5d074b5 100644 --- a/arch/X86/X86DisassemblerDecoder.c +++ b/arch/X86/X86DisassemblerDecoder.c @@ -1646,6 +1646,7 @@ static int readModRM(struct InternalInstruction *insn) break; case 0x3: insn->eaBase = (EABase)(insn->eaRegBase + rm); + insn->eaDisplacement = EA_DISP_NONE; if (readDisplacement(insn)) return -1; break;