Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Oct 13, 2024
1 parent c1a25d8 commit 4f1ca86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bqfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ static void bqfc_export(uint8_t *out_str, size_t *offset, size_t size,
{
size_t bytes;

// mpz_export can overflow out_str if reduction bug but this should never happen
mpz_export(&out_str[*offset], &bytes, -1, 1, 0, 0, n);
if (bytes > size)
gmp_printf("bqfc_export overflow offset %d size %d n %Zd\n", *offset, size, n);
Expand Down

0 comments on commit 4f1ca86

Please sign in to comment.