Skip to content

fq_default_poly_evaluate_fq_default with context type FMPZ_MOD segfaults #2046

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

Closed
GiacomoPope opened this issue Aug 13, 2024 · 0 comments · Fixed by #2047
Closed

fq_default_poly_evaluate_fq_default with context type FMPZ_MOD segfaults #2046

GiacomoPope opened this issue Aug 13, 2024 · 0 comments · Fixed by #2047

Comments

@GiacomoPope
Copy link
Contributor

The following code has a copy paste error:

    else if (_FQ_DEFAULT_TYPE(ctx) == _FQ_DEFAULT_NMOD)
    {
        fmpz_mod_poly_evaluate_fmpz(res->fmpz_mod, f->fmpz_mod, a->fmpz_mod,
                                                        FQ_DEFAULT_CTX_FMPZ_MOD(ctx));
    }

https://github.com/flintlib/flint/blob/05340d2a7349761aff2cd3370810c93e2174ce46/src/fq_default_poly.h#L2053C1-L2057C6

Which leads to a segfault as the FQ_DEFAULT_CTX_FMPZ_MOD context type is never identified

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

Successfully merging a pull request may close this issue.

1 participant