Imported from libpng-1.2.7beta2.tar

This commit is contained in:
Glenn Randers-Pehrson
2004-08-28 23:30:07 -05:00
parent a4981d4ded
commit 67864af957
56 changed files with 356 additions and 251 deletions

View File

@@ -742,6 +742,9 @@ void write_png(char *file_name /* , ... other image information ... */)
png_byte image[height][width*bytes_per_pixel];
png_bytep row_pointers[height];
if (height > PNG_UINT_32_MAX/png_sizeof(png_bytep))
png_error (png_ptr, "Image is too tall to process in memory");
for (k = 0; k < height; k++)
row_pointers[k] = image + k*width*bytes_per_pixel;