]> granicus.if.org Git - pdns/commit
Check that offset < len in DNSName constructor
authorRemi Gacogne <rgacogne-github@coredump.fr>
Fri, 27 Nov 2015 14:06:32 +0000 (15:06 +0100)
committerRemi Gacogne <rgacogne-github@coredump.fr>
Fri, 27 Nov 2015 14:06:32 +0000 (15:06 +0100)
commitadbace93400f7eef30c964c337766eab2c914178
treeedda4d18152127542bf5e9b22fe20fb3737ac871
parent7719775ec43c77ac17dd830183ffb7a51c70e8b2
Check that offset < len in DNSName constructor

Otherwise, we might call memchr() with garbage, as len and offset
are signed but memchr()'s n is unsigned (size_t).
pdns/dnsname.cc