Skip to content

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Feb 9, 2026

Fixes #5023

This was crashing when writing TIFF information that was supposed to be arrays of more than one rational, but in fact was provided as a single value, it was reading past the end of a memory array.

I noticed that this whole region needs a cleanup, this is not the only problem. But a full overhaul seems too risky to backport, so my strategy is as follows:

  • THIS fix first, which I will backport right away to 3.0 and 3.1.

  • I will then submit a separate PR (already implemented and tested) that is a much more complete fix and overhaul of this portion of the code (and other places). That will get merged into main when approved.

  • After the second PR is merged, I'll hold it in main for a while to test its safety, and then decide if it seems ok to backport to 3.1 (but definitely not 3.0).

Fixes 5023

This was crashing when writing TIFF information that was supposed to
be arrays of more than one rational, it was reading past the end of
a memory array.

I noticed that this whole region needs a cleanup, this is not the only
problem. But a full overhaul is too risky to backport, so my strategy
is as follows:

* THIS fix first, which I will backport right away to 3.0 and 3.1.

* I will then submit a separate PR (already implemented and tested)
  that is a much more complete fix and overhaul of this portion of the
  code (and other places). That will get merged into main when
  approved.

* After the second PR is merged, I'll hold it in main for a while to
  test its safety, and then decide if it seems ok to backport to 3.1
  (but definitely not 3.0).

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: OpenImageIO crashes when generating TIFF with extra attributes.

1 participant