Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: validate path bytes are at least utf8 #756

Merged
merged 1 commit into from
Mar 11, 2025
Merged

Conversation

seanmonstar
Copy link
Member


// potentially utf8, might not, should check
0x7F..=0xFF => {
is_maybe_not_utf8 = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

nice idea to avoid checking utf8 in most case, maybe we could do something similar in http-parse, will look at it (since utf8 is not common in path)

@seanmonstar seanmonstar merged commit 6637a72 into master Mar 11, 2025
10 checks passed
@seanmonstar seanmonstar deleted the uri-check-utf8 branch March 11, 2025 20:10
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.

3 participants