diff options
Diffstat (limited to 'third_party/libpng/pngread.c')
-rw-r--r-- | third_party/libpng/pngread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/libpng/pngread.c b/third_party/libpng/pngread.c index ace91ba..8e9c0cb 100644 --- a/third_party/libpng/pngread.c +++ b/third_party/libpng/pngread.c @@ -1434,11 +1434,11 @@ png_read_png(png_structp png_ptr, png_infop info_ptr, { info_ptr->row_pointers = (png_bytepp)png_malloc(png_ptr, info_ptr->height * png_sizeof(png_bytep)); + png_memset(info_ptr->row_pointers, 0, info_ptr->height + * png_sizeof(png_bytep)); #ifdef PNG_FREE_ME_SUPPORTED info_ptr->free_me |= PNG_FREE_ROWS; #endif - png_memset(info_ptr->row_pointers, 0, info_ptr->height - * png_sizeof(png_bytep)); for (row = 0; row < (int)info_ptr->height; row++) info_ptr->row_pointers[row] = (png_bytep)png_malloc(png_ptr, png_get_rowbytes(png_ptr, info_ptr)); |