You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A truncated multi-byte TLV header inside a fetched certificate's ValidityPeriod raises struct.error, which this handler does not catch. The initial parse_data skips that extension, so a correctly signed certificate with malformed validity data can reach this second parse. The exception escapes the application's validation task and leaves the pending Interest to time out instead of returning ValidResult.FAIL. Import struct and include struct.error in this handler; add a regression test for a truncated nested TLV header.
The reason will be displayed to describe this comment to others. Learn more.
It's a very minor case that affects Windows & PyPy3.11 only with Pycryptodomex, where a specific library is missing in building. Current master branch failed it as well:
The reason will be displayed to describe this comment to others. Learn more.
You should not disable a test if you cannot confirm why it's failing.
Instead, keep it enabled and in red until it is investigated.
If needed, you can relax the branch protection rules to merge this PR even if the test is failing.
The reason will be displayed to describe this comment to others. Learn more.
You should not disable a test if you cannot confirm why it's failing.
Instead, keep it enabled and in red until it is investigated.
If needed, you can relax the branch protection rules to merge this PR even if the test is failing.
The reason will be displayed to describe this comment to others. Learn more.
All examples should have consistent import syntax.
Previous examples alias this import with app as ndn_app, and keep app as the variable name.
This example use app as import name and ndn_app as variable name.
Choose one convention and apply to all examples.
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
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.
Ref: #97 #108
New wire format is longer but with advantage:
dataclasssupport, such as=,reprandasdict. Also, models can be easily encoded into JSON and other formats for human/subagents to read.Not so good points:
bytesfield could actually holdmemoryview. Need further effort to improve.