[libpng10] Imported from libpng-1.0.17.tar

This commit is contained in:
Glenn Randers-Pehrson
2004-09-11 21:17:42 -05:00
parent f47b4b1bf7
commit df8fc6680e
60 changed files with 768 additions and 585 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;