From: | "Ingmar Vanhassel (ingmar)" <ingmar@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in kde-base/kdelibs/files: kdelibs-4.0.3-CVS-2008-1670.patch |
Date: | Mon, 28 Apr 2008 14:10:35 |
Message-Id: | E1JqU3s-0004og-6N@stork.gentoo.org |
1 | ingmar 08/04/28 14:10:32 |
2 | |
3 | Added: kdelibs-4.0.3-CVS-2008-1670.patch |
4 | Log: |
5 | Fix security bug 218848, CVS-2008-1670. |
6 | (Portage version: 2.1.5_rc6) |
7 | |
8 | Revision Changes Path |
9 | 1.1 kde-base/kdelibs/files/kdelibs-4.0.3-CVS-2008-1670.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.0.3-CVS-2008-1670.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/files/kdelibs-4.0.3-CVS-2008-1670.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: kdelibs-4.0.3-CVS-2008-1670.patch |
15 | =================================================================== |
16 | --- khtml/imload/decoders/pngloader.cpp |
17 | +++ khtml/imload/decoders/pngloader.cpp |
18 | @@ -109,6 +109,8 @@ private: |
19 | |
20 | if (colorType == PNG_COLOR_TYPE_RGB) |
21 | colorType = PNG_COLOR_TYPE_RGB_ALPHA; //Paranoia.. |
22 | + else if (colorType == PNG_COLOR_TYPE_GRAY) |
23 | + colorType = PNG_COLOR_TYPE_GRAY_ALPHA; |
24 | } |
25 | |
26 | ImageFormat imFrm; |
27 | @@ -192,6 +194,7 @@ private: |
28 | { |
29 | if (interlaced) |
30 | { |
31 | + Q_ASSERT(pngReadStruct->row_info.pixel_depth <= depth * 8); |
32 | requestScanline(rowNum, scanlineBuf); |
33 | png_progressive_combine_row(pngReadStruct, scanlineBuf, data); |
34 | notifyScanline(pass + 1, scanlineBuf); |
35 | |
36 | |
37 | |
38 | -- |
39 | gentoo-commits@l.g.o mailing list |