git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10151
6f19259b-4bc3-4df7-8a09-
765794883524
*BufferSize = ResultSize;\r
\r
if (SearchType == ByRegisterNotify && !EFI_ERROR(Status)) {\r
+ ASSERT (SearchKey != NULL);\r
//\r
// If this is a search by register notify and a handle was\r
// returned, update the register notification position\r
EFI_STATUS Status;\r
FREE_POOL_HEADER *Hdr;\r
\r
+ ASSERT (PoolIndex <= MAX_POOL_INDEX);\r
Status = EFI_SUCCESS;\r
if (PoolIndex == MAX_POOL_INDEX) {\r
Hdr = (FREE_POOL_HEADER *)AllocatePages (EFI_SIZE_TO_PAGES (MAX_POOL_SIZE << 1));\r