Skip to content

Commit

Permalink
Skip reassigning of the initialization value
Browse files Browse the repository at this point in the history
  • Loading branch information
irwir committed Jan 19, 2024
1 parent 866fdf6 commit f51eeee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pngrutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -3171,9 +3171,7 @@ png_check_chunk_length(png_const_structrp png_ptr, png_uint_32 length)
* (png_ptr->bit_depth > 8? 2: 1)
+ 1
+ (png_ptr->interlaced? 6: 0);
if (png_ptr->height > PNG_UINT_32_MAX/row_factor)
idat_limit = PNG_UINT_31_MAX;
else
if (png_ptr->height < PNG_UINT_32_MAX/row_factor)
idat_limit = png_ptr->height * row_factor;
row_factor = row_factor > 32566? 32566 : row_factor;
idat_limit += 6 + 5*(idat_limit/row_factor+1); /* zlib+deflate overhead */
Expand Down

0 comments on commit f51eeee

Please sign in to comment.