crypto/dh/dh_check.c:159: 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_check.c:158:11: Call
156.           goto err;
157.       BN_CTX_start(ctx);
158.       tmp = BN_CTX_get(ctx);
                 ^
159.       if (tmp == NULL || !BN_set_word(tmp, 1))
160.           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:393:1: Parameter `*a->d`
    391.   }
    392.   
    393. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    394.   {
    395.       bn_check_top(a);

crypto/bn/bn_lib.c:396:9: Call
    394.   {
    395.       bn_check_top(a);
    396.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    397.           return (0);
    398.       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_check.c:159:25: Call
157.       BN_CTX_start(ctx);
158.       tmp = BN_CTX_get(ctx);
159.       if (tmp == NULL || !BN_set_word(tmp, 1))
                               ^
160.           goto err;
161.       if (BN_cmp(pub_key, tmp) <= 0)

crypto/bn/bn_lib.c:393:1: <Length trace>
391.   }
392.   
393. > int BN_set_word(BIGNUM *a, BN_ULONG w)
394.   {
395.       bn_check_top(a);

crypto/bn/bn_lib.c:393:1: Parameter `*a->d`
  391.   }
  392.   
  393. > int BN_set_word(BIGNUM *a, BN_ULONG w)
  394.   {
  395.       bn_check_top(a);

crypto/bn/bn_lib.c:396:9: Call
  394.   {
  395.       bn_check_top(a);
  396.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                 ^
  397.           return (0);
  398.       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:399:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_set_word` 
  397.           return (0);
  398.       a->neg = 0;
  399.       a->d[0] = w;
             ^
  400.       a->top = (w ? 1 : 0);
  401.       bn_check_top(a);
