File libpng16-CVE-2014-9495.patch of Package libpng16.4425

http://sourceforge.net/p/libpng/code/ci/6d8c88177af0bd8732489f11e7c63cf861e30321/
Index: png.c
===================================================================
--- png.c.orig	2013-09-16 17:33:45.000000000 +0200
+++ png.c	2015-01-13 18:38:08.160021035 +0100
@@ -2415,7 +2415,10 @@
                  - 1        /* filter byte */
                  - 7*8      /* rounding of width to multiple of 8 pixels */
                  - 8)       /* extra max_pixel_depth pad */
+   {
       png_warning(png_ptr, "Width is too large for libpng to process pixels");
+      error = 1;
+   }
 
    /* Check other values */
    if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 &&
openSUSE Build Service is sponsored by