-
Notifications
You must be signed in to change notification settings - Fork 162
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
Crash when ApplicableMethod is called incorrectly #3116
Comments
Simpler way to reproduce it (and running in a GAP debug build with assertions enabled):
So clearly a bounds check is missing somewhre |
The second parameter for ApplicableMethod should be a list of parameters for the operation, so the first call is correct, and the second is only accepted for the convenience of users. When 'obj' is used instead of '[obj]' it happens that obj is a list (of 20 mutable compressed vectors of length 20 over GF(5)). The segmentation fault occurs when
is called with narg=20. Please remind me: what is the maximum number of parameters for an operation? |
Using 18 in place of 20 we get:
in the loop (oper.g line 1918) where len=24 and LENGTH(meths)=17:
|
Revised Pull Request #2948 to add a test in ApplicableMethod to check that the number of entries in the second parameter is not greater than 8. Also added a test in tst/testinstall/methwhy.tst. |
I fixed the underlying problem in PR #3151. It should not be necessary to add another check to |
On current master 5dad0ef:
The text was updated successfully, but these errors were encountered: