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

Overflow error in conversion Integer -> FiniteFieldElement_pari_ffelt #16807

Closed
pjbruin opened this issue Aug 12, 2014 · 4 comments
Closed

Overflow error in conversion Integer -> FiniteFieldElement_pari_ffelt #16807

pjbruin opened this issue Aug 12, 2014 · 4 comments

Comments

@pjbruin
Copy link
Contributor

pjbruin commented Aug 12, 2014

As reported by Samuel Neves on sage-support, the following raises a PARI error due to an overflow in converting from t_INT to long:

p = previous_prime(2^64)
F.<x> = GF(p^2)
x * 2**63

The problem is that the conversion is done using PARI's itos (t_INT to signed long) instead of itou (t_INT to unsigned long).

Component: finite rings

Keywords: pari overflow

Author: Peter Bruin

Branch/Commit: 596fc84

Reviewer: Jeroen Demeyer

Issue created by migration from https://trac.sagemath.org/ticket/16807

@pjbruin pjbruin added this to the sage-6.4 milestone Aug 12, 2014
@pjbruin
Copy link
Contributor Author

pjbruin commented Aug 12, 2014

Commit: 596fc84

@pjbruin
Copy link
Contributor Author

pjbruin commented Aug 12, 2014

Branch: u/pbruin/16807-finite_field_overflow

@jdemeyer
Copy link

Reviewer: Jeroen Demeyer

@vbraun
Copy link
Member

vbraun commented Aug 13, 2014

Changed branch from u/pbruin/16807-finite_field_overflow to 596fc84

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

3 participants