From f7677a348e6655bff8d9609253fae8abd26eab45 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Wed, 21 Mar 2012 23:52:41 -0500 Subject: [PATCH] [libpng16] Use uLong 64 bits for crc32 return in profile check --- pngrutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngrutil.c b/pngrutil.c index 4d87d2a03..cb5df4c7c 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -1501,7 +1501,7 @@ png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length) { if (profile_length == check_len[icheck]) { - png_uint_32 profile_crc = crc32(0, + uLong profile_crc = crc32(0, profile, profile_length); if (profile_crc ==