Skip to content

x/tools/gopls: out-of-bounds slice panic in bug in frob.(*reader).bytes #71244

Open
@adonovan

Description

@adonovan
#!stacks
"runtime.goPanicSliceAcap" && "frob.(*reader).bytes"

Issue created by stacks.

func (r *reader) bytes(n int) []byte {
	v := r.data[:n]
	r.data = r.data[n:] // <--- panic
	return v
}

This stack MZjt-Q was reported by telemetry:

golang.org/x/tools/[email protected] go1.23.3 linux/amd64 vscode (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.gopls/memory-corruption"can't happen" gopls crashes (races, unsafe, miscompile, runtime bugs, faulty HW)gopls/telemetry-wins

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions