]> granicus.if.org Git - pdns/commit
Throw if DNSName would overflow when asked to read type/class
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 11 Apr 2016 09:14:41 +0000 (11:14 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 11 Apr 2016 09:14:41 +0000 (11:14 +0200)
commitbd910269addb1e7f8a343765c8531f20a6b99498
tree30fcad841bb67bfc7ab1f477b4f137625512a641
parent09cc8c7a36414ed93dd3b67c4767298da7c2f10d
Throw if DNSName would overflow when asked to read type/class

Otherwise, the caller has to check the consumed size to know
if the type and class he asked for have been read, while it
clearly expected them to be present.
Fix a crash in dnsdist ECS parsing found by american fuzzy lop.
pdns/dnscrypt.cc
pdns/dnsdist-ecs.cc
pdns/dnsname.cc