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:
jji4 2009-01-15 03:46:29 +00:00
parent 6d9f0e7eec
commit 9cdae8c6a2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}