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


crypto/dh/dh_gen.c:107:1: Parameter `ret->g->d`
105.    * order-q subgroup.
106.    */
107. > static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
108.                                   BN_GENCB *cb)
109.   {

crypto/dh/dh_gen.c:165:10: Call
163.       if (!BN_GENCB_call(cb, 3, 0))
164.           goto err;
165.       if (!BN_set_word(ret->g, g))
                ^
166.           goto err;
167.       ok = 1;

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);
