From 825007b4fa04a475d43546ac027859f2f1c158ad Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 27 Sep 2011 23:21:58 +0000 Subject: [PATCH] Slightly more accurate decoding of unknown instructions --- src/arch/i386.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/i386.h b/src/arch/i386.h index 5c6e979..72511a4 100644 --- a/src/arch/i386.h +++ b/src/arch/i386.h @@ -73,6 +73,8 @@ static int _i386_decode(ArchPlugin * plugin, ArchInstructionCall * call) opcode); if(ai != NULL) helper->read(helper->arch, &u8, sizeof(u8)); + else + opcode >>= 8; } if(ai == NULL) {