chunk. If there isn't a problem with the chunk itself (ie bad
chunk name, CRC, or a critical chunk), the chunk is silently ignored
@@ -3318,8 +3318,10 @@
+ if(row_bytes + 64 > png_ptr->old_big_row_buf_size)
{
- if (png_ptr->big_row_buf)
- png_free(png_ptr,png_ptr->big_row_buf);
+ png_free(png_ptr,png_ptr->big_row_buf);
- png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes+64);
- png_ptr->row_buf = png_ptr->big_row_buf+32;
+ if (png_ptr->big_row_buf == NULL)