summaryrefslogtreecommitdiff
path: root/png.c
diff options
context:
space:
mode:
authorCosmin Truta <ctruta@gmail.com>2022-11-20 00:56:35 +0200
committerCosmin Truta <ctruta@gmail.com>2022-11-20 00:56:35 +0200
commit33de006e127ffc330f12396bf6732682f804d115 (patch)
tree8aab0e0c6ec2f393c7316476c40920c4006eebe1 /png.c
parent9b5488054bc9fc750178e9b90ffea25e71d3348b (diff)
downloadlibpng-33de006e127ffc330f12396bf6732682f804d115.tar.gz
Turn large PNG chunks into benign errors
Import Chromium commit https://chromium.googlesource.com/chromium/src/+/e87a02987101e2dbe319a4aba6b52470f7624b4a Add the author to the list of libpng contributing authors. Portions from the original commit message follow: *** A recent change to libpng [1] (included in Chromium with the recent libpng update [2]) turns chunks that are bigger than PNG_USER_CHUNK_MALLOC_MAX into failures. Although this matches the intent of PNG_USER_CHUNK_MALLOC_MAX, it also causes images which used to be viewable in Chromium to fail. Changing to a benign error allows us to display these images once again. Though it means we do allow libpng to allocate more than PNG_USER_CHUNK_MALLOC_MAX, it matches the behavior prior to [2] (when we were using 1.6.22), and it does not regress crbug.com/117369 [1] https://github.com/glennrp/libpng/commit/347538efbdc21b8df684ebd92d37400b3ce85d55 [2] https://chromium.googlesource.com/chromium/src/+/f82653a473f8de5fc86d0f2ecc75f6237e61946b *** Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=827754 Co-authored-by: Leon Scroggins III <scroggo@google.com> Signed-off-by: Cosmin Truta <ctruta@gmail.com>
Diffstat (limited to 'png.c')
0 files changed, 0 insertions, 0 deletions