]> 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]>
Sun, 15 Nov 2020 04:34:25 +0000 (20:34 -0800)
commit92d636a906d450f9bd344ee312cfa9c88c3d2bd6
tree683db47e3c59bec3c98dd39ad895c3cfd84555f9
parente041680a786eccb37479da8c7671acf17339d4bd
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.
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]