Skip to content

Skip the decode round-trip check for domains past encode's length limit - #274

Merged
kjd merged 1 commit into
masterfrom
fix-decode-length-check
Sep 7, 2026
Merged

Skip the decode round-trip check for domains past encode's length limit#274
kjd merged 1 commit into
masterfrom
fix-decode-length-check

Conversation

@kjd

@kjd kjd commented Sep 7, 2026

Copy link
Copy Markdown
Owner

decode() deliberately allows the trailing-dot octet whether or not one is present, since UTS #46 ToUnicode checks no lengths, so a 254-octet domain without a trailing dot decodes but is rejected by encode(). Fixes OSS-Fuzz 4694619275984896.

decode() deliberately allows the trailing-dot octet whether or not one
is present, since UTS #46 ToUnicode checks no lengths, so a 254-octet
domain without a trailing dot decodes but is rejected by encode().
Fixes OSS-Fuzz 4694619275984896.
@kjd
kjd merged commit cd17392 into master Sep 7, 2026
31 checks passed
@kjd
kjd deleted the fix-decode-length-check branch September 7, 2026 13:48
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