Commit Graph
6 Commits
Author SHA1 Message Date
Diego Chagas 401bf426a6 jxl: charge failed brob inflations, refuse large windows, walk boxes without a span list (#2275)
Follow-up to the brob budget:
- an over-cap or broken stream now charges the bytes it produced to the shared budget, so
  a file of many such streams cannot inflate the whole budget once per box;
- a Brotli header that declares a large window is refused before decoding (the decoder reserves
  its ring buffer up front, outside the output cap);
- boxes are walked one at a time instead of collected into a Vec of spans before the brob check.
image-codecs: document that JPEG XL ignores keep_orientation.
2026-11-19 00:11:50 -05:00
Diego Chagas f57bbca24f jxl: bound brob metadata boxes before jxl-oxide inflates them (#2134)
jxl-oxide decompresses brob (Brotli Exif/XMP) boxes into a buffer its AllocTracker
does not count, so a 54-byte box expanded to 64 MiB of XMP and a larger one can ask for
gigabytes before any pixel limit applies. decode now inflates every brob box under one
8 MiB budget per file, rewrites it as the plain box it wraps and drops boxes past the
budget, nested or broken ones. Files without a brob box are not copied.
2026-11-18 15:25:26 -05:00
Dylan M. Taylor d61671b6de Preserve JPEG XL metadata and associated alpha 2026-11-13 23:47:44 +00:00
Dylan M. Taylor ade25d64eb Expose structured JPEG XL pixel limits 2026-11-13 23:13:26 +00:00
Dylan M. Taylor 8fcb191515 Preserve JPEG XL color rendering options 2026-11-13 23:06:05 +00:00
Dylan M. Taylor 4d3e920954 Add shared JPEG XL decoder and encoder 2026-11-13 22:47:47 +00:00