diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-08 09:42:16 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-08 09:42:16 +0000 |
commit | 890986ca2a976fb7f79f0734b606a75cdcabb87e (patch) | |
tree | cef0daec5f0ca7284c8291a6431c0bfc709ffe7a /MdeModulePkg/Universal/Network/ArpDxe | |
parent | 32d4a8efb9f4839ab6951dafdec62e7a5af5ba3a (diff) | |
download | edk2-platforms-890986ca2a976fb7f79f0734b606a75cdcabb87e.tar.xz |
add security check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8819 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/ArpDxe')
-rw-r--r-- | MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c index aa4707294b..a3923d95bd 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c +++ b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c @@ -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:
|