RFR: 8347911: Limit the length of inflated text chunks
Jayathirth D V
jdv at openjdk.org
Thu Jan 16 11:57:12 UTC 2025
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.
-------------
Commit messages:
- 8347911: Limit the length of inflated text chunks
Changes: https://git.openjdk.org/jdk/pull/23148/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23148&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8347911
Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/23148.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23148/head:pull/23148
PR: https://git.openjdk.org/jdk/pull/23148
More information about the client-libs-dev
mailing list