]> granicus.if.org Git - pdns/commit
Check that offset < len in DNSName::packetParser.
authorRemi Gacogne <rgacogne-github@coredump.fr>
Fri, 20 Nov 2015 11:16:16 +0000 (12:16 +0100)
committerRemi Gacogne <rgacogne-github@coredump.fr>
Fri, 20 Nov 2015 11:16:16 +0000 (12:16 +0100)
commit3bf1f0b0600ddff7fb192a3d4ac5a2a431ff53c6
tree173454e8c75a09ff518fb24f01ea6ce4e4c217ec
parent588e848835629f46c368fa7ffd6ba49a738505f0
Check that offset < len in DNSName::packetParser.

If DNSName::packetParser() is called with offset >= len,
we do pos = qpos + offset, then labellen=*pos++ before
checking that pos is not after qpos + len, leading to
a potential out-of-bound read.
pdns/dnsname.cc