[libpng16] Imported from libpng-1.6.30beta02.tar

This commit is contained in:
Glenn Randers-Pehrson
2017-04-22 15:30:52 -05:00
parent 60d8ae1003
commit 2eff8ef504
13 changed files with 25 additions and 17 deletions

View File

@@ -2537,6 +2537,9 @@ png_handle_zTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
if ((png_ptr->mode & PNG_HAVE_IDAT) != 0)
png_ptr->mode |= PNG_AFTER_IDAT;
/* Note, "length" is sufficient here; we won't be adding
* a null terminator later.
*/
buffer = png_read_buffer(png_ptr, length, 2/*silent*/);
if (buffer == NULL)