x86: treat prefix-only sequences of bytes as invalid code. this fixes a NDP reported by @felixgr
This commit is contained in:
parent
715d4474b5
commit
0e9da8736a
|
@ -437,7 +437,7 @@ static int readPrefixes(struct InternalInstruction *insn)
|
||||||
|
|
||||||
/* If we fail reading prefixes, just stop here and let the opcode reader deal with it */
|
/* If we fail reading prefixes, just stop here and let the opcode reader deal with it */
|
||||||
if (consumeByte(insn, &byte))
|
if (consumeByte(insn, &byte))
|
||||||
break;
|
return -1;
|
||||||
|
|
||||||
if (insn->readerCursor - 1 == insn->startLocation
|
if (insn->readerCursor - 1 == insn->startLocation
|
||||||
&& (byte == 0xf2 || byte == 0xf3)) {
|
&& (byte == 0xf2 || byte == 0xf3)) {
|
||||||
|
|
Loading…
Reference in New Issue