[libpng16] Removed unused chunk_name parameter from png_check_chunk_length().

This commit is contained in:
Glenn Randers-Pehrson
2017-08-05 15:08:40 -05:00
parent c33d624988
commit fcd1bb9312
5 changed files with 6 additions and 6 deletions

View File

@@ -182,7 +182,7 @@ png_read_chunk_header(png_structrp png_ptr)
png_check_chunk_name(png_ptr, png_ptr->chunk_name);
/* Check for too-large chunk length */
png_check_chunk_length(png_ptr, png_ptr->chunk_name, length);
png_check_chunk_length(png_ptr, length);
#ifdef PNG_IO_STATE_SUPPORTED
png_ptr->io_state = PNG_IO_READING | PNG_IO_CHUNK_DATA;
@@ -3105,8 +3105,7 @@ png_check_chunk_name(png_structrp png_ptr, png_uint_32 chunk_name)
}
void /* PRIVATE */
png_check_chunk_length(png_structrp png_ptr, png_uint_32 chunk_name,
png_uint_32 length)
png_check_chunk_length(png_structrp png_ptr, png_uint_32 length)
{
png_alloc_size_t limit = PNG_UINT_31_MAX;