crypto/dh/dh_check.c:41: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_sub_word`.
Showing all 9 steps of the trace


crypto/dh/dh_check.c:33:11: Call
31.           goto err;
32.       BN_CTX_start(ctx);
33.       tmp = BN_CTX_get(ctx);
                ^
34.       if (tmp == NULL)
35.           goto err;

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:463:1: Parameter `*a->d`
    461.   }
    462.   
    463. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    464.   {
    465.       bn_check_top(a);

crypto/bn/bn_lib.c:466:9: Call
    464.   {
    465.       bn_check_top(a);
    466.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    467.           return (0);
    468.       a->neg = 0;

crypto/bn/bn_lcl.h:676:1: Parameter `*a->d`
      674.   int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx);
      675.   
      676. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      677.   {
      678.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/dh/dh_check.c:41:41: Call
39.       if (BN_is_negative(dh->g) || BN_is_zero(dh->g) || BN_is_one(dh->g))
40.           *ret |= DH_NOT_SUITABLE_GENERATOR;
41.       if (BN_copy(tmp, dh->p) == NULL || !BN_sub_word(tmp, 1))
                                              ^
42.           goto err;
43.       if (BN_cmp(dh->g, tmp) >= 0)

crypto/bn/bn_word.c:132:1: <Length trace>
130.   }
131.   
132. > int BN_sub_word(BIGNUM *a, BN_ULONG w)
133.   {
134.       int i;

crypto/bn/bn_word.c:132:1: Parameter `*a->d`
  130.   }
  131.   
  132. > int BN_sub_word(BIGNUM *a, BN_ULONG w)
  133.   {
  134.       int i;

crypto/bn/bn_word.c:157:27: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_sub_word` 
  155.       }
  156.   
  157.       if ((a->top == 1) && (a->d[0] < w)) {
                                   ^
  158.           a->d[0] = w - a->d[0];
  159.           a->neg = 1;
