From 10bc205ff66c31933260c298e29efc9981631877 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Wed, 6 Oct 2021 16:19:20 -0400 Subject: [PATCH] error tests from the fuzzer --- src/tests/unit/protocols/dns/error.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/tests/unit/protocols/dns/error.txt diff --git a/src/tests/unit/protocols/dns/error.txt b/src/tests/unit/protocols/dns/error.txt new file mode 100644 index 0000000000..115948c279 --- /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 -- 2.47.2