diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-06-30 20:38:04 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-06-30 20:38:04 (GMT) |
commit | 176ad970db109523a3ac6d501b23608540d4a930 (patch) | |
tree | e769fbcfa7a1b97367d079fff283ab40c6a9393b /src/arch | |
parent | dcacf4201c9ef35b98ba5bfb778341de0cbaa337 (diff) |
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
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/processor.c | 6 |
1 files changed, 5 insertions, 1 deletions
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)++; |