From 203ad2480beb9330454efc215d21f16c607e8174 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Wed, 27 May 2020 04:05:25 -0400 Subject: [PATCH] Add test for forward compression pointer (#1123) Automatically submitted. --- msg_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/msg_test.go b/msg_test.go index 08a61950..cacc1ec4 100644 --- a/msg_test.go +++ b/msg_test.go @@ -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"}, }