]> Cypherpunks.ru repositories - gostls13.git/commit
net: fix failure of TestCVE202133195
authorXiangdong Ji <xiangdong.ji@gmail.com>
Mon, 28 Jun 2021 12:27:30 +0000 (20:27 +0800)
committerDamien Neil <dneil@google.com>
Tue, 29 Jun 2021 21:54:24 +0000 (21:54 +0000)
commitf9d50953b94c15936a72a39a205b3d72ea6dee41
treed6815e75e7060401892667134fe50bf70cf17002
parente294b8a49e5ff157041b4ac6c3c3413dafd13673
net: fix failure of TestCVE202133195

TestCVE202133195 fails in testing LookupSRV if /etc/resolv.conf sets the option
'ndots' larger than the number of dots in the domain name under query.

Fix the issue by making the input domain name in test codes 'rooted' to skip search
list qualifying.

Fixes #46955

Change-Id: I1909fa7e54e9c9af57623e57cafc905729ff99fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/330842
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
src/net/dnsclient_unix_test.go