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

pool_alloc_vec() with too many elts. #1420

Open
linas opened this issue Feb 7, 2023 · 0 comments
Open

pool_alloc_vec() with too many elts. #1420

linas opened this issue Feb 7, 2023 · 0 comments

Comments

@linas
Copy link
Member

linas commented Feb 7, 2023

If form_match_list() would return a match list that more than 4090 of its elements would have a linkage (for both LHS and RHS), then a segfault would happen.

As I said before, this problem (of inability to allocate vectors that have more elements than num_elements) can relatively easily be solved in pool_alloc_vec(), so I can add that there. (A more drastic measure is not to cache such big lists but there is no need for that since the memory-pool fix is easy enough.)

Originally posted by @ampli in #1414 (comment)

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

No branches or pull requests

1 participant