Ignore "GIF of death."

// FREEBIE
This commit is contained in:
Matthew Chen 2017-08-29 16:25:08 -04:00
parent 7f15228aba
commit ef21c6d50c

View file

@ -87,6 +87,7 @@ typedef NS_ENUM(NSInteger, ImageFormat) {
// Parse the GIF header to prevent the "GIF of death" issue.
//
// See: https://blog.flanker017.me/cve-2017-2416-gif-remote-exec/
// See: https://www.w3.org/Graphics/GIF/spec-gif89a.txt
- (BOOL)hasValidGifSize
{
const NSUInteger kSignatureLength = 3;