Fwd: libpng - (merge request) Bigger default chunk size limit, allow benign errors by default

Glenn Randers-Pehrson <[email protected]> Thu, 8 Feb 2018 10:38:25 -0500
Newsgroups gmane.comp.graphics.png.devel
Message-ID <CA+PdXctkBcEdA+AEdQfiPXeQ82+T+mJTbSfLDArA4GwJdERcMw@mail.gmail.com>
---------- Forwarded message ----------
From: zcw <[email protected]>
Date: Wed, Feb 7, 2018 at 10:29 PM
Subject: libpng - (merge request) Bigger default chunk size limit,
allow benign errors by default
To: [email protected]


Hi,
I met some problem when use pngquant to process PNGs which Photoshop exported
And I got message :  "error: iTXt: chunk data is too large (libpng failed)"

So I found libpng has a default limit for every chunk at 8MB, but the
PNG files Photoshop exported always has a iTXt chuck which is larger
than 40MB
I made my own build which removes USER_CHUNK_MALLOC_MAX limit, and it
works well.

So I think 8MB is not up to date now, I modified it to 800MB
And ALLOW_BENIGN_ERRORS to default on, as I thought "it's benign,
should not halt the process"

the commit is here:
https://sourceforge.net/u/zhangciwu/libpng/ci/0589c3bee961d9a147a8872b97b0ebea4a2e9afd/

Seems I can't raise a merge request on sourceforge, so I just sending
this to you.

Thanks.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot