Add check when use Index as Array [Index] to avoid out of Array bound.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7348 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2009-01-22 15:40:06 +00:00
parent 80882266ed
commit 9872985bb1
2 changed files with 11 additions and 8 deletions

View File

@@ -588,6 +588,7 @@ GetDriverBindingHandleFromImageHandle (
@param Private Pointer to EFI_CALLBACK_INFO.
@param KeyValue The callback key value of device controller item in first page.
KeyValue is larger than or equal to KEY_VALUE_DEVICE_OFFSET.
@param FakeNvData Pointer to PLAT_OVER_MNGR_DATA.
@retval EFI_SUCCESS Always returned.