mirror of
https://github.com/RPCS3/libpng.git
synced 2026-07-19 12:21:57 -04:00
Fix build break introduced from libpng17
12->12U in a compare when the other side is signed. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user