From: Alan T. DeKok Date: Wed, 6 Oct 2021 20:19:20 +0000 (-0400) Subject: error tests from the fuzzer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10bc205ff66c31933260c298e29efc9981631877;p=thirdparty%2Ffreeradius-server.git error tests from the fuzzer --- diff --git a/src/tests/unit/protocols/dns/error.txt b/src/tests/unit/protocols/dns/error.txt new file mode 100644 index 00000000000..115948c2795 --- /dev/null +++ b/src/tests/unit/protocols/dns/error.txt @@ -0,0 +1,19 @@ +# +# Test vectors for DHCP attributes +# +proto dns +proto-dictionary dns + +# 0x6000 questions +decode-proto 44 81 9a 97 00 00 00 00 60 00 00 00 00 00 01 00 2d 00 00 dc dc 23 +match Failed decoding NS - ns structure at count 1/24576 overflows the packet + +# 256 bytes of data +decode-proto 44 81 9a 97 00 00 00 00 00 01 00 00 01 00 00 00 2d 00 00 dc dc 23 +match packet = { id = 17537, query = response, opcode = 3, authoritative = no, truncated-response = yes, recursion-desired = no, recursion-available = yes, reserved = no, authentic-data = no, checking-disabled = yes, rcode = yx-rr-set, qdcount = 0, ancount = 0, nscount = 1, arcount = 0 }, ns = { raw.name = 0x010000002d0000dcdc23 } + +decode-proto 20 20 20 20 20 20 20 20 20 20 20 20 ff +match Failed decoding questions - question structure at count 1/8224 overflows the packet + +count +match 8