mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Ignore "GIF of death."
// FREEBIE
This commit is contained in:
parent
7f15228aba
commit
ef21c6d50c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue