Skip to content

Releases: NLnetLabs/bcder

0.7.4

10 Jan 13:07
c813b84
Compare
Choose a tag to compare

Other changes

0.7.3

13 Sep 09:29
6a7250a
Compare
Choose a tag to compare

This release fixes a number of decoding issues that can lead to panics on invalid input data. They have been assigned CVE-2023-39914.

Bug fixes

  • Fixes various decoding that lead to a panic on invalid data.
    Specifically:
    • error out rather than panic when a nested value has a greater length than allowed by the outer value,
    • check that there is enough data available before skipping over a primitive value’s content,
    • check that enough data is available before trying to parse a tag value,
    • check for correct encoding of bit strings: don’t allow the number of unused bits to be greater than 7 and that they are zero for an empty bit string,
    • check for correct encoding of object identifiers: they cannot be empty and the last byte must have bit 7 cleared.

0.7.2

01 Jun 12:00
fb567de
Compare
Choose a tag to compare

New

  • Added an implementation of FromStr for Oid. (#71 by @Outurnate)

0.7.1

09 Dec 10:47
488cad5
Compare
Choose a tag to compare

New

  • Added a number of missing well-defined tags as Tag constants, specifically: CHARACTER STRING, TIME, DATA, TIME_OF_DAY, DATE_TIME, DURATION, OID-IRI, and RELATIVE-OID-IRI. (#67 by @lvkv)

Bug fixes

  • Fix Tag::BMP_STRING to UNIVERSAL 30. (#67 by @lvkv)

0.7.0

18 Jul 15:14
757af3a
Compare
Choose a tag to compare

Breaking Changes

  • Redesign error handling in decode module (#65):
    • three error types, Source::Error, ContentError, and DecodeError, for data fetching errors, syntax errors, and a combination of these,
      respectively;
    • new trait IntoSource to convert a type into its Source implementation;
    • Source::advance now panics if advancing past the end of seen data.

0.6.1

29 Oct 14:46
6261dcd
Compare
Choose a tag to compare

New

  • int::Unsigned can now be created from an arbitrary length big-endian representation of an unsigned integer. (#59)
  • Add OctetString::take_opt_from. (#61)

0.6.0

04 Jan 11:49
6df89c6
Compare
Choose a tag to compare

Breaking Changes

  • Minimum supported Rust version is now 1.42. (#56)
  • Upgrade bytes to 1.0. (#57)

0.5.1

04 Jan 10:56
d75b7d8
Compare
Choose a tag to compare

Bug Fixes

  • Fix oid::Iter to actually iterate over the components. (#50)

0.5.0

05 Mar 13:25
fb3f95f
Compare
Choose a tag to compare

Breaking

  • Move extending a Captured to an explicit CapturedBuilder. This becomes necessary with bytes 0.5. Both these types now reside in the module captured with Captured re-exported at crate level. (#46, #47)

Dependencies

0.4.2

11 Feb 08:13
ba9d9a9
Compare
Choose a tag to compare

Bug Fixes