Skip to content

serialize 2.1.2: reads refuse bad declarations

Choose a tag to compare

@rowan-claude rowan-claude released this 28 Oct 14:09
06a0e99

Format 2.0, unchanged on the wire. A patch release: the reference read path now keeps U7/U16 everywhere.

  • A bad declaration on a read refuses, never traps. A per-call serialize_compressed_float read with a bad declaration reached the asserts in serialize_compressed_float_params (debug) or read wrong data (release); it now refuses value_out_of_range.
  • read_bits with a bit count outside 1..64 now refuses like serialize_bits.
  • ReadStream::InitializePadded with a short destination refuses value_out_of_range without asserting (it was past_end).
  • Write and measure still trap on the same misuse (U9). Tests: asserts.cpp, test_uniform_rules.

STANDARD.md, IMPLEMENTING.md and the conformance corpus are unchanged from v2.1.1, so ports need not re-vendor. COMPATIBILITY pins stay at v2.1.1 (bd3d67e).