debug/elf: index out of range in NewFile #70584
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Go version
go 1.23 and go dev branch on playground
Output of
go env
in your module/workspace:What did you do?
Found by ngolo-fuzzing https://issues.oss-fuzz.com/u/1/issues/380938361?pli=1 (long time no new bugs)
Run https://go.dev/play/p/1u2ww_IpvI2
What did you see happen?
panic: runtime error: index out of range [3] with length 0
goroutine 1 [running]:
encoding/binary.littleEndian.Uint32(...)
/usr/local/go-faketime/src/encoding/binary/binary.go:87
debug/elf.NewFile({0x502688, 0xc000016180})
/usr/local/go-faketime/src/debug/elf/file.go:520 +0x2775
main.main()
/tmp/sandbox3298571712/prog.go:12 +0x94
Program exited.
What did you expect to see?
As in go 1.22 : no panic and
Hello, 世界
Program exited.
The text was updated successfully, but these errors were encountered: