-
Notifications
You must be signed in to change notification settings - Fork 1.9k
It is necessary to set MAX_CAPACITY to ArrayTernaryTrie/ArrayTrie #7271
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
Labels
Bug
For general bugs on Jetty side
Comments
tinswzy
added a commit
to tinswzy/jetty.project
that referenced
this issue
Dec 14, 2021
Signed-off-by: tinswzy <tinswzy@gmail.com>
tinswzy
added a commit
to tinswzy/jetty.project
that referenced
this issue
Dec 14, 2021
Signed-off-by: tinswzy <tinswzy@gmail.com>
tinswzy
added a commit
to tinswzy/jetty.project
that referenced
this issue
Dec 15, 2021
Signed-off-by: tinswzy <tinswzy@gmail.com>
tinswzy
added a commit
to tinswzy/jetty.project
that referenced
this issue
Jan 15, 2022
Signed-off-by: tinswzy <tinswzy@gmail.com>
lorban
added a commit
that referenced
this issue
Jan 17, 2022
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban
added a commit
that referenced
this issue
Jan 17, 2022
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban
added a commit
that referenced
this issue
Jan 19, 2022
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This was referenced Jan 19, 2022
sbordet
added a commit
that referenced
this issue
Jan 27, 2022
…city #7271 add checks for max capacity in tries
Fixed by #7405. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Jetty version(s)
9.3+, 9.4+
Java version/vendor
(use: java -version)
All
OS type/version
All
Description
It is necessary to backport MAX_CAPACITY bugfix to ArrayTernaryTrie/ArrayTrie,as there are still many mainstream projects using jetty9.x.
In 9.x, the ContextHandlerCollection uses the ArrayTernaryTrie data structure by default. The data types of _rows&_tree in ArrayTernaryTrie are char/char[]. Their capacity is limited, otherwise routing bugs will occur if the value is exceeded.
How to reproduce?
@test
public void testArrayTernaryTrieBug() throws Exception
{
Trie trie = new ArrayTernaryTrie<>(false,400000);
}
The text was updated successfully, but these errors were encountered: