[libpng16] Moved chunk-length check into a png_check_chunk_length() private

function (Suggested by Max Stepin).
This commit is contained in:
Glenn Randers-Pehrson
2017-08-04 14:09:27 -05:00
parent 469317d9bd
commit 2dca15686f
5 changed files with 51 additions and 66 deletions

View File

@@ -1530,6 +1530,9 @@ PNG_INTERNAL_FUNCTION(void,png_handle_zTXt,(png_structrp png_ptr,
PNG_INTERNAL_FUNCTION(void,png_check_chunk_name,(png_structrp png_ptr,
png_uint_32 chunk_name),PNG_EMPTY);
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_INTERNAL_FUNCTION(void,png_handle_unknown,(png_structrp png_ptr,
png_inforp info_ptr, png_uint_32 length, int keep),PNG_EMPTY);
/* This is the function that gets called for unknown chunks. The 'keep'