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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpURI ArrayIndexOutOfBounds #5999

Comments

@gregw
Copy link
Contributor

@gregw gregw commented Feb 23, 2021

Jetty version
9.4.37

Description

An HttpURI when given a uri String that has a non encoded unicode character at the start of a segment will incorrectly throw ArrayIndexOutOfBounds.
So the uri /foo/馃尣馃尣馃尣馃尣馃尣/bar will fail, but /foo/x馃尣馃尣馃尣馃尣馃尣/bar will not.

gregw added a commit that referenced this issue Feb 23, 2021
Fixed ArrayTrie to not throw if passed a unicode character.
@gregw gregw linked a pull request that will close this issue Feb 23, 2021
@gregw gregw closed this in 8bd4a9f Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment