From 3b711ccc4f296d6b46d593ced0269eb20c8d98e0 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sun, 22 Nov 2015 22:58:10 -0600 Subject: [PATCH] [libpng14] Revert 12 -> 12U change in pngrutil.c --- pngrutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngrutil.c b/pngrutil.c index 60ac03e30..edf11b90d 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -1772,7 +1772,7 @@ png_handle_pCAL(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) /* We need to have at least 12 bytes after the purpose string in order to get the parameter information. */ - if (slength < 12U || endptr - buf <= 12U) + if (slength < 12U || endptr - buf <= 12) { png_warning(png_ptr, "Invalid pCAL data"); png_free(png_ptr, png_ptr->chunkdata);