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 bug with overflow bits in patricia trie #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emmanuellegedin
Copy link
Contributor

I noticed an edge case that causes the put method of PatriciaTrie to crash. This happens when one tries to insert some string and also the same string appended with one or more U+FFFF.

For example:

PatriciaTrie<String> trie = new PatriciaTrie<>();
trie.put("a", "0");
trie.put("a\uFFFF", "1");

causes an exception.

This PR fixes the issue.

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.

1 participant