-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug/pe: Failed to parse an exe file that is modified by UpdateResourceA Windows API #65145
Comments
I can reproduce this issue, but it seems that the Other PE parsers also fail to read that image: >llvm-readobj --headers main.exe
llvm-readobj.exe: error: 'main.exe': string table empty
>dumpbin main.exe
Microsoft (R) COFF/PE Dumper Version 14.29.30153.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file main.exe
File Type: EXECUTABLE IMAGE
main.exe : fatal error LNK1106: invalid file or disk full: cannot seek to 0x183482 @golang/windows |
FWIW I reached a similar conclusion:
However I don't know enough about PE and (especially) UpdateResource to be sure. |
Doing a quick online search I've found that
People has come up with workarounds to fix the corrupted binaries, but there is nothing |
Go version
go version go1.21.6 windows/amd64
Output of
go env
in your module/workspace:What did you do?
Two files in a directory:
Execute the the following commands in that directory:
What did you see happen?
0x0, fail to read string table: unexpected EOF
What did you expect to see?
<some_pointer>, nil
The text was updated successfully, but these errors were encountered: