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


crypto/bn/bn_gf2m.c:833:18: Call
831.   
832.       BN_CTX_start(ctx);
833.       if ((field = BN_CTX_get(ctx)) == NULL)
                        ^
834.           goto err;
835.       if (!BN_GF2m_arr2poly(p, field))

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:835:10: Call
833.       if ((field = BN_CTX_get(ctx)) == NULL)
834.           goto err;
835.       if (!BN_GF2m_arr2poly(p, field))
                ^
836.           goto err;
837.   

crypto/bn/bn_gf2m.c:1151:1: Parameter `*a->d`
  1149.    * bit-string.  The array must be terminated by -1.
  1150.    */
  1151. > int BN_GF2m_arr2poly(const int p[], BIGNUM *a)
  1152.   {
  1153.       int i;

crypto/bn/bn_gf2m.c:1156:5: Call
  1154.   
  1155.       bn_check_top(a);
  1156.       BN_zero(a);
              ^
  1157.       for (i = 0; p[i] != -1; i++) {
  1158.           if (BN_set_bit(a, p[i]) == 0)

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

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_lib.c:365:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_GF2m_arr2poly` 
    363.           return 0;
    364.       a->neg = 0;
    365.       a->d[0] = w;
               ^
    366.       a->top = (w ? 1 : 0);
    367.       a->flags &= ~BN_FLG_FIXED_TOP;
