Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing fails with non-standard APP0 #9

Open
wyozi opened this issue May 28, 2024 · 0 comments
Open

Parsing fails with non-standard APP0 #9

wyozi opened this issue May 28, 2024 · 0 comments

Comments

@wyozi
Copy link

wyozi commented May 28, 2024

Some JPEGs have a non-standard APP0 segment. It is non-standard but it breaks parsing because jay-peg assumes fixed size APP0.

I can't give the original image but here's the hex for the broken segment: (includes APP0 marker, two-byte size, and the whole marker data)

0xFF,0xE0,0x00,0x14,0x4A,0x46,0x49,0x46,0x00,0x01,0x01,0x01,0x01,0x2C,0x01,0x2C,0x00,0x00,0x41,0x4D,0x50,0x46

The last four bytes spell out AMPF in ascii, which according to a random googling is somehow related to some Apple extension. See also https://github.com/exiftool/exiftool/blob/master/lib/Image/ExifTool.pm#L2226

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

No branches or pull requests

1 participant