crypto/bn/bn_gf2m.c:1002: 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:997:14: Call
995.   
996.       BN_CTX_start(ctx);
997.       if ((u = BN_CTX_get(ctx)) == NULL)
                     ^
998.           goto err;
999.   

crypto/bn/bn_ctx.c:229:5: Call
  227.       }
  228.       /* OK, make sure the returned bignum is "zero" */
  229.       BN_zero(ret);
             ^
  230.       ctx->used++;
  231.       CTXDBG_RET(ctx, ret);

crypto/bn/bn_lib.c:463:1: Parameter `*a->d`
    461.   }
    462.   
    463. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    464.   {
    465.       bn_check_top(a);

crypto/bn/bn_lib.c:466:9: Call
    464.   {
    465.       bn_check_top(a);
    466.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    467.           return (0);
    468.       a->neg = 0;

crypto/bn/bn_lcl.h:676:1: Parameter `*a->d`
      674.   int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx);
      675.   
      676. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      677.   {
      678.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_gf2m.c:1002:11: Call
1000.       if (!BN_set_bit(u, p[0] - 1))
1001.           goto err;
1002.       ret = BN_GF2m_mod_exp_arr(r, a, u, p, ctx);
                  ^
1003.       bn_check_top(r);
1004.   

crypto/bn/bn_gf2m.c:909:1: Parameter `*b->d`
  907.    * P1363.
  908.    */
  909. > int BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  910.                           const int p[], BN_CTX *ctx)
  911.   {

crypto/bn/bn_gf2m.c:921:9: Call
  919.           return (BN_one(r));
  920.   
  921.       if (BN_abs_is_word(b, 1))
                 ^
  922.           return (BN_copy(r, a) != NULL);
  923.   

crypto/bn/bn_lib.c:913:1: <Length trace>
911.   }
912.   
913. > int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
914.   {
915.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));

crypto/bn/bn_lib.c:913:1: Parameter `*a->d`
    911.   }
    912.   
    913. > int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
    914.   {
    915.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));

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