[ldns-users] Segfault bug in ldns 1.6.17

Yuri Schaeffer yuri at nlnetlabs.nl
Fri Jun 13 11:58:52 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Calle,

> Changing it so that ldns_pkt_free() is only called if stat is
> LDNS_STATUS_OK seems to fix the problem. At least my code doesn't
> segfault any more if I do that.

Thank you for your bug report. I've seen your suggested patch and you
are on the right track but I think it is not entirely correct. and the
real bug is 18 or so lines higher. Where the answer_pkt is freed but
not set to null.

Attached diff.

Regards,
Yuri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlOa53wACgkQI3PTR4mhavg3uACff3agzvFmXVgx+C3oZYhjyfgM
k0EAoMoW5mtdWkvgBMjL8BypbeCHQXqs
=E+i0
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldns.diff
Type: text/x-patch
Size: 427 bytes
Desc: not available
URL: <http://lists.nlnetlabs.nl/pipermail/ldns-users/attachments/20140613/9d3e983b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldns.diff.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <http://lists.nlnetlabs.nl/pipermail/ldns-users/attachments/20140613/9d3e983b/attachment-0001.bin>


More information about the ldns-users mailing list