providers/fips/fipsprov.c:76: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_set_word`.
Showing all 11 steps of the trace


providers/fips/fipsprov.c:72:9: Call
70.           goto err;
71.       BN_CTX_start(bnctx);
72.       a = BN_CTX_get(bnctx);
              ^
73.       b = BN_CTX_get(bnctx);
74.       if (b == NULL)

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

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

crypto/bn/bn_lib.c:364:9: Call
    362.   {
    363.       bn_check_top(a);
    364.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    365.           return 0;
    366.       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))

providers/fips/fipsprov.c:76:5: Call
74.       if (b == NULL)
75.           goto err;
76.       BN_zero(a);
          ^
77.       if (!BN_one(b)
78.           || !BN_add(a, a, b)

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

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

crypto/bn/bn_lib.c:364:9: Call
  362.   {
  363.       bn_check_top(a);
  364.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                 ^
  365.           return 0;
  366.       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:367:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_set_word` 
  365.           return 0;
  366.       a->neg = 0;
  367.       a->d[0] = w;
             ^
  368.       a->top = (w ? 1 : 0);
  369.       a->flags &= ~BN_FLG_FIXED_TOP;
