components/desktop/libpng/patches/libpng10-libpng12-CVE-2014-9495-CVE-2015-0973.patch_2
equal
deleted
inserted
replaced
1 This patch will be removed when we EOL the two older versions of libpng |
|
2 |
|
3 --- libpng-1.0.59/pngset.c.orig 2015-05-21 19:18:14.033684319 +0530 |
|
4 +++ libpng-1.0.59/pngset.c 2015-05-21 19:20:23.208626616 +0530 |
|
5 @@ -263,7 +263,10 @@ png_set_IHDR(png_structp png_ptr, png_in |
|
6 - 1 /* filter byte */ |
|
7 - 7*8 /* rounding of width to multiple of 8 pixels */ |
|
8 - 8) /* extra max_pixel_depth pad */ |
|
9 + { |
|
10 info_ptr->rowbytes = (png_size_t)0; |
|
11 + png_error(png_ptr, "Image width is too large for this architecture"); |
|
12 + } |
|
13 else |
|
14 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, width); |
|
15 } |
|