Go version
go version go1.23.4 linux/amd64
Output of go env
in your module/workspace:
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/root/.go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/root/.go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.4'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/src/ngolo-fuzzing/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2757407351=/tmp/go-build -gno-record-gcc-switches'
What did you do?
Run https://go.dev/play/p/nq2AFz9LURX?v=gotip
What did you see happen?
panic: runtime error: slice bounds out of range [24:0]
What did you expect to see?
no panic
Comment From: catenacyber
Found by ngolo-fuzzing https://issues.oss-fuzz.com/u/1/issues/438968237
Comment From: gabyhelp
Related Issues
- debug/elf: slice out of bounds in DynValue #64446 (closed)
- debug/elf: slice bounds out of range in Symbols #62649 (closed)
- debug/elf: slice out of bounds in ImportedLibraries #63610 (closed)
- debug/elf: index out of range in NewFile #70584 (closed)
- debug/dwarf: slice bounds out of range in Ranges (sic) #52528 (closed)
- debug/dwarf: slice bounds out of range #52354 (closed)
- debug/elf: slice bounds out of range #10999 (closed)
- debug/buildinfo: slice bounds out of range #69066 (closed)
- debug/buildinfo: index out of range in buildinfo.Read #57002 (closed)
- debug/elf: panic: runtime error: slice bounds out of range #52035 (closed)
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Comment From: gopherbot
Change https://go.dev/cl/698855 mentions this issue: debug/elf: don't panic if symtab too small