Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Fix crash due to non-standard GIF in case of no value for kCGImagePro… #25

Closed
wants to merge 1 commit into from

Conversation

mintakson
Copy link
Contributor

It's hot-fix for the issue "Crashes with invalid GIF data" (#18)

In case of non-standard GIF, which doesn't contains the value for "kCGImagePropertyGIFDictionary" in its metadata, the app crashes.
To handle this case, I added the logic to check an existence of the value, and if not, return default delay, which is 0.1.

I also added "non_standard_gif.gif" file to the project for testing.
Sample non-standard gif file is from http://media4.giphy.com/media/CsyFeRxyH0um4/200w.gif.

@bahlo
Copy link
Member

bahlo commented Mar 24, 2016

Thank you very much, I'll review this later today and create a bugfix release 👍

@Killectro
Copy link

I'm experiencing this issue as well in one of my apps. Might be worth merging!

@bahlo
Copy link
Member

bahlo commented Aug 22, 2016

Merged in v1.6-beta.1 (soon to be master), thank you 😍

@bahlo bahlo closed this Aug 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants