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


crypto/bn/bn_gf2m.c:1067:14: Call
1065.   
1066.       BN_CTX_start(ctx);
1067.       if ((u = BN_CTX_get(ctx)) == NULL)
                     ^
1068.           goto err;
1069.   

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:1072:11: Call
1070.       if (!BN_set_bit(u, p[0] - 1))
1071.           goto err;
1072.       ret = BN_GF2m_mod_exp_arr(r, a, u, p, ctx);
                  ^
1073.       bn_check_top(r);
1074.   

crypto/bn/bn_gf2m.c:979:1: Parameter `*b->d`
  977.    * P1363.
  978.    */
  979. > int BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  980.                           const int p[], BN_CTX *ctx)
  981.   {

crypto/bn/bn_gf2m.c:991:9: Call
  989.           return (BN_one(r));
  990.   
  991.       if (BN_abs_is_word(b, 1))
                 ^
  992.           return (BN_copy(r, a) != NULL);
  993.   

crypto/bn/bn_lib.c:970:1: <Length trace>
968.   }
969.   
970. > int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
971.   {
972.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));

crypto/bn/bn_lib.c:970:1: Parameter `*a->d`
    968.   }
    969.   
    970. > int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
    971.   {
    972.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));

crypto/bn/bn_lib.c:972:31: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_GF2m_mod_exp_arr` 
    970.   int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
    971.   {
    972.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));
                                         ^
    973.   }
    974.   
