Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9540 +/- ##
==========================================
+ Coverage 65.00% 65.08% +0.07%
==========================================
Files 117 117
Lines 21834 21834
Branches 10777 10778 +1
==========================================
+ Hits 14194 14211 +17
+ Misses 5377 5364 -13
+ Partials 2263 2259 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
wilx
force-pushed
the
fix-tiff-image-offsets
branch
2 times, most recently
from
November 4, 2026 23:15
f986d69 to
8629e5a
Compare
Image payloads were emitted through transform_reduce, which can evaluate SubIFDs out of order. Recorded offsets could then point at another image's payload after a metadata rewrite. Write child image data in directory order and add generated TIFF regressions covering metadata edits and fresh serialization. Discovered while investigating Exiv2#2913; independent of the Sony metadata fix.
wilx
force-pushed
the
fix-tiff-image-offsets
branch
from
November 22, 2026 15:24
8629e5a to
a5c74d7
Compare
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A metadata rewrite can leave TIFF/DNG image offsets pointing at the wrong payloads because
transform_reducecan emit SubIFD image data out of order. Replace it with an ordered loop so payloads follow the assigned offsets.Add generated regressions for strips/tiles, both byte orders, child-count boundaries, repeated edits, and fresh serialization.
Validated debug, release, no-XMP, ASan/UBSan, and Meson builds; full debug CTest passes 8/8 suites. All 688 image streams in the reproducing DNG retain their original bytes at the recorded offsets.
Found while investigating #2913; this fix is independent of #9539.
AI assistance: OpenAI Codex assisted with implementation, tests, and this description.