* [gentoo-commits] gentoo-x86 commit in media-libs/libpng/files: libpng-1.5.4-CVE-2011-3328.patch
@ 2011-09-23 18:25 Kacper Kowalik (xarthisius)
0 siblings, 0 replies; only message in thread
From: Kacper Kowalik (xarthisius) @ 2011-09-23 18:25 UTC (permalink / raw
To: gentoo-commits
xarthisius 11/09/23 18:25:09
Added: libpng-1.5.4-CVE-2011-3328.patch
Log:
Revbump for CVE-2011-3328, till proper apng patch is rolled out
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
Revision Changes Path
1.1 media-libs/libpng/files/libpng-1.5.4-CVE-2011-3328.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpng/files/libpng-1.5.4-CVE-2011-3328.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libpng/files/libpng-1.5.4-CVE-2011-3328.patch?rev=1.1&content-type=text/plain
Index: libpng-1.5.4-CVE-2011-3328.patch
===================================================================
--- pngrutil.c.orig 2011-09-23 20:20:43.974170436 +0200
+++ pngrutil.c 2011-09-23 20:21:41.308119496 +0200
@@ -1037,12 +1037,14 @@
*/
png_uint_32 w = y_red + y_green + y_blue;
- png_ptr->rgb_to_gray_red_coeff = (png_uint_16)(((png_uint_32)y_red *
- 32768)/w);
- png_ptr->rgb_to_gray_green_coeff = (png_uint_16)(((png_uint_32)y_green
- * 32768)/w);
- png_ptr->rgb_to_gray_blue_coeff = (png_uint_16)(((png_uint_32)y_blue *
- 32768)/w);
+ if (w != 0) {
+ png_ptr->rgb_to_gray_red_coeff = (png_uint_16)(((png_uint_32)y_red *
+ 32768)/w);
+ png_ptr->rgb_to_gray_green_coeff = (png_uint_16)(((png_uint_32)y_green
+ * 32768)/w);
+ png_ptr->rgb_to_gray_blue_coeff = (png_uint_16)(((png_uint_32)y_blue *
+ 32768)/w);
+ }
}
}
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-23 18:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-23 18:25 [gentoo-commits] gentoo-x86 commit in media-libs/libpng/files: libpng-1.5.4-CVE-2011-3328.patch Kacper Kowalik (xarthisius)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox