Repository navigation
Prepare 2.0.0-rc8 release - #20
Merged
Merged
Conversation
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
force-pushed
the
release-2.0.0-rc8
branch
from
November 14, 2026 00:34
16f85ec to
0b3ccbc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The last release candidate of 2.0.0, in three commits.
Refuse what a codec does not write, in every runtime
SEQUENCEor aSETthat is not additions after an extension marker, and data after what an explicit tag is around, is aDecodeError.lenient, which the BER codec now looks at too, leaves it out.INTEGERs and unused bits that are not as the codec writes them, and aDATE, aTIME-OF-DAYor aDATE-TIMEthat is not one, are errors.decode()raises aDecodeErrorand the loads aCompileErrorwhatever 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. ASEQUENCE OFof 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.CHANGELOG.mdhas all of it.tests/test_robust.pyis 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,ObjectDescriptoras astr.lenientin every runtime and inasnkitcc 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.mddated.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 testin both WebAssembly packages,./gradlew testandmkdocs build --strict.