add security check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8819 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1617,7 +1617,7 @@ ArpFindCacheEntry (
|
||||
//
|
||||
// Set the fields in FindData.
|
||||
//
|
||||
FindData->Size = *EntryLength;
|
||||
FindData->Size = FoundEntryLength;
|
||||
FindData->DenyFlag = (BOOLEAN)(CacheTable == &ArpService->DeniedCacheTable);
|
||||
FindData->StaticFlag = (BOOLEAN)(CacheEntry->DefaultDecayTime == 0);
|
||||
FindData->HwAddressType = ArpService->SnpMode.IfType;
|
||||
@@ -1646,7 +1646,7 @@ ArpFindCacheEntry (
|
||||
//
|
||||
// Slip to the next FindData.
|
||||
//
|
||||
FindData = (EFI_ARP_FIND_DATA *)((UINT8 *)FindData + *EntryLength);
|
||||
FindData = (EFI_ARP_FIND_DATA *)((UINT8 *)FindData + FoundEntryLength);
|
||||
}
|
||||
|
||||
CLEAN_EXIT:
|
||||
|
Reference in New Issue
Block a user