Skip to content

Issue image 1410 panic#180

Merged
197g merged 2 commits intomasterfrom
issue-image-1410-panic
Jan 27, 2021
Merged

Issue image 1410 panic#180
197g merged 2 commits intomasterfrom
issue-image-1410-panic

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