Skip to content

Issue image 1410 panic #180

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

Merged
merged 2 commits into from
Jan 27, 2021
Merged

Issue image 1410 panic #180

merged 2 commits into from
Jan 27, 2021

Conversation

197g
Copy link
Member

@197g 197g commented Jan 27, 2021

Fix: image-rs/image#1410

The end of the loop can be reached without having read any frame. Then the frame is still None and we mustn't unwrap the reference we take.

197g added 2 commits January 27, 2021 08:06
The decoding expected a frame to exist by unwrapping its option but an
image that ends directly (in 4 bytes) will trip this condition.
@197g 197g merged commit ff16c65 into master Jan 27, 2021
@197g 197g deleted the issue-image-1410-panic branch January 27, 2021 07:31
wartmanm pushed a commit to wartmanm/jpeg-decoder that referenced this pull request Oct 4, 2021
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.

Panic discovered while fuzzing
1 participant