crypto/bn/bn_gf2m.c:944: 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:939:14: Call
937.   
938.       BN_CTX_start(ctx);
939.       if ((u = BN_CTX_get(ctx)) == NULL)
                    ^
940.           goto err;
941.   

crypto/bn/bn_ctx.c:229:5: Call
  227.       }
  228.       /* OK, make sure the returned bignum is "zero" */
  229.       BN_zero(ret);
             ^
  230.       /* clear BN_FLG_CONSTTIME if leaked from previous frames */
  231.       ret->flags &= (~BN_FLG_CONSTTIME);

crypto/bn/bn_lib.c:359:1: Parameter `*a->d`
    357.   }
    358.   
    359. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    360.   {
    361.       bn_check_top(a);

crypto/bn/bn_lib.c:362:9: Call
    360.   {
    361.       bn_check_top(a);
    362.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    363.           return 0;
    364.       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:944:11: Call
942.       if (!BN_set_bit(u, p[0] - 1))
943.           goto err;
944.       ret = BN_GF2m_mod_exp_arr(r, a, u, p, ctx);
                 ^
945.       bn_check_top(r);
946.   

crypto/bn/bn_gf2m.c:851:1: Parameter `*b->d`
  849.    * P1363.
  850.    */
  851. > int BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  852.                           const int p[], BN_CTX *ctx)
  853.   {

crypto/bn/bn_gf2m.c:863:9: Call
  861.           return BN_one(r);
  862.   
  863.       if (BN_abs_is_word(b, 1))
                 ^
  864.           return (BN_copy(r, a) != NULL);
  865.   

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

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

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