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


crypto/dh/dh_gen.c:118:10: Call
116.           goto err;
117.       BN_CTX_start(ctx);
118.       t1 = BN_CTX_get(ctx);
                ^
119.       t2 = BN_CTX_get(ctx);
120.       if (t1 == NULL || t2 == NULL)

crypto/bn/bn_ctx.c:284:5: Call
  282.       }
  283.       /* OK, make sure the returned bignum is "zero" */
  284.       BN_zero(ret);
             ^
  285.       ctx->used++;
  286.       CTXDBG_RET(ctx, ret);

crypto/bn/bn_lib.c:530:1: Parameter `*a->d`
    528.   }
    529.   
    530. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    531.   {
    532.       bn_check_top(a);

crypto/dh/dh_gen.c:140:14: Call
138.           g = 2;
139.       } else if (generator == DH_GENERATOR_5) {
140.           if (!BN_set_word(t1, 10))
                    ^
141.               goto err;
142.           if (!BN_set_word(t2, 3))

crypto/bn/bn_lib.c:530:1: <Length trace>
528.   }
529.   
530. > int BN_set_word(BIGNUM *a, BN_ULONG w)
531.   {
532.       bn_check_top(a);

crypto/bn/bn_lib.c:530:1: Parameter `*a->d`
  528.   }
  529.   
  530. > int BN_set_word(BIGNUM *a, BN_ULONG w)
  531.   {
  532.       bn_check_top(a);

crypto/bn/bn_lib.c:536:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_set_word` 
  534.           return (0);
  535.       a->neg = 0;
  536.       a->d[0] = w;
             ^
  537.       a->top = (w ? 1 : 0);
  538.       bn_check_top(a);
