Skip to content

net: TestCVE202133195 fails if /etc/resolv.conf specifies ndots larger than 3 #46955

@shawndx

Description

@shawndx

What version of Go are you using (go version)?

$ go version

go version devel go1.17-c95464f0ea Sun Jun 27 05:06:30 2021 +0000 linux/amd64

Does this issue reproduce with the latest release?

Reproducible with go1.16.5

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"

What did you do?

In /etc/resolv.conf there is "options ndots:5", then ./make.bash failed with the following error.

--- FAIL: TestCVE202133195 (0.00s)
dnsclient_unix_test.go:1925: Resolver.LookupSRV returned unexpected error, got "lookup golang.org: SRV target is invalid", want "lookup golang.org: SRV header name is invalid"
dnsclient_unix_test.go:1929: LookupSRV returned unexpected error, got "lookup golang.org: SRV target is invalid", want "lookup golang.org: SRV header name is invalid"
FAIL
FAIL net 5.458s

What did you expect to see?

What did you see instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions