[libpng16] Added "/* SAFE */" comments in pngrutil.c and pngrtran.c

where warnings may be erroneously issued by code-checking applications.
Revised manual about changes in iTXt chunk handling made in libpng-1.6.0.
This commit is contained in:
Glenn Randers-Pehrson
2013-07-15 08:44:53 -05:00
parent 2b87a54d07
commit bc8e40d611
4 changed files with 22 additions and 10 deletions

View File

@@ -151,7 +151,7 @@ png_process_some_data(png_structrp png_ptr, png_inforp info_ptr)
void /* PRIVATE */
png_push_read_sig(png_structrp png_ptr, png_inforp info_ptr)
{
png_size_t num_checked = png_ptr->sig_bytes,
png_size_t num_checked = png_ptr->sig_bytes, /* SAFE, does not exceed 8 */
num_to_check = 8 - num_checked;
if (png_ptr->buffer_size < num_to_check)