From 176ad970db109523a3ac6d501b23608540d4a930 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Tue, 30 Jun 2009 20:38:04 +0000 Subject: Tried to fix a bug in 'jle' relative address computing. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@87 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 5 +++++ src/arch/x86/processor.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cec2b3d..9f4ab26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 09-06-30 Cyrille Bagard + * src/arch/x86/processor.c: + Try to fix a bug in 'jle' relative address computing. + +09-06-30 Cyrille Bagard + * src/arch/x86/instruction.c: Fix a copy/paste mistake about the type of a 'jle' link. diff --git a/src/arch/x86/processor.c b/src/arch/x86/processor.c index b4ee334..ac6fb8e 100644 --- a/src/arch/x86/processor.c +++ b/src/arch/x86/processor.c @@ -181,7 +181,11 @@ static GArchInstruction *g_x86_processor_decode_instruction(const GX86Processor id = x86_guess_next_instruction(data, *pos, len, &prefix, &care); - if (prefix & XPX_TWO_BYTES) (*pos)++; + if (prefix & XPX_TWO_BYTES) + { + (*pos)++; + addr++; + } if (prefix & XPX_OPERAND_SIZE_OVERRIDE) (*pos)++; if (id != XOP_COUNT && !care) (*pos)++; -- cgit v0.11.2-87-g4458