python3-pillow: update to 12.2.0
authorAlexandru Ardelean <redacted>
Thu, 9 Apr 2026 05:27:43 +0000 (08:27 +0300)
committerAlexandru Ardelean <redacted>
Fri, 10 Apr 2026 11:01:09 +0000 (14:01 +0300)
commit98298ce7f862518b571e1919c69c37bb5d59e20d
treedbdd9dd89bbcd9063b71fda1723e8a7b4a2e82c0
parent653d85d22634cda058d0a628b9f271b5550f5fd6
python3-pillow: update to 12.2.0

Update package to 12.2.0.

Security fixes:
- Prevent FITS decompression bomb -- GZIP data from FITS images is now
  limited to prevent decompression bomb attacks
- Fix OOB write with invalid tile extents -- 12.1.1 PSD tile extent checks
  did not account for integer overflow
- Prevent PDF parsing trailer infinite loop -- cyclic trailer references
  in PDFs are now detected and stopped
- Fix integer overflow when processing fonts with excessively large
  per-glyph advances
- Fix heap buffer overflow with nested list coordinates -- nested lists
  passed to ImagePath.Path, polygon(), line() etc. are now validated to
  contain exactly two numeric coordinates

New features:
- ImageText.Text.wrap() -- new method to wrap text within a given
  width/height, with optional shrink/grow scaling
- FontFile.to_imagefont() -- FontFile instances can now be directly
  converted to ImageFont instances
- Support reading JPEG2000 images with CMYK palettes

Performance:
- Lazy plugin loading -- open is 2.3-15.6x faster, save is 2.2-9x faster
  for common formats

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/pillow/Makefile
git clone https://git.99rst.org/PROJECT