FAILURE MAP
← Case archive

FA-229 / Protocols / Member archive

A varint decoder accepts an ambiguous or overflowing frame · case 04

Trailing bytes, overlong encodings, and values larger than the specified integer width are accepted.

Member previewVariant 4 · 3 implementations · 9 checks per implementation

Case contract

Decode exactly one minimally encoded unsigned 32-bit LEB128 integer from bytes. Return None for an empty, unterminated, overlong, overflowing, or multi-value input; otherwise return the integer.

Why this case matters

Binary framing needs a single accepted representation and an exact consumption contract. Decoding a numeric prefix alone cannot establish that the whole frame was valid.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
overflow fifth group rejected5368709119nullFailed

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 ↗