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

Fix Incorrect Overlay #34

Merged
merged 2 commits into from May 17, 2017

Conversation

ACSC-CyberLab
Copy link
Contributor

PE overlay's are calculated using the VectorStream's size, which used the binary_'s vector size. Because the vector is over allocated, all PE's (except those that were truncated) had an overlay of 30 NULL bytes. This pull request modifies how the VectorStream's size is returned, as well as checks that overlays exist and returns an empty vector if it doesn't.

@romainthomas romainthomas merged commit eefd90a into lief-project:master May 17, 2017
romainthomas added a commit that referenced this pull request Jul 18, 2017
romainthomas added a commit that referenced this pull request Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants