bind9/bin/tests/system/formerr
alessio 887502e37d Drop malformed notify messages early instead of decompressing them
The DNS header shows if a message has multiple questions or invalid
NOTIFY sections. We can drop these messages early, right after parsing
the question. This matches RFC 9619 for multi-question messages and
Unbound's handling of NOTIFY.
To further add further robustness, we include an additional check for
unknown opcodes, and also drop those messages early.

Add early_sanity_check() function to check for these conditions:
- Messages with more than one question, as required by RFC 9619
- NOTIFY query messages containing answer sections (like Unbound)
- NOTIFY messages containing authority sections (like Unbound)
- Unknown opcodes.
2025-02-25 10:40:38 +01:00
..
ns1 explicitly set dnssec-validation in system tests 2023-06-26 13:41:56 -07:00
badnsec3owner add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
badrecordname add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
dupans add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
dupquestion add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
formerr.pl Remove trailing whitespace from all text files 2023-06-13 15:05:40 +02:00
keyclass add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
malformeddeltype add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
malformedrrsig add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
nametoolong 3458. [bug] Return FORMERR when presented with a overly long 2013-01-10 10:30:15 +11:00
noquestions 3458. [bug] Return FORMERR when presented with a overly long 2013-01-10 10:30:15 +11:00
optwrongname add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
qtypeasanswer add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
questionclass add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
setup.sh Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
shortquestion add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
shortrecord add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
tests.sh Drop malformed notify messages early instead of decompressing them 2025-02-25 10:40:38 +01:00
tests_sh_formerr.py Replace clean.sh files with extra_artifacts mark 2024-11-08 10:54:24 +01:00
tsignotlast add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
tsigwrongclass add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
twoquestionnames add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
twoquestiontypes add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00
wrongclass add test cases for several FORMERR code paths: 2024-05-17 13:39:22 +10:00