Skip to content

Fix uncaught exception in http_server_asio.cpp for invalid URL path #634

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

Merged

Conversation

garethsb
Copy link
Contributor

URLs that contain invalid UTF-8 characters, either before or after percent-decoding, can result in std::range_error, which the ASIO-based http_listener does not handle.

E.g. "/%f8%80%80%80%ae%f8%80%80%80%ae/%f8%80%80%80%ae%f8%80%80%80%ae/.../boot.ini".

@ras0219-msft ras0219-msft merged commit 6ebb942 into microsoft:master Dec 23, 2017
@ras0219-msft
Copy link
Contributor

Looks good, thanks for the PR!

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