Skip to content

v2.5.1

Choose a tag to compare

@github-actions github-actions released this 07 Aug 22:19
· 12 commits to main since this release

v2.5.1

Decoders now reject a declared section count ([N]) that does not match the actual number of items, in both directions, per SPEC Section 13 (Count Validation). A declared count smaller than the items present was previously treated as a read limit and the surplus was dropped; it is now an error. This applies to the generic tabular, keyed-map, and root-array forms, the delta and full-set decoders, and the graph edge section.

Valid payloads are unaffected and encoding is unchanged: encoders always emit accurate counts, so this only changes how malformed or externally produced input is handled, rejecting it rather than silently truncating. New shared conformance fixtures pin the behavior in both directions.