image icon indicating copy to clipboard operation
image copied to clipboard

fix: avoid panic multi planar tif images

Open swarnimarun opened this issue 5 months ago • 0 comments

Motivation

Avoid panics for tif images with multi planar configuration.

todo

  • [x] Fail early on decode for tif images with multi planar support, otherwise it may produce a panic
  • [ ] Provide test cases.

I have just made a fix for usage by a company I work at, lmk if you folks would prefer it fixed in some other way.

It's a draft as it hasn't quite been extensively tested, yet. And might require more changes to target only cases which aren't quite supported correctly.

Lmk if you folks want any other changes.

Fixes https://github.com/image-rs/image/issues/2179

swarnimarun avatar Jun 17 '25 10:06 swarnimarun