debug/pe: slice bounds out of range panic #73548
Labels
BugReport
Issues describing a possible bug in the Go implementation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.24.2 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I attempted to automatically analyze the executables on a Windows host. As a part of that,
debug/pe.File.ImportedSymbols()
was called.This failed on the official Windows Word .exe file with a "slice bounds out of range" error.
https://go.dev/play/p/K1_mQcc4Fbd
Minimal example which produces the same error with just the first 32k bytes of
winword.exe
.If required, I can share the full file itself as well. Though I am not 100% sure about the licensing terms of sharing
winword.exe
What did you see happen?
Slice bounds out of error panic, as is visible in the Go Playground link.
What did you expect to see?
A slice with the names of the symbols, as the documentation states.
The text was updated successfully, but these errors were encountered: