crypto/bn/bn_gf2m.c:990: 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:985:14: Call
983.   
984.       BN_CTX_start(ctx);
985.       if ((u = BN_CTX_get(ctx)) == NULL)
                    ^
986.           goto err;
987.   

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:387:1: Parameter `*a->d`
    385.   }
    386.   
    387. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    388.   {
    389.       bn_check_top(a);

crypto/bn/bn_lib.c:390:9: Call
    388.   {
    389.       bn_check_top(a);
    390.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    391.           return 0;
    392.       a->neg = 0;

crypto/bn/bn_lcl.h:651:1: Parameter `*a->d`
      649.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
      650.   
      651. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      652.   {
      653.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_gf2m.c:990:11: Call
988.       if (!BN_set_bit(u, p[0] - 1))
989.           goto err;
990.       ret = BN_GF2m_mod_exp_arr(r, a, u, p, ctx);
                 ^
991.       bn_check_top(r);
992.   

crypto/bn/bn_gf2m.c:897:1: Parameter `*b->d`
  895.    * P1363.
  896.    */
  897. > int BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  898.                           const int p[], BN_CTX *ctx)
  899.   {

crypto/bn/bn_gf2m.c:909:9: Call
  907.           return BN_one(r);
  908.   
  909.       if (BN_abs_is_word(b, 1))
                 ^
  910.           return (BN_copy(r, a) != NULL);
  911.   

crypto/bn/bn_lib.c:839:1: <Length trace>
837.   }
838.   
839. > int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
840.   {
841.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));

crypto/bn/bn_lib.c:839:1: Parameter `*a->d`
    837.   }
    838.   
    839. > int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
    840.   {
    841.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));

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