summaryrefslogtreecommitdiff
path: root/pngread.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-10-05 19:34:09 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-10-05 19:43:35 -0500
commit13bdd8bcdf2cec388c734271252ef1dade52ff57 (patch)
tree288e89edfc2dcc2615fbb47a8cd374ba653098d0 /pngread.c
parent7d7694ae6a57cbe3e90c117b13663a6597fb44ea (diff)
downloadlibpng-13bdd8bcdf2cec388c734271252ef1dade52ff57.tar.gz
[libpng16] Imported from libpng-1.6.26beta05.tarv1.6.26beta05
Diffstat (limited to 'pngread.c')
-rw-r--r--pngread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pngread.c b/pngread.c
index 4e79d31a2..debfed408 100644
--- a/pngread.c
+++ b/pngread.c
@@ -4094,7 +4094,7 @@ png_image_finish_read(png_imagep image, png_const_colorp background,
* bits; this is just to verify that the 'row_stride' argument can be
* represented.
*/
- if (image->width <= 0x7FFFFFFFU/channels) /* no overflow */
+ if (image->width <= 0x7fffffffU/channels) /* no overflow */
{
png_uint_32 check;
const png_uint_32 png_row_stride = image->width * channels;
@@ -4131,7 +4131,7 @@ png_image_finish_read(png_imagep image, png_const_colorp background,
* accomodated on 64-bit systems.
*/
if (image->height <=
- 0xFFFFFFFFU/PNG_IMAGE_PIXEL_COMPONENT_SIZE(image->format)/check)
+ 0xffffffffU/PNG_IMAGE_PIXEL_COMPONENT_SIZE(image->format)/check)
{
if ((image->format & PNG_FORMAT_FLAG_COLORMAP) == 0 ||
(image->colormap_entries > 0 && colormap != NULL))