Skip to content

Fix WebSocket UTF-8 validation crash#159

Closed
whatyouhide wants to merge 1 commit into
ninenines:masterfrom
whatyouhide:al/ws-validation
Closed

Fix WebSocket UTF-8 validation crash#159
whatyouhide wants to merge 1 commit into
ninenines:masterfrom
whatyouhide:al/ws-validation

Conversation

@whatyouhide

Copy link
Copy Markdown
Contributor

Clsoes #158.

Invalid UTF-8 text payloads could crash continuation states in the WebSocket UTF-8 decoder when an ASCII byte appeared where a continuation byte was expected.

Return the UTF-8 error state instead so text, close and fragmented payloads fail as badencoding.

Invalid UTF-8 text payloads could crash continuation states in the
WebSocket UTF-8 decoder when an ASCII byte appeared where a continuation
byte was expected.

Return the UTF-8 error state instead so text, close and fragmented
payloads fail as badencoding.
@essen

essen commented Jun 4, 2026

Copy link
Copy Markdown
Member

I'll merge on Monday, thank you.

@essen

essen commented Jun 8, 2026

Copy link
Copy Markdown
Member

Merged, thanks!

@essen essen closed this Jun 8, 2026
@whatyouhide whatyouhide deleted the al/ws-validation branch June 8, 2026 09:10
@whatyouhide

Copy link
Copy Markdown
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants