]> The Tcpdump Group git mirrors - tcpdump/commit
dns: add some additional error checks.
authorGuy Harris <[email protected]>
Sun, 15 Nov 2020 04:34:25 +0000 (20:34 -0800)
committerGuy Harris <[email protected]>
Mon, 16 Nov 2020 02:15:53 +0000 (18:15 -0800)
commitdaba14aba948bd467109ea3ed91b17505578b535
tree0025cb0c7a91e1025a0a43c1dd2f9bff52b38220
parentd1e53f54ffc2f11f2c26f09e3e72969737fe1894
dns: add some additional error checks.

If the upper 2 bits of a label/pointer value are 10, treat that as an
error.

If a name is longer than 255 characters, treat that as an error.

This prevents some long loops with malformed packets, as found by Hardik
Shah.

(backported from commit 92d636a906d450f9bd344ee312cfa9c88c3d2bd6)
nameser.h
print-domain.c
tests/TESTLIST
tests/dns-badlabel.out [new file with mode: 0644]
tests/dns-badlabel.pcap [new file with mode: 0644]