[libpng16] Removed unused chunk_name parameter from png_check_chunk_length().
This commit is contained in:
parent
c33d624988
commit
fcd1bb9312
1
ANNOUNCE
1
ANNOUNCE
@ -84,6 +84,7 @@ Version 1.6.32beta11 [August 5, 2017]
|
|||||||
Added "eXIf" to "chunks_to_ignore[]" in png_set_keep_unknown_chunks().
|
Added "eXIf" to "chunks_to_ignore[]" in png_set_keep_unknown_chunks().
|
||||||
Added huge_IDAT.png and empty_ancillary_chunks.png to testpngs/crashers.
|
Added huge_IDAT.png and empty_ancillary_chunks.png to testpngs/crashers.
|
||||||
Make pngtest --strict, --relax, --xfail options imply -m (multiple).
|
Make pngtest --strict, --relax, --xfail options imply -m (multiple).
|
||||||
|
Removed unused chunk_name parameter from png_check_chunk_length().
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
1
CHANGES
1
CHANGES
@ -5967,6 +5967,7 @@ Version 1.6.32beta11 [August 5, 2017]
|
|||||||
Added "eXIf" to "chunks_to_ignore[]" in png_set_keep_unknown_chunks().
|
Added "eXIf" to "chunks_to_ignore[]" in png_set_keep_unknown_chunks().
|
||||||
Added huge_IDAT.png and empty_ancillary_chunks.png to testpngs/crashers.
|
Added huge_IDAT.png and empty_ancillary_chunks.png to testpngs/crashers.
|
||||||
Make pngtest --strict, --relax, --xfail options imply -m (multiple).
|
Make pngtest --strict, --relax, --xfail options imply -m (multiple).
|
||||||
|
Removed unused chunk_name parameter from png_check_chunk_length().
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
@ -190,8 +190,7 @@ png_push_read_chunk(png_structrp png_ptr, png_inforp info_ptr)
|
|||||||
png_crc_read(png_ptr, chunk_tag, 4);
|
png_crc_read(png_ptr, chunk_tag, 4);
|
||||||
png_ptr->chunk_name = PNG_CHUNK_FROM_STRING(chunk_tag);
|
png_ptr->chunk_name = PNG_CHUNK_FROM_STRING(chunk_tag);
|
||||||
png_check_chunk_name(png_ptr, png_ptr->chunk_name);
|
png_check_chunk_name(png_ptr, png_ptr->chunk_name);
|
||||||
png_check_chunk_length(png_ptr, png_ptr->chunk_name,
|
png_check_chunk_length(png_ptr, png_ptr->push_length);
|
||||||
png_ptr->push_length);
|
|
||||||
png_ptr->mode |= PNG_HAVE_CHUNK_HEADER;
|
png_ptr->mode |= PNG_HAVE_CHUNK_HEADER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1531,7 +1531,7 @@ PNG_INTERNAL_FUNCTION(void,png_check_chunk_name,(png_structrp png_ptr,
|
|||||||
png_uint_32 chunk_name),PNG_EMPTY);
|
png_uint_32 chunk_name),PNG_EMPTY);
|
||||||
|
|
||||||
PNG_INTERNAL_FUNCTION(void,png_check_chunk_length,(png_structrp png_ptr,
|
PNG_INTERNAL_FUNCTION(void,png_check_chunk_length,(png_structrp png_ptr,
|
||||||
png_uint_32 chunk_name, png_uint_32 chunk_length),PNG_EMPTY);
|
png_uint_32 chunk_length),PNG_EMPTY);
|
||||||
|
|
||||||
PNG_INTERNAL_FUNCTION(void,png_handle_unknown,(png_structrp png_ptr,
|
PNG_INTERNAL_FUNCTION(void,png_handle_unknown,(png_structrp png_ptr,
|
||||||
png_inforp info_ptr, png_uint_32 length, int keep),PNG_EMPTY);
|
png_inforp info_ptr, png_uint_32 length, int keep),PNG_EMPTY);
|
||||||
|
@ -182,7 +182,7 @@ png_read_chunk_header(png_structrp png_ptr)
|
|||||||
png_check_chunk_name(png_ptr, png_ptr->chunk_name);
|
png_check_chunk_name(png_ptr, png_ptr->chunk_name);
|
||||||
|
|
||||||
/* Check for too-large chunk length */
|
/* 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
|
#ifdef PNG_IO_STATE_SUPPORTED
|
||||||
png_ptr->io_state = PNG_IO_READING | PNG_IO_CHUNK_DATA;
|
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 */
|
void /* PRIVATE */
|
||||||
png_check_chunk_length(png_structrp png_ptr, png_uint_32 chunk_name,
|
png_check_chunk_length(png_structrp png_ptr, png_uint_32 length)
|
||||||
png_uint_32 length)
|
|
||||||
{
|
{
|
||||||
png_alloc_size_t limit = PNG_UINT_31_MAX;
|
png_alloc_size_t limit = PNG_UINT_31_MAX;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user