diff options
author | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-01-15 03:31:55 +0000 |
---|---|---|
committer | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-01-15 03:31:55 +0000 |
commit | 6d9f0e7eecbdbe020dd06610d2e0fe776fcf4338 (patch) | |
tree | a1a2bf249e1f867a7179fd9629c7c4fc06c762f9 /MdeModulePkg/Universal/EbcDxe/EbcExecute.c | |
parent | b77d0076f9379fc82499408d52eee702d2b29599 (diff) | |
download | edk2-platforms-6d9f0e7eecbdbe020dd06610d2e0fe776fcf4338.tar.xz |
Source level security checked
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7282 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/EbcDxe/EbcExecute.c')
-rw-r--r-- | MdeModulePkg/Universal/EbcDxe/EbcExecute.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/EbcDxe/EbcExecute.c b/MdeModulePkg/Universal/EbcDxe/EbcExecute.c index a6d0486632..4f47e206e7 100644 --- a/MdeModulePkg/Universal/EbcDxe/EbcExecute.c +++ b/MdeModulePkg/Universal/EbcDxe/EbcExecute.c @@ -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) {
|