Skip to content

fq_default_poly_evaluate_fq_default with context type FMPZ_MOD segfaults #2046

@GiacomoPope

Description

@GiacomoPope

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions