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

Protect against malformed frame #1447

Merged
merged 2 commits into from
Jan 30, 2016
Merged

Protect against malformed frame #1447

merged 2 commits into from
Jan 30, 2016

Conversation

sukeban
Copy link

@sukeban sukeban commented Jan 25, 2016

We came upon an amimated gif that contained a frame that would return a nil CGImageRef, when adding this image reference to the image array, our app crashed.
This is the bad gif:
12f62f3e2cb15337

This change skips the malformed frames and avoids the crash.

sukeban added 2 commits January 25, 2016 14:21
Don’t add nil to the array, just skip the frame.
rs added a commit that referenced this pull request Jan 30, 2016
Protect against malformed frame
@rs rs merged commit e41af47 into SDWebImage:master Jan 30, 2016
@bpoplauschi bpoplauschi added this to the 3.7.6 milestone Feb 1, 2016
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