Skip to content

fix: decode APP0 segments using declared segment length#26

Closed
byrnehollander wants to merge 1 commit into
diegomura:mainfrom
byrnehollander:codex/decode-app0-segments
Closed

fix: decode APP0 segments using declared segment length#26
byrnehollander wants to merge 1 commit into
diegomura:mainfrom
byrnehollander:codex/decode-app0-segments

Conversation

@byrnehollander

@byrnehollander byrnehollander commented Jun 9, 2026

Copy link
Copy Markdown

Closed in favor of #27 - sorry for the noise!

APP0 was decoded as a fixed-size JFIF struct, leaving any remaining
segment bytes (thumbnails, JFXX payloads, trailing data such as Apple
MPF "AMPF") in the stream and desynchronizing the parser on the next
marker. Decode the payload as length-framed instead, matching how the
EXIF marker is handled, and re-enable ExifTool.jpg in the snapshot
suite.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@byrnehollander byrnehollander force-pushed the codex/decode-app0-segments branch from b6c03d7 to ca0f836 Compare June 9, 2026 20:59
@byrnehollander byrnehollander changed the title Decode APP0 segments using declared JPEG length fix: decode APP0 segments using declared segment length Jun 9, 2026
@byrnehollander byrnehollander deleted the codex/decode-app0-segments branch June 10, 2026 00:21
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.

1 participant