Skip to content
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

read/pe should handle unaligned section addresses and sizes #260

Open
philipc opened this issue Nov 26, 2020 · 1 comment
Open

read/pe should handle unaligned section addresses and sizes #260

philipc opened this issue Nov 26, 2020 · 1 comment
Labels

Comments

@philipc
Copy link
Contributor

philipc commented Nov 26, 2020

The PE file format specifies that sections should be aligned, but Windows still loads them if they are not. We should duplicate the logic that Windows uses.

@philipc philipc added the bug label Nov 26, 2020
@philipc
Copy link
Contributor Author

philipc commented Nov 30, 2020

I don't think there's any official documentation on how to handle this, and llvm-readobj doesn't handle the example file either, so this is a low priority unless you're interested in things like parsing malware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant