[libpng16] Avoid writing an empty IDAT when the last IDAT exactly fills the
compression buffer (bug report by Brian Baird). This bug was introduced in libpng-1.6.0.
This commit is contained in:
parent
11629b1c1a
commit
c548328904
7
ANNOUNCE
7
ANNOUNCE
@ -1,4 +1,4 @@
|
|||||||
Libpng 1.6.30beta04 - May 24, 2017
|
Libpng 1.6.30beta04 - June 6, 2017
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -45,7 +45,10 @@ Version 1.6.30beta03 [May 22, 2017]
|
|||||||
Test CMAKE_HOST_WIN32 instead of WIN32 in CMakeLists.txt.
|
Test CMAKE_HOST_WIN32 instead of WIN32 in CMakeLists.txt.
|
||||||
Fix some URL in documentation.
|
Fix some URL in documentation.
|
||||||
|
|
||||||
Version 1.6.30beta04 [May 24, 2017]
|
Version 1.6.30beta04 [June 6, 2017]
|
||||||
|
Avoid writing an empty IDAT when the last IDAT exactly fills the
|
||||||
|
compression buffer (bug report by Brian Baird). This bug was
|
||||||
|
introduced in libpng-1.6.0.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
5
CHANGES
5
CHANGES
@ -5840,7 +5840,10 @@ Version 1.6.30beta03 [May 22, 2017]
|
|||||||
Test CMAKE_HOST_WIN32 instead of WIN32 in CMakeLists.txt.
|
Test CMAKE_HOST_WIN32 instead of WIN32 in CMakeLists.txt.
|
||||||
Fix some URL in documentation.
|
Fix some URL in documentation.
|
||||||
|
|
||||||
Version 1.6.30beta04 [May 24, 2017]
|
Version 1.6.30beta04 [June 6, 2017]
|
||||||
|
Avoid writing an empty IDAT when the last IDAT exactly fills the
|
||||||
|
compression buffer (bug report by Brian Baird). This bug was
|
||||||
|
introduced in libpng-1.6.0.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
@ -1003,7 +1003,8 @@ png_compress_IDAT(png_structrp png_ptr, png_const_bytep input,
|
|||||||
optimize_cmf(data, png_image_size(png_ptr));
|
optimize_cmf(data, png_image_size(png_ptr));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
png_write_complete_chunk(png_ptr, png_IDAT, data, size);
|
if (size)
|
||||||
|
png_write_complete_chunk(png_ptr, png_IDAT, data, size);
|
||||||
png_ptr->mode |= PNG_HAVE_IDAT;
|
png_ptr->mode |= PNG_HAVE_IDAT;
|
||||||
|
|
||||||
png_ptr->zstream.next_out = data;
|
png_ptr->zstream.next_out = data;
|
||||||
@ -1049,7 +1050,8 @@ png_compress_IDAT(png_structrp png_ptr, png_const_bytep input,
|
|||||||
optimize_cmf(data, png_image_size(png_ptr));
|
optimize_cmf(data, png_image_size(png_ptr));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
png_write_complete_chunk(png_ptr, png_IDAT, data, size);
|
if (size)
|
||||||
|
png_write_complete_chunk(png_ptr, png_IDAT, data, size);
|
||||||
png_ptr->zstream.avail_out = 0;
|
png_ptr->zstream.avail_out = 0;
|
||||||
png_ptr->zstream.next_out = NULL;
|
png_ptr->zstream.next_out = NULL;
|
||||||
png_ptr->mode |= PNG_HAVE_IDAT | PNG_AFTER_IDAT;
|
png_ptr->mode |= PNG_HAVE_IDAT | PNG_AFTER_IDAT;
|
||||||
|
Loading…
Reference in New Issue
Block a user