[libpng10] Imported from libpng-1.0.21rc1.tar

This commit is contained in:
Glenn Randers-Pehrson
2006-11-07 20:08:18 -06:00
parent fba872492b
commit 6fbb54d253
48 changed files with 195 additions and 1147 deletions

View File

@@ -3104,7 +3104,7 @@ defined(PNG_USER_TRANSFORM_PTR_SUPPORTED)
if ((png_uint_32)png_ptr->rowbytes + 1 > (png_uint_32)65536L)
png_error(png_ptr, "This image requires a row greater than 64KB");
#endif
if ((png_uint_32)png_ptr->rowbytes > PNG_SIZE_MAX - 1)
if ((png_uint_32)png_ptr->rowbytes > (png_uint_32)(PNG_SIZE_MAX - 1))
png_error(png_ptr, "Row has too many bytes to allocate in memory.");
png_ptr->prev_row = (png_bytep)png_malloc(png_ptr, (png_uint_32)(
png_ptr->rowbytes + 1));