Skip to content

v3.1.20.0

Choose a tag to compare

@lgritz lgritz released this 01 Dec 01:27
· 703 commits to main since this release
v3.1.20.0

Release 3.1.20.0 (Dec 1, 2026) -- compared to 3.1.19.0

  • ImageInput: Reading a deep image through the flat pixel API (read_scanline(s), read_tile(s), read_image) is now an error instead of overrunning the caller's buffer. ImageCache tile reads of deep files fail cleanly, and iconvert always converts deep inputs via the deep API. #5676 (by @lgritz / Larry Gritz)
  • ImageInput: read_native_scanlines() with an explicit subimage now seeks before reading, fixing wrong-stride reads and buffer overruns when positioned on a different subimage or MIP level (including concurrent reads). Affects OpenEXR and readers relying on the base implementation, such as DDS and ICO. #5657 (by @lgritz / Larry Gritz)
  • ImageOutput: check_open() resets an out-of-range alpha_channel or z_channel to -1, so writers never index past the real channels. #5606
  • IBA: max() clamped the channel range with std::max instead of std::min. #5646
  • IBA: demosaic() out-of-bounds index for images with a negative data window origin. #5680
  • IC: Color-managed tiles of files with more than max_tile_channels channels used the wrong channel count, giving wrong colors and writing past the tile. #5670
  • plugins: Make DSO plugin registration order deterministic when plugins are not embedded. #5720
  • bmp: Decode 32-bit BI_BITFIELDS (V4/V5 header) pixels using the channel masks, including alpha. #5650 (by @julianty / Alexander Julian Ty)
  • cineon: Harden reader against malformed files: fail on truncated pixel and user data reads, validate UserSize against the file length, bound header strings, reject mixed bit depths, fix 10-bit filled row size and end-of-line padding offsets, use 64-bit seek offsets. #5691 #5704
  • dpx: Harden reader: bound header strings, fix 10-bit filled row size and end-of-line padding for reads not starting at scanline 0, use 64-bit seek offsets. #5708
  • exif: Canon MakerNote decoding could take exponential time on crafted files. #5703
  • gif: Avoid int overflow of the writer's row offset for very large images. #5690
  • iff: Writer rejects images with other than 3 or 4 color channels or an out-of-range z_channel, which could overflow the heap in the 16-bit RLE encoder. #5605
  • jpeg: Closing a 2-channel output before all scanlines were written padded from an undersized buffer, leaking heap memory into the file. #5633
  • jpeg2000: Don't overread in sYCC conversion for images with fewer than 3 channels. #5634
  • openexr: Fix overflows in deep, partial-tile, and chroma-luminance reads. #5632
  • rla: Fixes for reading and writing files with mixed per-channel data types. #5612
  • tiff: read_native_tiles() overran the buffer for partial edge tiles. #5663
  • tiff: RGBA fallback over-read for files with more than 4 channels. #5694
  • tiff: Int overflow in parallel tile MinIsWhite inversion. #5702
  • build: Use pybind11 const_name, since _() is deprecated in pybind11 master. #5710
  • ci: Cache the dependencies that Windows CI builds from source #5624; ensure the right numpy for Mac CI #5641.