[libpng15] Only mark text chunks as written after successfully writing them.

This commit is contained in:
Glenn Randers-Pehrson
2014-11-06 07:56:34 -06:00
parent d0885f09af
commit 023ff22642
3 changed files with 16 additions and 14 deletions

View File

@@ -646,7 +646,7 @@ set_location(png_structp png_ptr, struct user_chunk_data *data, int what)
if ((data->location[0] & what) || (data->location[1] & what))
return 0; /* already have one of these */
/* Find where we are (the code below zeros info_ptr to indicate that the
/* Find where we are (the code below zeroes info_ptr to indicate that the
* chunks before the first IDAT have been read.)
*/
if (data->info_ptr == NULL) /* after IDAT */