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

Issue image 1410 panic #180

Merged
merged 2 commits into from
Jan 27, 2021
Merged

Issue image 1410 panic #180

merged 2 commits into from
Jan 27, 2021

Conversation

HeroicKatora
Copy link
Member

@HeroicKatora HeroicKatora 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.

The decoding expected a frame to exist by unwrapping its option but an
image that ends directly (in 4 bytes) will trip this condition.
@HeroicKatora HeroicKatora merged commit ff16c65 into master Jan 27, 2021
@HeroicKatora HeroicKatora 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