Skip to content

Prepare 2.0.0-rc8 release - #20

Merged
xadaemon merged 3 commits into
trunkfrom
release-2.0.0-rc8
Nov 14, 2026
Merged

xadaemon merged 3 commits into
trunkfrom
release-2.0.0-rc8

Conversation

@xadaemon

Copy link
Copy Markdown
Member

The last release candidate of 2.0.0, in three commits.

Refuse what a codec does not write, in every runtime

  • BER and DER: data after the members of a SEQUENCE or a SET that is not additions after an extension marker, and data after what an explicit tag is around, is a DecodeError. lenient, which the BER codec now looks at too, leaves it out.
  • BER and DER: a value that ends after the contents it is in, and a tag number that is not in as few bytes as possible, are errors, lenient or not.
  • OER and PER: lengths, tag numbers, INTEGERs and unused bits that are not as the codec writes them, and a DATE, a TIME-OF-DAY or a DATE-TIME that is not one, are errors.
  • An OBJECT IDENTIFIER as text with a first arc above 2, or a second above 39 under 0 and 1, is an error.
  • Python: decode() raises a DecodeError and the loads a CompileError whatever is wrong with the data, JER holds a value to the kind of JSON of its type, and OER and PER have a budget of items. A SEQUENCE OF of DER with an element of another tag no longer decodes without an end, and OER no longer takes time with the square of the size of the data.
  • BER of indefinite length with an extension marker is decoded with additions that are not known, and with none.

CHANGELOG.md has all of it. tests/test_robust.py is new, and the vectors are recorded again (5,793).

Tell what the decoders refuse in the documentation

  • docs/file_formats.md: what a decoder of OER and of PER rejects, the limits of a decoder, the arcs of an OBJECT IDENTIFIER as text, dates and times that are not ones, and what a decoder of JER and of XER rejects.
  • docs/third_party_runtimes.md: the limit of items, strictness beyond DER, and one error for all of it.
  • docs/index.md: the errors of the runtime for Python, the JVM among the runtimes, ObjectDescriptor as a str.
  • READMEs: lenient in every runtime and in asnkitcc convert, strict decoding in the runtimes for Rust, the JVM and Python, and the number of vectors.

Prepare 2.0.0-rc8 release

Every package at 2.0.0-rc8, with the fixtures, the compiled examples, the corpus, the generated code and the lock files made again, and the section of CHANGELOG.md dated.

Checks

Run at rc8, all passing: uv run python -m unittest, uv run mypy, cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace, cargo test -p asnkitrt --no-default-features, npm run build && npm test in both WebAssembly packages, ./gradlew test and mkdocs build --strict.

A SEQUENCE or a SET of BER or of DER with data after its members is a
DecodeError, but for the additions after an extension marker, each all
of a tag, a length and its contents, and so is data after what an
explicit tag is around. lenient, which the BER codec now looks at too,
leaves out whatever is there. A value that ends after the contents it
is in, and a tag number that is not in as few bytes as possible, are
errors, lenient or not.

OER refuses a tag number, a length, an ENUMERATED, an INTEGER and the
unused bits of a BIT STRING that are not as X.696 writes them, PER an
INTEGER with no bounds of no bytes, and both a DATE, a TIME-OF-DAY or
a DATE-TIME that is not one. An OBJECT IDENTIFIER given as text with a
first arc above 2, or a second above 39 under 0 and 1, is an error.

In the runtime for Python, decode() raises a DecodeError and the loads
a CompileError whatever is wrong with the data, JER holds a value to
the kind of JSON of its type, and the decoders of OER and PER have a
budget of items, as the runtime for Rust has. A SEQUENCE OF of DER
with an element of another tag was decoded without an end, and OER
took time with the square of the size of the data.

BER of indefinite length with an extension marker is decoded with
additions that are not known, and with none.

tests/test_robust.py gives the decoders data made to break them, and
the vectors are recorded again.

Signed-off-by: Matheus Xavier <mxavier@boxtheta.com>
docs/file_formats.md tells what a decoder of OER and of PER rejects,
the limits of a decoder, the arcs of an OBJECT IDENTIFIER as text,
the dates and times that are not ones, and what a decoder of JER and
of XER rejects. docs/third_party_runtimes.md asks the same of a
runtime, with one error for all of it.

docs/index.md has the errors of the runtime for Python, the JVM among
the runtimes, and ObjectDescriptor as a str. The READMEs tell that
every runtime and asnkitcc convert have lenient, and that there are
more than 5,700 vectors.

Signed-off-by: Matheus Xavier <mxavier@boxtheta.com>
Bump every package to 2.0.0-rc8, and make the fixtures, the compiled
examples, the corpus, the generated code and the lock files again.

Signed-off-by: Matheus Xavier <mxavier@boxtheta.com>
@xadaemon
xadaemon merged commit 7fb0f86 into trunk Nov 14, 2026
19 of 22 checks passed
@xadaemon
xadaemon deleted the release-2.0.0-rc8 branch November 14, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant