From b6649319da38a10ada031c04e1410afb05fb9d10 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 6 Sep 2018 15:12:30 -0400 Subject: [PATCH] Fix build breakage. --- SignalServiceKit/src/Util/NSData+Image.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SignalServiceKit/src/Util/NSData+Image.m b/SignalServiceKit/src/Util/NSData+Image.m index ddcfe3f58..d81068645 100644 --- a/SignalServiceKit/src/Util/NSData+Image.m +++ b/SignalServiceKit/src/Util/NSData+Image.m @@ -136,7 +136,7 @@ typedef NS_ENUM(NSInteger, ImageFormat) { CGFloat bytesPerPixel = kWorseCastComponentsPerPixel * depthBytes; const CGFloat kExpectedBytePerPixel = 4; - const CGFloat kMaxValidImageDimension = 4 * 1024; + const CGFloat kMaxValidImageDimension = 8 * 1024; CGFloat kMaxBytes = kMaxValidImageDimension * kMaxValidImageDimension * kExpectedBytePerPixel; CGFloat actualBytes = width * height * bytesPerPixel; if (actualBytes > kMaxBytes) {