-
Notifications
You must be signed in to change notification settings - Fork 46
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
Bug: Endless recursion in getDistinctIndices with certain parameters. #34
Comments
For every If Example (
Possible fixes:
I checked fix (2) and it seems to work. Because the link in the comment (http://citeseer.ist.psu.edu/viewdoc/download;jsessionid=4060353E67A356EF9528D2C57C064F5A?doi=10.1.1.152.579&rep=rep1&type=pdf) does not work I was not able to check if Hope this helps. |
Thank you for sharing this, I will investigate this and post news as soon as possible. |
Back, Fix pushed in branch fix-34 https://github.com/Callidon/bloom-filters/tree/fix-34 The difference is the You have to know that generating distinct indexes using this technique is very time consuming. |
Explanation
The
getDistinctIndicesBis
function withingetDistinctIndices
will fail with a Maximum call stack size exceeded error when there are too few distinct indizes being returned while n < size.How to reproduce
This code will trigger the issue.
Why does this happen?
This combined with the filtering of double indizes in
getDistinctIndicesBis
will lead to the issue.Its important to note that this will only happen in certain cases with high hash count and a low bit count.
The text was updated successfully, but these errors were encountered: