RFR: 8347911: Limit the length of inflated text chunks

Phil Race prr at openjdk.org
Thu Jan 16 19:21:34 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.

Marked as reviewed by prr (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/23148#pullrequestreview-2557064797


More information about the client-libs-dev mailing list