summarylogtreecommitdiffstats
path: root/fix_PNGImageDecoder.patch
blob: 5f767be35a2eed1dc288464f003228c4b73d6a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp.orig	2016-05-01 15:22:46.103607522 +0800
+++ third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp	2016-05-01 15:25:14.459753876 +0800
@@ -234,7 +234,7 @@
 #endif
             png_uint_32 profileLength = 0;
             if (png_get_iCCP(png, info, &profileName, &compressionType, &profile, &profileLength)) {
-                setColorProfileAndTransform(profile, profileLength, imageHasAlpha, false /* useSRGB */);
+                setColorProfileAndTransform((const char*)profile, profileLength, imageHasAlpha, false /* useSRGB */);
             }
         }
 #endif // PNG_iCCP_SUPPORTED