debug/buildinfo: build info not found in PE binaries #53071
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?1.18
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?PE go binary, any host OS
What did you do?
The go buildinfo tool fails to locate the build info because the bit test here is wrong
go/src/debug/buildinfo/buildinfo.go
Line 317 in 119da63
.data
section characteristics flags are value0xC0500040
.What did you expect to see?
The
.data
section to be found.What did you see instead?
The
.data
section is not found and the PE is seen as malformed by the buildinfo command, and information extraction fails.The text was updated successfully, but these errors were encountered: