Skip to content

fix(decoder): reject the removed [#N] length marker - #200

Merged
jenspapenhagen merged 3 commits into
mainfrom
triage/reject-length-marker
Oct 3, 2026
Merged

jenspapenhagen merged 3 commits into
mainfrom
triage/reject-length-marker

Conversation

@johannschopplich

Copy link
Copy Markdown
Member

Strict decoding accepted [#N] headers, though §6 allows only [N] and §14.2 requires an error. In non-strict mode a keyed xs[#3]: … now falls through to a key-value line; a keyless [#N] still decodes as an array.

The encoder's lengthMarker option still writes [#N], which strict decoding now rejects.

@johannschopplich
johannschopplich requested a review from a team as a code owner October 2, 2026 06:29
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 96.88% -0.07% 🍏
Files changed 90% 🍏

File Coverage
DecodeHelper.java 98.56% 🍏
Headers.java 97.83% 🍏
ValueDecoder.java 97.54% 🍏
ListItemDecoder.java 95.5% 🍏
ArrayDecoder.java 95.47% -0.86% ❌
KeyDecoder.java 86.94% 🍏

@jenspapenhagen
jenspapenhagen merged commit 2f4e280 into main Oct 3, 2026
1 check passed
@jenspapenhagen
jenspapenhagen deleted the triage/reject-length-marker branch October 3, 2026 09:37
@johannschopplich johannschopplich mentioned this pull request Oct 3, 2026
3 tasks done
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.

2 participants