mirror of https://github.com/x64dbg/zydis
Backported "Fixed a wrong assert condition" from future branch
Commit on future: e6dbba0bd314680dda64ef34e56cd12046ae8a2d
This commit is contained in:
parent
14eeda7cfc
commit
1aa5e648f1
|
@ -1999,11 +1999,11 @@ FinalizeOperand:
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(ZYDIS_DISABLE_EVEX) || !defined(ZYDIS_DISABLE_MVEX)
|
#if !defined(ZYDIS_DISABLE_EVEX) || !defined(ZYDIS_DISABLE_MVEX)
|
||||||
// Fix operand-action for EVEX instructions with merge-mask
|
// Fix operand-action for EVEX/MVEX instructions with merge-mask
|
||||||
if (instruction->avx.mask.reg && (instruction->avx.mask.mode == ZYDIS_MASK_MODE_MERGE) &&
|
if (instruction->avx.mask.reg && (instruction->avx.mask.mode == ZYDIS_MASK_MODE_MERGE) &&
|
||||||
!instruction->avx.mask.isControlMask)
|
!instruction->avx.mask.isControlMask)
|
||||||
{
|
{
|
||||||
ZYDIS_ASSERT(instruction->operandCount >= 2);
|
ZYDIS_ASSERT(instruction->operandCount >= 1);
|
||||||
switch (instruction->operands[0].action)
|
switch (instruction->operands[0].action)
|
||||||
{
|
{
|
||||||
case ZYDIS_OPERAND_ACTION_WRITE:
|
case ZYDIS_OPERAND_ACTION_WRITE:
|
||||||
|
|
Loading…
Reference in New Issue