Repository navigation
serialize 2.1.5: tighten UTF-8 decode bounds checks and fix MSVC 19.52 /O2 emulated uint128 multiply
Format 2.0. No byte a writer emits changed, and STANDARD.md and conformance/ are unchanged since 2.1.4.
serialize_uint128_t::operator*(serialize.h): Computeresult.lo = lo * other.lodirectly instead of reassemblingproduct_ll + (product_lh << 32) + (product_hl << 32), which Visual Studio 18 2026 (MSVC 19.52.37029.0 /O2) miscompiled by droppingproduct_lh << 32when one factor is a power of two and the other spans both 32-bit halves (pinned intest_uint128_emulation).serialize_utf.h(#181):serialize_utf8_decodereturns0immediately on a null input pointer or non-positiveinput_byteswithout dereferencinginput[0], andserialize_utf16_to_utf8,serialize_utf32_to_utf8,serialize_utf8_to_utf16, andserialize_utf8_to_utf32refuse a null input pointer when the input length is positive, NUL-terminating output throughserialize_utf_refuse.COMPATIBILITY&IMPLEMENTING.md: Recordsserialize.catv2.1.2and clarifies that the destination width rule (U16) and its bit-field exception apply to C++.
Full diff: v2.1.4...v2.1.5