mirror of https://github.com/acidanthera/audk.git
Array boundary evaluation expression fixed.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7283 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6d9f0e7eec
commit
9cdae8c6a2
|
@ -1370,7 +1370,7 @@ EbcExecuteInstructions (
|
|||
UINTN InstructionsLeft;
|
||||
UINTN SavedInstructionCount;
|
||||
|
||||
if ((*VmPtr->Ip & 0x3F) >= sizeof(mVmOpcodeTable)) {
|
||||
if ((*VmPtr->Ip & 0x3F) >= sizeof(mVmOpcodeTable)/sizeof(mVmOpcodeTable[0])) {
|
||||
EbcDebugSignalException (EXCEPT_EBC_INVALID_OPCODE, EXCEPTION_FLAG_FATAL, VmPtr);
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue