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

Prevent the hash table from growing too large #12

Open
emiltayl opened this issue May 15, 2012 · 0 comments
Open

Prevent the hash table from growing too large #12

emiltayl opened this issue May 15, 2012 · 0 comments
Assignees
Milestone

Comments

@emiltayl
Copy link
Owner

Currently it is possible to fill up the hash table so much that the size variable overflows, which might cause all sorts of problems. There should be a check to see whether the hash table is at it's maximum size, and in that case we shouldn't grow the table more. As size_t's maximum size is the largest size an array can be, there is no point trying to grow the size beyond that.

It might be best to let the users supply their own max sizes, where size_t's maximum value is the upper bound for what value can be set.

@ghost ghost assigned emiltayl May 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant