Skip to content

Commit

Permalink
Disallow value item arrays longer than key item arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
cabo committed Feb 26, 2024
1 parent 31da0b8 commit 0b4dbfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions draft-ietf-cbor-packed.md
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,8 @@ whose items are treated as value items for the resulting map.
The map is constructed by grouping key and value items
with equal position in the provided arrays into pairs that constitute the resulting map.

The value item array MUST NOT be longer than the key item array.

The value item array MAY be shorter than the key item array, in which
case the one or more unmatched value items towards the end are treated as _absent_.
Additionally, value items that are the CBOR simple value `undefined`
Expand Down

0 comments on commit 0b4dbfa

Please sign in to comment.