From caa716d8592363d913ddccc8bebf64375cd8a4b8 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Sun, 22 Nov 2015 19:52:12 -0800 Subject: [PATCH] Fix build break introduced from libpng17 12->12U in a compare when the other side is signed. Signed-off-by: John Bowler --- pngrutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngrutil.c b/pngrutil.c index 85b6d73df..0d3c549ca 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -1948,7 +1948,7 @@ png_handle_pCAL(png_structrp png_ptr, png_inforp info_ptr) /* We need to have at least 12 bytes after the purpose string * in order to get the parameter information. */ - if (endptr - buf <= 12U) + if (endptr - buf <= 12) { png_chunk_benign_error(png_ptr, "invalid"); return;