crypto/dsa/dsa_gen.c:669: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_mod_exp_mont`.
Showing all 11 steps of the trace


crypto/dsa/dsa_gen.c:661:11: Call
659.       if (BN_cmp(dsa->g, dsa->p) >= 0)
660.           return 0;
661.       tmp = BN_CTX_get(ctx);
                 ^
662.       if (!tmp)
663.           goto err;

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/dsa/dsa_gen.c:669:10: Call
667.           goto err;
668.       /* Work out g^q mod p */
669.       if (!BN_mod_exp_mont(tmp, dsa->g, dsa->q, dsa->p, ctx, mont))
                ^
670.           goto err;
671.       if (!BN_cmp(tmp, BN_value_one()))

crypto/bn/bn_exp.c:401:1: Parameter `*rr->d`
  399.   }
  400.   
  401. > int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
  402.                       const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
  403.   {

crypto/bn/bn_exp.c:413:16: Call
  411.   
  412.       if (BN_get_flags(p, BN_FLG_CONSTTIME) != 0) {
  413.           return BN_mod_exp_mont_consttime(rr, a, p, m, ctx, in_mont);
                        ^
  414.       }
  415.   

crypto/bn/bn_exp.c:655:1: Parameter `*rr->d`
    653.    * http://www.daemonology.net/hyperthreading-considered-harmful/)
    654.    */
    655. > int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
    656.                                 const BIGNUM *m, BN_CTX *ctx,
    657.                                 BN_MONT_CTX *in_mont)

crypto/bn/bn_exp.c:688:13: Call
    686.           if (BN_is_one(m)) {
    687.               ret = 1;
    688.               BN_zero(rr);
                       ^
    689.           } else {
    690.               ret = BN_one(rr);

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_mod_exp_mont` 
      534.           return (0);
      535.       a->neg = 0;
      536.       a->d[0] = w;
                 ^
      537.       a->top = (w ? 1 : 0);
      538.       bn_check_top(a);
