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

Better handling of image size overflows #1510

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

fintelia
Copy link
Contributor

Avoids a possible panic from allocating more than isize::MAX bytes for a single Vec, but otherwise doesn't prevent attempts to do unreasonably large allocations.

Copy link
Member

@HeroicKatora HeroicKatora left a comment

Choose a reason for hiding this comment

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

👍 , after readability nit

src/image.rs Outdated Show resolved Hide resolved
@HeroicKatora HeroicKatora merged commit 0113429 into image-rs:master Jul 15, 2021
@HeroicKatora HeroicKatora mentioned this pull request Feb 4, 2022
9 tasks
@fintelia fintelia deleted the handle-overflow branch August 25, 2023 05:02
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.

2 participants