FAILURE MAP
← Case archive

FA-79717 / Barcode symbology encoding / Member archive

Byte alignment adds a whole zero byte to aligned data · case 02

Aligned payloads gain a spurious 0x00 codeword before the pad bytes.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Finish a QR data bit stream for a symbol with `capacity` data codewords: data longer than capacity*8 bits returns None; append a terminator of up to four 0 bits (truncated if capacity is reached), pad with 0 bits to a byte boundary, split into codewords, then append pad codewords alternating 0xEC, 0x11 starting with 0xEC until the capacity is filled.

Why this case matters

Retail, logistics, pharmacy and document workflows depend on encoders that produce exactly the module pattern, code-set switches, separators and quiet zones scanners expect; one misplaced module or separator makes a label unreadable or, worse, scan as different data.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: byte boundary padding 0[94, 127, 235, 93, 80, 0][94, 127, 235, 93, 80, 236]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 ↗