Skip to content

cbor/bpv7: store native field values and harden CBOR containers - #1

Open
polybassa wants to merge 3 commits into
BrianSipos:4874-add-bpv7from
polybassa:fix-pr-5075
Open

cbor/bpv7: store native field values and harden CBOR containers#1
polybassa wants to merge 3 commits into
BrianSipos:4874-add-bpv7from
polybassa:fix-pr-5075

Conversation

@polybassa

Copy link
Copy Markdown

CBOR packet fields now keep Python-native internals instead of CBOR_Object wrappers, with explicit build/dissect item accounting so required and conditional fields cannot silently shift array positions. Indefinite-length decoding, AI 31 handling, CRC auto-calculation, DTN time, IPN EID normalization, and BundleV7.validate() follow the PR secdev#5075 fix plan; incomplete BPSec stubs are removed from this change.

AI-Assisted: yes

Nils Weiss and others added 3 commits August 28, 2026 10:06
CBOR packet fields now keep Python-native internals instead of CBOR_Object
wrappers, with explicit build/dissect item accounting so required and
conditional fields cannot silently shift array positions. Indefinite-length
decoding, AI 31 handling, CRC auto-calculation, DTN time, IPN EID
normalization, and BundleV7.validate() follow the PR secdev#5075 fix plan;
incomplete BPSec stubs are removed from this change.

AI-Assisted: yes
Co-authored-by: Cursor <cursoragent@cursor.com>
Required fields always report min_items=1, CBOR_NO_ITEM separates
sequence end from null, semantic tags and packet children use real
item counts, and BPv7 CRC helpers share inferred type-code context.
Harden maps/simple values/UTF-8 chunks/ranges, DTN/EID guards, and
add focused UTS coverage for the review matrix.

AI-Assisted: yes
Co-authored-by: Cursor <cursoragent@cursor.com>
Respect parent array item budgets, require one-item packet cardinality on
dissect, enforce required/present map members, add value-level APIs for
ARRAY_OF/SEQUENCE_OF of semantic tags, and cover the findings with UTS.

AI-Assisted: yes
Co-authored-by: Cursor <cursoragent@cursor.com>
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