mirror of
https://github.com/miekg/dns.git
synced 2025-12-07 21:01:34 +01:00
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.).
This commit is contained in:
parent
57fae415e0
commit
d83e816f30
@ -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"`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user