Skip to content

Commit 203ad24

Browse files
authored
Add test for forward compression pointer (miekg#1123)
Automatically submitted.
1 parent 0ffcea3 commit 203ad24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

msg_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ func TestUnpackDomainName(t *testing.T) {
202202
"\x03foo" + "\x03bar" + "\x07example" + "\xC0\x04",
203203
"",
204204
ErrLongDomain.Error()},
205+
{"forward compression pointer", "\x02\xC0\xFF\xC0\x01", "", ErrBuf.Error()},
205206
{"reserved compression pointer 0b10", "\x07example\x80", "", "dns: bad rdata"},
206207
{"reserved compression pointer 0b01", "\x07example\x40", "", "dns: bad rdata"},
207208
}

0 commit comments

Comments
 (0)