//\r
// Set the fields in FindData.\r
//\r
- FindData->Size = *EntryLength;\r
+ FindData->Size = FoundEntryLength;\r
FindData->DenyFlag = (BOOLEAN)(CacheTable == &ArpService->DeniedCacheTable);\r
FindData->StaticFlag = (BOOLEAN)(CacheEntry->DefaultDecayTime == 0);\r
FindData->HwAddressType = ArpService->SnpMode.IfType;\r
//\r
// Slip to the next FindData.\r
//\r
- FindData = (EFI_ARP_FIND_DATA *)((UINT8 *)FindData + *EntryLength);\r
+ FindData = (EFI_ARP_FIND_DATA *)((UINT8 *)FindData + FoundEntryLength);\r
}\r
\r
CLEAN_EXIT:\r
if (EFI_ERROR (Status)) {\r
goto ON_ERROR;\r
}\r
+ ASSERT (SeedOptions != NULL);\r
\r
for (Index = 0; Index < (UINT32) Count; Index++) {\r
Mark[SeedOptions[Index].Tag] = SeedOptions[Index];\r
/** @file\r
- Implementation of reading and writing operations on the NVRAM device\r
- attached to a network interface.\r
+ Implementation of reading and writing operations on the NVRAM device\r
+ attached to a network interface.\r
\r
-Copyright (c) 2004 - 2007, Intel Corporation. <BR> \r
+Copyright (c) 2004 - 2009, Intel Corporation. <BR> \r
All rights reserved. This program and the accompanying materials are licensed \r
and made available under the terms and conditions of the BSD License which \r
accompanies this distribution. The full text of the license may be found at \r
return EFI_DEVICE_ERROR;\r
}\r
\r
+ ASSERT ((Offset + BufferSize) <= sizeof (Db->Data));\r
+\r
CopyMem (Buffer, Db->Data.Byte + Offset, BufferSize);\r
\r
return EFI_SUCCESS;\r
@param Seed Pointer to the message instance of the DHCP4 packet.\r
@param Udp4 Pointer to the EFI_UDP4_PROTOCOL instance.\r
\r
- @return none.\r
-\r
**/\r
VOID\r
PxeBcInitSeedPacket (\r
@param Dst Pointer to the EFI_DHCP4_PROTOCOL instance.\r
@param Src Pointer to the EFI_DHCP4_PROTOCOL instance.\r
\r
- @return None.\r
-\r
**/\r
VOID\r
PxeBcCopyEfiDhcp4Packet (\r
@param OfferIndex Index of cached packets as complements of pxe mode data,\r
the index is maximum offer number.\r
\r
- @return None.\r
-\r
**/\r
VOID\r
PxeBcCopyProxyOffer (\r
EFI_DHCP4_PACKET *Offer;\r
\r
ASSERT (OfferIndex < Private->NumOffers);\r
+ ASSERT (OfferIndex < PXEBC_MAX_OFFER_NUM);\r
\r
Mode = Private->PxeBc.Mode;\r
Offer = &Private->Dhcp4Offers[OfferIndex].Packet.Offer;\r
@param Private Pointer to PxeBc private data.\r
@param RcvdOffer Pointer to the received Dhcp proxy offer packet.\r
\r
- @return None.\r
-\r
**/\r
VOID\r
PxeBcCacheDhcpOffer (\r
\r
@param Private Pointer to PxeBc private data.\r
\r
- @return None\r
-\r
**/\r
VOID\r
PxeBcSelectOffer (\r
@param Str Pointer to a string (boot item string).\r
@param Len The length of string.\r
\r
- @return None.\r
-\r
**/\r
VOID\r
PxeBcDisplayBootItem (\r
@param Seed Pointer to the message instance of the DHCP4 packet.\r
@param Udp4 Pointer to the EFI_UDP4_PROTOCOL instance.\r
\r
- @return none.\r
-\r
**/\r
VOID\r
PxeBcInitSeedPacket (\r
@param Layer the layer of the boot options \r
@param OptLen length of opotion\r
\r
- @return None.\r
-\r
**/\r
VOID\r
PxeBcCreateBootOptions (\r
\r
@param Event Pointer to EFI_PXE_BC_PROTOCOL\r
@param Context Context of the timer event\r
- \r
- @return None.\r
\r
**/\r
VOID\r
\r
@param Context The PXEBC private data.\r
\r
- @return None.\r
-\r
**/\r
VOID\r
EFIAPI\r
@param Event The event signaled.\r
@param Context The context passed in by the event notifier.\r
\r
- @return None.\r
-\r
**/\r
VOID\r
EFIAPI\r
@param Event The event signaled.\r
@param Context The context.\r
\r
- @return None\r
-\r
**/\r
VOID\r
EFIAPI\r
@param Event The event signaled.\r
@param Context The context.\r
\r
- @return None\r
-\r
**/\r
VOID\r
EFIAPI\r