Hi Fan,
Looks this patch will cause the null pointer dereference issue, see below
analysis:
With this patch, the NET_BUF will be freed and the corresponding Arg (Packet)
will also be freed in DhcpReleasePacket.
Wrap = NetbufFromExt (, 1, 0, 0, DhcpReleasePacket, Packet);
That's
Reviewed-by: Fu Siyuan
> -Original Message-
> From: Wang, Fan
> Sent: Wednesday, November 22, 2017 2:56 PM
> To: edk2-devel@lists.01.org
> Cc: Wu, Jiaxin ; Ye, Ting ; Fu,
> Siyuan ; Wang, Fan
When build a DHCP message in function DhcpSendMessage() or DhcpRetransmit(),
a new NET_BUF is created by the library of NetbufFromExt, but it's not freed
after it is sent out. This patch is to fix this memory leak issue.
Cc: Jiaxin Wu
Cc: Ye Ting
Cc: Fu
3 matches
Mail list logo