-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: slice OOB panic in fixAST on array type #70745
Comments
This stack
|
Change https://go.dev/cl/639397 mentions this issue: |
This stack
|
This stack
|
This stack
|
This stack
|
This stack
|
This stack
|
This stack
|
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 e_PFBQ LmYeow Xc5VZA f1_jlA jAiVQA Y9oucw 7EmzGg
The text was updated successfully, but these errors were encountered: