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 overflow when parsing PE file #3

Merged
merged 2 commits into from
Jan 22, 2022
Merged

Fix overflow when parsing PE file #3

merged 2 commits into from
Jan 22, 2022

Conversation

HoundThe
Copy link
Member

Solves #2

This PR stops overflow to 0 from happening when adding two 32bit numbers when calculating file offset that is used to check if we can read that far.

I've also added an extra check if the file has even a DOS "MZ" header.

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.

1 participant