Skip to content

v0.4.1

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Dec 04:16
· 1 commit to main since this release

Patch Changes

  • Improve TLV safety and align SET OF behavior between builder and parser.
    • Tighten BIT STRING validation: reject encodings where unusedBits is outside 0..7, or where unused bits in the last byte are not zero.
    • Make long-form length parsing use safe arithmetic and throw on overflow instead of wrapping, so absurd lengths are rejected instead of producing empty values.
    • Treat empty SET OF as a valid empty array on the parser side, matching the builder which already encodes empty arrays as empty SETs (3100).