X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FDhcp6Dxe%2FDhcp6Io.c;fp=NetworkPkg%2FDhcp6Dxe%2FDhcp6Io.c;h=d25b9734d8de7178c9ff6e648a1efeb0f86db32f;hp=b4e00079260a2924951b68717290805e3ac22f7b;hb=37b680116dcd4a3517cb87794c33fc84beea8dd2;hpb=1b31acb66c026f2791c959a4ec9b55c04d583c22 diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c index b4e0007926..d25b9734d8 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c @@ -2,7 +2,7 @@ Dhcp6 internal functions implementation. (C) Copyright 2014 Hewlett-Packard Development Company, L.P.
- Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2016 Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -2827,6 +2827,10 @@ Dhcp6ReceivePacket ( return ; } + if (Udp6Wrap->TotalSize < sizeof (EFI_DHCP6_HEADER)) { + goto ON_CONTINUE; + } + // // Copy the net buffer received from upd6 to a Dhcp6 packet. //