]> Cypherpunks repositories - gostls13.git/commit
cmd/go/testdata/script: skip EndSequence entries in build_trimpath_cgo
authorMichael Matloob <matloob@golang.org>
Tue, 3 Dec 2024 21:23:18 +0000 (16:23 -0500)
committerMichael Matloob <matloob@golang.org>
Thu, 5 Dec 2024 19:15:00 +0000 (19:15 +0000)
commit1fe65836aca009343274443411f7120d70434ddb
tree0c45c0e2df31eca04714e5d017c292b3579abb7a
parent6293a0683171e3a08e275884fddeaa2b57a861f6
cmd/go/testdata/script: skip EndSequence entries in build_trimpath_cgo

The TestScript/build_trimpath_cgo test for cmd/go has been accessing a
nil pointer when it tries to look up LineEntry.File.Name on a line entry
with EndSequence set to true. The doc for EndSequence specifies that if
EndSequence is set, only it and the Address field are meaningful. Skip
the entries with EndSequence set when building the set of files.

Fixes #70669

Change-Id: I421a2a9348e727e3ac4a3d42baa4d206cfbc047b
Reviewed-on: https://go-review.googlesource.com/c/go/+/633038
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@golang.org>
src/cmd/go/testdata/script/build_trimpath_cgo.txt