We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f23cb6 commit c0731a6Copy full SHA for c0731a6
1 file changed
tests/test_protocol.py
@@ -862,12 +862,7 @@ def test_nsec_bitmap_zero_length_window_rejected():
862
863
864
def test_nsec_bitmap_truncated_window_header_rejected():
865
- """A bitmap with a trailing byte too short to hold a window header must be rejected.
866
-
867
- rdata = compressed next-name (2B) + one valid window block (3B) + 1 stray byte.
868
- On the second loop iteration, offset+2 walks past the record's declared end —
869
- the parser must refuse to read window/length fields from past the record.
870
- """
+ """Reject NSEC bitmap with a trailing byte too short to hold a window header."""
871
packet = (
872
b"\x00\x00\x84\x00\x00\x00\x00\x02\x00\x00\x00\x00"
873
b"\x04test\x05local\x00"
0 commit comments