]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/DnsDxe: Avoid to access the freed memory buffer.
authorJiaxin Wu <jiaxin.wu@intel.com>
Fri, 17 Nov 2017 03:09:01 +0000 (11:09 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Tue, 12 Dec 2017 11:09:19 +0000 (19:09 +0800)
commit0c6108b6524483d0e20f8d91caedb15daf75765a
tree1c833102de035f275c9ecc7f525558ef5c7acaf5
parent43d7e607348ee14de334e11e9c6987278af57f14
NetworkPkg/DnsDxe: Avoid to access the freed memory buffer.

The HostNameToIp() is a asynchronous function, so the caller
may free the HostName buffer immediately once HostNameToIp()
is returned. Then DNS driver may access the freed memory buffer
later.

This patch is to fix above issue.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wang Fan <fan.wang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
NetworkPkg/DnsDxe/DnsProtocol.c