FAILURE MAP
← Case archive

FA-79168 / Image orientation metadata / Member archive

SOI is accepted anywhere in the segment list · case 03

Streams whose first segment is not SOI are scanned as JPEG.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input: JPEG segments as [marker, payload] with the payload as a latin-1 string. The stream must start with SOI (0xD8) or the result is "not-jpeg". Scan segments after SOI until SOS (0xDA) or EOI (0xD9); a payload longer than 65533 bytes cannot be encoded in the 16-bit length and yields "corrupt". Return the index of the first APP1 (0xE1) segment whose payload starts with "Exif\0\0", or None.

Why this case matters

Camera, phone and scanner images carry an orientation hint separately from the stored pixels; galleries, thumbnailers, editors and upload pipelines must interpret it consistently or photos appear sideways, mirrored or doubly rotated.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: SOI presence check 0null"not-jpeg"Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗