Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Images] Bail out when GIF data is in unexpected format instead of cr…
…ashing Summary: When the GIF data is not a string nor NSData, `imageSource` is some unknown value set to whatever memory was on the stack. Calling `CGImageSourceGetType` on it has undefined behavior, and if it makes through to the CFRelease (maybe because it is NULL) then CFRelease will crash. This fixes a clang warning. Closes facebook#77 Github Author: James Ide <ide@jameside.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
- Loading branch information