fixed invalid array access

- an invalid array access could crash on decoding some 3D-Now instructions
This commit is contained in:
Joel Höner 2015-12-08 19:19:34 +01:00
parent df84e70229
commit 44c3b6b2b0
1 changed files with 3 additions and 3 deletions

View File

@ -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:
/* ============================================================================================== */
}
}