Integrated: 8347911: Limit the length of inflated text chunks

Jayathirth D V jdv at openjdk.org
Fri Jan 17 04:05:38 UTC 2025


On Thu, 16 Jan 2025 11:52:14 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

> In PNG we have non-essential compressed text chunks zTXt and iTXt, which can consume considerable amount of memory when they contain large amount of compressed data.
> 
> We should restrict the amount of text data we want to decompress from these text chunks. This PR adds limit of 256k bytes of inflated data from each of zTXt/iTXt chunks.
> 
> There is no regression test because we need PNG file with large amount of compressed data to hit the limit.

This pull request has now been integrated.

Changeset: 398a5805
Author:    Jayathirth D V <jdv at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/398a580518b4e7961bdddf733e0a89ff25bc437a
Stats:     3 lines in 1 file changed: 1 ins; 0 del; 2 mod

8347911: Limit the length of inflated text chunks

Reviewed-by: azvegint, prr

-------------

PR: https://git.openjdk.org/jdk/pull/23148


More information about the client-libs-dev mailing list