diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/arch/x86/processor.c | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,10 @@ 09-06-30 Cyrille Bagard <nocbos@gmail.com> + * src/arch/x86/processor.c: + Try to fix a bug in 'jle' relative address computing. + +09-06-30 Cyrille Bagard <nocbos@gmail.com> + * 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)++; |