crypto/dh/dh_gen.c:91: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_set_word`.
Showing all 11 steps of the trace


crypto/dh/dh_gen.c:69:10: Call
67.           goto err;
68.       BN_CTX_start(ctx);
69.       t1 = BN_CTX_get(ctx);
               ^
70.       t2 = BN_CTX_get(ctx);
71.       if (t2 == NULL)

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:358:1: Parameter `*a->d`
    356.   }
    357.   
    358. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    359.   {
    360.       bn_check_top(a);

crypto/bn/bn_lib.c:361:9: Call
    359.   {
    360.       bn_check_top(a);
    361.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    362.           return 0;
    363.       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/dh/dh_gen.c:91:14: Call
89.           g = 2;
90.       } else if (generator == DH_GENERATOR_5) {
91.           if (!BN_set_word(t1, 10))
                   ^
92.               goto err;
93.           if (!BN_set_word(t2, 3))

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

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

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