FAILURE MAP
← Case archive

FA-72225 / Error-correcting codes / Member archive

CRC correction never considers the CRC byte · case 05

Frames whose CRC byte took the hit are declared uncorrectable.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Frames of 2..15 bytes end with a CRC-8 (polynomial 0x07, initial value 0, MSB first, no final XOR) over the preceding bytes. A matching CRC is "clean"; otherwise try every single-bit flip across the whole frame, including the CRC byte, and accept the first that makes the CRC match ("corrected"). Otherwise "uncorrectable". Return [status, payload bytes or None].

Why this case matters

Sensor buses use short CRC-protected frames and correct single-bit upsets instead of retransmitting.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression [[98, 66, 50, 252, 121, 189, 178, 232]]["uncorrectable", null]["corrected", [98, 66, 50, 252, 121, 189, 178]]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 ↗