We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
P.<x, y> = PolynomialRing(ZZ) (x + y).monomial_coefficient(x - x)
Raise ValueError with error text.
Segmentation fault.
There is a missing check for zero monomial in monomial_coefficient() for multivariate polynomial:
monomial_coefficient()
sage/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx
Lines 2947 to 3001 in c9dd1e8
Value mon._poly == NULL is passed to Singular and then NULL dereference occurs:
mon._poly == NULL
https://github.com/Singular/Singular/blob/9cdbd118fe4118123a2dd5df729ca3a516305b64/libpolys/polys/monomials/p_polys.h#L1505-L1521
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Steps To Reproduce
Expected Behavior
Raise ValueError with error text.
Actual Behavior
Segmentation fault.
Additional Information
There is a missing check for zero monomial in
monomial_coefficient()
for multivariate polynomial:sage/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx
Lines 2947 to 3001 in c9dd1e8
Value
mon._poly == NULL
is passed to Singular and then NULL dereference occurs:https://github.com/Singular/Singular/blob/9cdbd118fe4118123a2dd5df729ca3a516305b64/libpolys/polys/monomials/p_polys.h#L1505-L1521
Environment
Checklist
The text was updated successfully, but these errors were encountered: