mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
Source level security checked
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7282 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b77d0076f9
commit
6d9f0e7eec
@ -1370,6 +1370,11 @@ EbcExecuteInstructions (
|
||||
UINTN InstructionsLeft;
|
||||
UINTN SavedInstructionCount;
|
||||
|
||||
if ((*VmPtr->Ip & 0x3F) >= sizeof(mVmOpcodeTable)) {
|
||||
EbcDebugSignalException (EXCEPT_EBC_INVALID_OPCODE, EXCEPTION_FLAG_FATAL, VmPtr);
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
|
||||
if (*InstructionCount == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user