Skip to content

GCC "stringop-overread" warnings #1079

@niekbouman

Description

@niekbouman

Dear flint-devs,

Maybe this is already known, but when compiling with GCC v11.2.1 I get several "stringop-overread" warnings, like:

In file included from set_fmpz_poly.c:12:
In function ‘fq_default_poly_set_fmpz_mod_poly’,
    inlined from ‘fq_default_poly_set_fmpz_poly’ at set_fmpz_poly.c:33:4:
/flint/fq_default_poly.h:510:7: warning: ‘fq_zech_poly_set_fmpz_mod_poly’ reading 88 bytes from a region of size 8 [-Wstringop-overread]
  510 |       fq_zech_poly_set_fmpz_mod_poly(rop->fq_zech, op, ctx->ctx.fq_zech);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

kind regards,
Niek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions