[ldns-users] Segfault bug in ldns 1.6.17

Yuri Schaeffer yuri at nlnetlabs.nl
Fri Jun 13 14:58:01 UTC 2014


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

I just noticed Willem already plugged that hole last January in commit
2853eb352b4461e98f2926ace4ea3810cedf4167 [0]. So it will be part of
the next release.

Thanks,
Yuri

[0]
http://git.nlnetlabs.nl/ldns/commit/?h=develop&id=2853eb352b4461e98f2926ace4ea3810cedf4167

On 13-06-14 13:58, Yuri Schaeffer wrote:
> 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
> 
> 
> 
> _______________________________________________ ldns-users mailing
> list ldns-users at open.nlnetlabs.nl 
> http://open.nlnetlabs.nl/mailman/listinfo/ldns-users
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlObEXkACgkQI3PTR4mhavh3PgCcCycZlAWTf2VDOIQglwbMDikt
AMEAoIs7da4IS/h/2e2i3ptLdxSOYmC2
=vOkm
-----END PGP SIGNATURE-----



More information about the ldns-users mailing list