mirror of https://github.com/x64dbg/zydis
fixed invalid array access
- an invalid array access could crash on decoding some 3D-Now instructions
This commit is contained in:
parent
df84e70229
commit
44c3b6b2b0
|
@ -6,7 +6,7 @@
|
|||
Remarks : Freeware, Copyright must be included
|
||||
|
||||
Original Author : Florian Bernd
|
||||
Modifications : Joel Höner
|
||||
Modifications : Joel Höner
|
||||
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -1120,7 +1120,7 @@ bool InstructionDecoder::decodeOpcode(InstructionInfo& info)
|
|||
{
|
||||
if (info.operand[i].type != OperandType::NONE)
|
||||
{
|
||||
info.operand[i - 1].access_mode = OperandAccessMode::READ;
|
||||
info.operand[i].access_mode = OperandAccessMode::READ;
|
||||
}
|
||||
}
|
||||
if (info.operand[0].type != OperandType::NONE)
|
||||
|
@ -1313,4 +1313,4 @@ DecodeError:
|
|||
|
||||
/* ============================================================================================== */
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue