mirror of https://github.com/x64dbg/zydis
Fixed MVEX.SSS error-condition
This commit is contained in:
parent
d475231a63
commit
6ff954f585
|
@ -3189,7 +3189,8 @@ static ZydisStatus ZydisDecodeInstruction(ZydisDecoderContext* context, ZydisIns
|
||||||
{ 1, 0, 0, 0, 0, 0, 0, 0 }
|
{ 1, 0, 0, 0, 0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
ZYDIS_ASSERT(def->functionality < ZYDIS_ARRAY_SIZE(lookup));
|
ZYDIS_ASSERT(def->functionality < ZYDIS_ARRAY_SIZE(lookup));
|
||||||
if (!lookup[def->functionality])
|
ZYDIS_ASSERT(info->details.mvex.SSS < 8);
|
||||||
|
if (!lookup[def->functionality][info->details.mvex.SSS])
|
||||||
{
|
{
|
||||||
return ZYDIS_STATUS_DECODING_ERROR;
|
return ZYDIS_STATUS_DECODING_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue