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

Avoid overflow in bounds check of MinidumpMemory #425

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

5225225
Copy link
Contributor

@5225225 5225225 commented Feb 2, 2022

The fuzzer found yet another overflow.

We could make MinidumpMemory check for self.base_address + self.size being in bounds on construction, but I guess it's better to do it when you actually go to use it, since directly asking for the base address/size still works.

Still, that leads to cases like this.

Copy link
Collaborator

@Gankra Gankra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@luser luser merged commit a324199 into rust-minidump:master Feb 3, 2022
@5225225 5225225 deleted the overflow-bounds-check branch February 3, 2022 20:43
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.

3 participants