[devel] Require 48 bytes, not 64 bytes, for big_row_buf in overflow checks.

Also removed two obsolete comments from png.c
This commit is contained in:
Glenn Randers-Pehrson
2010-10-23 08:26:26 -05:00
parent 71c0dd6c4a
commit c508081afc
4 changed files with 11 additions and 13 deletions

View File

@@ -203,7 +203,7 @@ png_set_IHDR(png_structp png_ptr, png_infop info_ptr,
/* Check for potential overflow */
if (width > (PNG_UINT_32_MAX
>> 3) /* 8-byte RRGGBBAA pixels */
- 64 /* bigrowbuf hack */
- 48 /* bigrowbuf hack */
- 1 /* filter byte */
- 7*8 /* rounding of width to multiple of 8 pixels */
- 8) /* extra max_pixel_depth pad */