Re: Off-by-one bug in libpng16 writes extra zero-length IDAT chunk

Glenn Randers-Pehrson <[email protected]>
Newsgroups gmane.comp.graphics.png.devel
Message-ID <CA+PdXcttOKMFDd-F8sUyb=-2Y8g2d7Ji1FuQ-pqrk4hRuTHWeQ@mail.gmail.com>
Confirmed that libpng-1.6.0 exhibits the bug.  I'm using "pngtest"
that comes with libpng; I add the following:

    // set compression flags here.
       png_set_compression_buffer_size(write_ptr,
           (png_size_t)8119);

where the value "8119" is the exact length of the IDAT chunks
in pngout.png after running pngtest.  The result is, as expected,
one IDAT with length 8119 followed by an IDAT of length 0.

Glenn

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.