[ldns-users] [PATCH 0/2] allocation errors in packet parsing
W.C.A. Wijngaards
wouter at nlnetlabs.nl
Tue Apr 4 14:37:49 UTC 2017
Hi Jan,
Thank you for the fixes. I have applied them to the develop branch.
Best regards, Wouter
On 04/04/17 16:28, Jan Vcelak wrote:
> Hello,
>
> the attached patches fix some issues in ldns_wire2pkt function.
>
> I don't exactly remember the circumstance of finding the first problem
> because the patch has been laying in my repository for a while. But
> the fix is pretty obvious.
>
> The second patch fixes memory leak when parsing malformed packet that
> contains multiple EDNS records. The old EDNS buffer needs to be
> deallocated first.
>
> (The patches apply cleanly on develop branch.)
>
> Regards,
>
> Jan
>
>
> Jan Vcelak (2):
> ldns_wire2pkt: fix null pointer dereference if pkt allocation fails
> ldns_wire2pkt: fix memory leak with more EDNS sections
>
> wire2host.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/ldns-users/attachments/20170404/d90ea3e8/attachment.bin>
More information about the ldns-users
mailing list