diff --git a/ANNOUNCE b/ANNOUNCE index a501b8ca1..62446f618 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,5 +1,5 @@ -Libpng 1.7.0beta14 - May 13, 2013 +Libpng 1.7.0beta14 - June 4, 2013 This is not intended to be a public release. It will be replaced within a few weeks by a public version or by another test version. @@ -304,7 +304,8 @@ Version 1.7.0beta13 [May 12, 2013] Added information in the documentation about problems with and fixes for the bad CRC and bad iTXt chunk situations. -Version 1.7.0beta14 [May 13, 2013] +Version 1.7.0beta14 [June 4, 2013] + Removed a redundant test in png_set_IHDR(). Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index dfbbf42d4..a00ada463 100644 --- a/CHANGES +++ b/CHANGES @@ -4592,7 +4592,8 @@ Version 1.7.0beta13 [May 12, 2013] Added information in the documentation about problems with and fixes for the bad CRC and bad iTXt chunk situations. -Version 1.7.0beta14 [May 13, 2013] +Version 1.7.0beta14 [June 4, 2013] + Removed a redundant test in png_set_IHDR(). Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pngset.c b/pngset.c index c49541214..368e4a602 100644 --- a/pngset.c +++ b/pngset.c @@ -238,16 +238,7 @@ png_set_IHDR(png_const_structrp png_ptr, png_inforp info_ptr, info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth); - /* Check for potential overflow */ - if (width > - (PNG_UINT_32_MAX >> 3) /* 8-byte RRGGBBAA pixels */ - - 48 /* bigrowbuf hack */ - - 1 /* filter byte */ - - 7*8 /* rounding of width to multiple of 8 pixels */ - - 8) /* extra max_pixel_depth pad */ - info_ptr->rowbytes = 0; - else - info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, width); + info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, width); } #ifdef PNG_oFFs_SUPPORTED