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

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:395:1: Parameter `*a->d`
    393.   }
    394.   
    395. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    396.   {
    397.       bn_check_top(a);

crypto/bn/bn_lib.c:398:9: Call
    396.   {
    397.       bn_check_top(a);
    398.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    399.           return (0);
    400.       a->neg = 0;

crypto/bn/bn_lcl.h:660:1: Parameter `*a->d`
      658.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
      659.   
      660. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      661.   {
      662.       if (bits > (INT_MAX - BN_BITS2 + 1))

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

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

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

crypto/bn/bn_lib.c:847:1: <Length trace>
845.   }
846.   
847. > int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
848.   {
849.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));

crypto/bn/bn_lib.c:847:1: Parameter `*a->d`
    845.   }
    846.   
    847. > int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w)
    848.   {
    849.       return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));

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