From d83e816f3090897ebc2f37aa3fa8c5c90d79945d Mon Sep 17 00:00:00 2001 From: Ray Bejjani Date: Tue, 25 Jun 2013 14:37:04 -0700 Subject: [PATCH] Changed TestLenCompress to use error inducing name Long labels cause a packing out of bounds error. It is thrown at msg.go:268 in the PackDomain function. It happens with messages of any construction (no RR data, some RR data etc.). --- dns_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns_test.go b/dns_test.go index df865092..292b9a2a 100644 --- a/dns_test.go +++ b/dns_test.go @@ -171,7 +171,7 @@ func TestMsgLenTest(t *testing.T) { return &msg } - name = "miek.nl." + name = "12345678901234567890123456789012345.12345678.123." rrA, _ = NewRR(name + " 3600 IN A 192.0.2.1") rrMx, _ = NewRR(name + " 3600 IN MX 10 " + name) rrTxt, _ = NewRR(name + ` 3600 IN TXT "I am a TXT"`)