Skip to content

Commit

Permalink
Add test for forward compression pointer (#1123)
Browse files Browse the repository at this point in the history
Automatically submitted.
  • Loading branch information
gibson042 authored May 27, 2020
1 parent 0ffcea3 commit 203ad24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions msg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ func TestUnpackDomainName(t *testing.T) {
"\x03foo" + "\x03bar" + "\x07example" + "\xC0\x04",
"",
ErrLongDomain.Error()},
{"forward compression pointer", "\x02\xC0\xFF\xC0\x01", "", ErrBuf.Error()},
{"reserved compression pointer 0b10", "\x07example\x80", "", "dns: bad rdata"},
{"reserved compression pointer 0b01", "\x07example\x40", "", "dns: bad rdata"},
}
Expand Down

0 comments on commit 203ad24

Please sign in to comment.