[libpng15] Ported recent "/*SAFE*/" comments from libpng-1.6.3

This commit is contained in:
Glenn Randers-Pehrson
2013-07-15 10:35:09 -05:00
parent 1feb6e2ef5
commit b3b9360373
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ png_process_some_data(png_structp png_ptr, png_infop info_ptr)
void /* PRIVATE */
png_push_read_sig(png_structp png_ptr, png_infop 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)