Ignore "GIF of death."

// FREEBIE
pull/1/head
Matthew Chen 8 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. // Parse the GIF header to prevent the "GIF of death" issue.
// //
// See: https://blog.flanker017.me/cve-2017-2416-gif-remote-exec/ // See: https://blog.flanker017.me/cve-2017-2416-gif-remote-exec/
// See: https://www.w3.org/Graphics/GIF/spec-gif89a.txt
- (BOOL)hasValidGifSize - (BOOL)hasValidGifSize
{ {
const NSUInteger kSignatureLength = 3; const NSUInteger kSignatureLength = 3;

Loading…
Cancel
Save