x/tools/gopls: slice OOB panic in fixAST on array type #70745
Labels
gopls/telemetry-wins
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Issue created by stacks.
Looks like the indices that were sliced were not what was checked with safetoken:
This stack
N2S9sg
was reported by telemetry:crash/crash
runtime.gopanic:+69
runtime.goPanicSliceAcap:+2
golang.org/x/tools/gopls/internal/cache/parsego.fixArrayType:+18
golang.org/x/tools/gopls/internal/cache/parsego.fixAST.func1:+13
golang.org/x/tools/gopls/internal/cache/parsego.walkASTWithParent.func1:+17
go/ast.inspector.Visit:+1
go/ast.Walk:+1
go/ast.Walk:+184
go/ast.walkList[...]:=21
go/ast.Walk:+178
go/ast.Walk:+185
go/ast.walkList[...]:=21
go/ast.Walk:+192
go/ast.walkList[...]:=21
go/ast.Walk:+178
go/ast.Walk:+201
go/ast.walkList[...]:=21
go/ast.Walk:+178
go/ast.Walk:+229
go/ast.walkList[...]:=21
Dups: P6TRhg
The text was updated successfully, but these errors were encountered: