-
-
Notifications
You must be signed in to change notification settings - Fork 482
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 segfault for Weil polynomials #37861
Fix segfault for Weil polynomials #37861
Conversation
LGTM. |
I noticed there is also a segfault when the degree is negative. The root cause is passing a negative degree to dfs_manager, so I moved the check to catch both issues at once, and added a second doctest. |
Documentation preview for this PR (built with commit 95d8bea; changes) is ready! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Fix segfault for Weil polynomials Eliminate a segfault that occurs when asking for Weil polynomials of degree 0 and sign -1 (which do not exist, so the iterator should return empty). This fixes sagemath#37860. URL: sagemath#37861 Reported by: kedlaya Reviewer(s): Travis Scrimshaw
Fix segfault for Weil polynomials Eliminate a segfault that occurs when asking for Weil polynomials of degree 0 and sign -1 (which do not exist, so the iterator should return empty). This fixes sagemath#37860. URL: sagemath#37861 Reported by: kedlaya Reviewer(s): Travis Scrimshaw
Fix segfault for Weil polynomials
Eliminate a segfault that occurs when asking for Weil polynomials of degree 0 and sign -1 (which do not exist, so the iterator should return empty). This fixes #37860.