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.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| overflow fifth group rejected | 5368709119 | null | 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 ↗