[libpng17] Removed a redundant new check in png_handle_pCAL().

This commit is contained in:
Glenn Randers-Pehrson
2015-11-17 16:14:35 -06:00
parent 801608f8f4
commit d3c0359b23
3 changed files with 6 additions and 6 deletions

View File

@@ -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 (png_ptr->chunk_length < 12 || endptr - buf <= 12)
if (endptr - buf <= 12)
{
png_chunk_benign_error(png_ptr, "invalid");
return;