Fixed a bug in the disassembler where the mandatory 0x66

prefix would be misinterpreted in some cases on 32-bit
x86 platforms.  Thanks to Olivier Meurant for identifying
the bug.

llvm-svn: 124709
This commit is contained in:
Sean Callanan 2011-02-02 01:09:02 +00:00
parent c7ce7e2ac3
commit 27a8820ffa

View File

@ -388,6 +388,7 @@ static int readPrefixes(struct InternalInstruction* insn) {
}
} else {
unconsumeByte(insn);
insn->necessaryPrefixLocation = insn->readerCursor - 1;
}
if (insn->mode == MODE_16BIT) {