Skip to content

Limit Fujifilm MakerNote tag data to the MakerNote size - #10585

Merged
radarhere merged 2 commits into
mainfrom
fuji-makernote-tag-data
Nov 23, 2026
Merged

radarhere merged 2 commits into
mainfrom
fuji-makernote-tag-data

Conversation

@aclark4life

Copy link
Copy Markdown
Member

When reading a Fujifilm MakerNote, Exif.get_ifd() read each tag's out-of-line value separately, without a limit on the total size. Several tags could point at the same range of the MakerNote, so the decoded values could be many times larger than the MakerNote itself.

This applies the same rule that ImageFileDirectory_v2.load() already uses for regular IFDs: once the total size of the values is larger than the MakerNote, the remaining tags are skipped with a warning.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aclark4life aclark4life added the 🤖-assisted AI-assisted label Nov 22, 2026
@radarhere
radarhere force-pushed the fuji-makernote-tag-data branch from 79610dd to c697fb0 Compare November 23, 2026 09:37
@radarhere
radarhere force-pushed the fuji-makernote-tag-data branch from c697fb0 to 750aa81 Compare November 23, 2026 09:40
@radarhere
radarhere enabled auto-merge (squash) November 23, 2026 09:41
@radarhere
radarhere merged commit 964e927 into main Nov 23, 2026
107 of 136 checks passed
@radarhere
radarhere deleted the fuji-makernote-tag-data branch November 23, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-assisted AI-assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants