mirror of https://github.com/x64dbg/zydis
Added missing `LOCK` prefix check for `3DNOW` encoded instructions
This commit is contained in:
parent
7fb7eea11f
commit
9c71771875
|
@ -3660,6 +3660,10 @@ static ZydisStatus ZydisNodeHandlerOpcode(ZydisDecoderContext* context,
|
||||||
switch (instruction->opcode)
|
switch (instruction->opcode)
|
||||||
{
|
{
|
||||||
case 0x0F:
|
case 0x0F:
|
||||||
|
if (instruction->raw.prefixes.hasF0)
|
||||||
|
{
|
||||||
|
return ZYDIS_STATUS_ILLEGAL_LOCK;
|
||||||
|
}
|
||||||
instruction->encoding = ZYDIS_INSTRUCTION_ENCODING_3DNOW;
|
instruction->encoding = ZYDIS_INSTRUCTION_ENCODING_3DNOW;
|
||||||
instruction->opcodeMap = ZYDIS_OPCODE_MAP_0F0F;
|
instruction->opcodeMap = ZYDIS_OPCODE_MAP_0F0F;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue