[libpng16] Imported from libpng-1.6.33beta01.tar

This commit is contained in:
Glenn Randers-Pehrson
2017-08-28 17:52:01 -05:00
parent d2b9af04ac
commit 50d2d49220
3 changed files with 1 additions and 7 deletions

View File

@@ -392,7 +392,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
return FALSE;
}
if ((png_pixels = (png_byte *)
malloc (row_bytes * height * sizeof (png_byte))) == NULL)
malloc ((size_t)row_bytes * (size_t)height * sizeof (png_byte))) == NULL)
return FALSE;
/* read data from PNM file */