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 capacity overflow in JpegReader #200

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

anfedotoff
Copy link
Contributor

Hi!
I've been fuzzing image-rs crate with AFL++ using this fuzz target and found a capacity overflow. I think it is better not to panic if we couldn't allocate memory. So, I tried to fix this case.
P.S. If it is interesting I could create a PR for adding AFL++ fuzz targets to image-rs.

src/decoder/stream.rs Outdated Show resolved Hide resolved
@HeroicKatora
Copy link
Member

Thanks!

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