[libpng16] Removed new redundant check for libpng < 12 in pngrutil.c

This commit is contained in:
Glenn Randers-Pehrson
2015-11-17 16:23:51 -06:00
parent 162f9f87f9
commit 001513c9ca
3 changed files with 4 additions and 4 deletions

View File

@@ -2174,7 +2174,7 @@ png_handle_pCAL(png_structrp png_ptr, png_inforp 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 (length < 12 || endptr - buf <= 12)
if (endptr - buf <= 12)
{
png_chunk_benign_error(png_ptr, "invalid");
return;