[ldns-users] ldns_wire2dname() doesn't reject some invalid pointers

W.C.A. Wijngaards wouter at NLnetLabs.nl
Tue Sep 15 12:33:37 UTC 2009


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

Hi Joao,

On 09/14/2009 12:11 PM, Joao Damas wrote:
>> Accept lenient, send strictly.  Hence the acceptance of forward
>> pointers for compression.
>>
>> ldns does check for loops, if that is what you're worried about.
>>
> 
> it does by keeping track of how many pointers it has dereferenced and
> stopping if it reaches some arbitrary number.
> Now, if only "prior occurences" (as per rfc1035) are accepted, loops
> would not be possible, right? (prior meaning target < current, excluding =)

Yes.  But you would not be accepting leniently.  Although the word
'prior' seems to be used in the RFC, accepting a somewhat differently
encoded compression with forward pointers is important for good
operations, I think.

Best regards,
   Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkqviaAACgkQkDLqNwOhpPhWjwCdF7uq1z+nZy8Mw5plP8YbPVij
Iy8AnAh257LhLqH2YUhNdYzpLOj1aLCj
=vyBF
-----END PGP SIGNATURE-----



More information about the ldns-users mailing list