Ignore "GIF of death."

// FREEBIE
pull/1/head
Matthew Chen 7 years ago
parent 7f15228aba
commit ef21c6d50c

@ -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;

Loading…
Cancel
Save