Skip to content

expander: panic if requested output length overflows DST. - #664

Merged
bwesterb merged 1 commit into
mainfrom
cjpatton/gw41
Jul 18, 2026
Merged

expander: panic if requested output length overflows DST.#664
bwesterb merged 1 commit into
mainfrom
cjpatton/gw41

Conversation

@cjpatton

@cjpatton cjpatton commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

As required by RFC 9380, the DST encodes the requested length as a 2 byte integer. If the length exceeds 2^16 - 1, then panic. The API already documents this behavior, but doesn't actually implement it as documented.


Open in Devin Review

As required by RFC 9380, the DST encodes the requested length as a 2
byte integer. If the length exceeds 2^16 - 1, then panic. The API
already documents this behavior, but doesn't actually implement it as
documented.
@cjpatton
cjpatton requested a review from bwesterb July 17, 2026 22:47

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@bwesterb
bwesterb merged commit 03c02c4 into main Jul 18, 2026
14 checks passed
@bwesterb
bwesterb deleted the cjpatton/gw41 branch July 18, 2026 16:12
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