crypto/bn/bn_gf2m.c:814: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_GF2m_arr2poly`.
Showing all 13 steps of the trace


crypto/bn/bn_gf2m.c:812:18: Call
810.       bn_check_top(xx);
811.       BN_CTX_start(ctx);
812.       if ((field = BN_CTX_get(ctx)) == NULL)
                        ^
813.           goto err;
814.       if (!BN_GF2m_arr2poly(p, field))

crypto/bn/bn_ctx.c:275:5: Call
  273.       }
  274.       /* OK, make sure the returned bignum is "zero" */
  275.       BN_zero(ret);
             ^
  276.       ctx->used++;
  277.       CTXDBG_RET(ctx, ret);

crypto/bn/bn_lib.c:520:1: Parameter `*a->d`
    518.   }
    519.   
    520. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    521.   {
    522.       bn_check_top(a);

crypto/bn/bn_lib.c:523:9: Call
    521.   {
    522.       bn_check_top(a);
    523.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    524.           return (0);
    525.       a->neg = 0;

crypto/bn/bn_lcl.h:777:1: Parameter `*a->d`
      775.   int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx);
      776.   
      777. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      778.   {
      779.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_gf2m.c:814:10: Call
812.       if ((field = BN_CTX_get(ctx)) == NULL)
813.           goto err;
814.       if (!BN_GF2m_arr2poly(p, field))
                ^
815.           goto err;
816.   

crypto/bn/bn_gf2m.c:1279:1: Parameter `*a->d`
  1277.    * bit-string.  The array must be terminated by -1.
  1278.    */
  1279. > int BN_GF2m_arr2poly(const int p[], BIGNUM *a)
  1280.   {
  1281.       int i;

crypto/bn/bn_gf2m.c:1284:5: Call
  1282.   
  1283.       bn_check_top(a);
  1284.       BN_zero(a);
              ^
  1285.       for (i = 0; p[i] != -1; i++) {
  1286.           if (BN_set_bit(a, p[i]) == 0)

crypto/bn/bn_lib.c:520:1: <Length trace>
518.   }
519.   
520. > int BN_set_word(BIGNUM *a, BN_ULONG w)
521.   {
522.       bn_check_top(a);

crypto/bn/bn_lib.c:520:1: Parameter `*a->d`
    518.   }
    519.   
    520. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    521.   {
    522.       bn_check_top(a);

crypto/bn/bn_lib.c:523:9: Call
    521.   {
    522.       bn_check_top(a);
    523.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    524.           return (0);
    525.       a->neg = 0;

crypto/bn/bn_lcl.h:777:1: Parameter `*a->d`
      775.   int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx);
      776.   
      777. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      778.   {
      779.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_lib.c:526:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_GF2m_arr2poly` 
    524.           return (0);
    525.       a->neg = 0;
    526.       a->d[0] = w;
               ^
    527.       a->top = (w ? 1 : 0);
    528.       bn_check_top(a);
