3 Commits
Author SHA1 Message Date
Dongju Lee d9fc577ab0 fix(ffmpeg): align swscale output buffers (#5301)
This aligns FFmpeg/libswscale destination image buffers and validates
the buffer-size, frame-fill, and swscale return paths before decoded
pixels are consumed.

The change prevents narrow high-bit-depth VP9/GBR inputs from writing
past OIIO's destination buffer during swscale conversion, and adds a
regression case for the width-1 high-bit-depth FFmpeg path.

Signed-off-by: Dongju Lee <dongpago2@gmail.com>
2026-07-06 18:14:58 -07:00
Dongju Lee 4e4a1df806 fix(gif): guard canvas index overflow (#5299)
This handles malformed GIF files whose logical canvas dimensions can
overflow legacy int-indexed canvas calculations.

The patch rejects oversized canvas dimensions before scanline/canvas
indexing and adds a regression test for the malformed oversized-canvas
case.

Signed-off-by: Dongju Lee <dongpago2@gmail.com>
2026-07-06 17:45:40 -07:00
Dongju LeeandLarry Gritz 21a293a319 fix(imageio): ignore invalid RowsPerStrip chunking (#5300)
This treats non-positive tiff:RowsPerStrip metadata as absent before
using it to align generic scanline read/write chunks. That avoids
feeding invalid chunking metadata into round_to_multiple while
preserving normal positive RowsPerStrip behavior.

The patch adds regression coverage for an OpenEXR file carrying
RowsPerStrip=0 through iinfo --hash, iinfo --stats, and an oiiotool
conversion path.

---------

Signed-off-by: Dongju Lee <dongpago2@gmail.com>
Signed-off-by: Larry Gritz <lg@larrygritz.com>
Co-authored-by: Larry Gritz <lg@larrygritz.com>
2026-07-06 17:28:48 -07:00