crypto/dsa/dsa_gen.c:669: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mod_exp_mont`.
Showing all 18 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:1138:10: Call
    1136.       } else
    1137.   #endif
    1138.       if (!BN_from_montgomery(rr, &tmp, mont, ctx))
                     ^
    1139.           goto err;
    1140.       ret = 1;

crypto/bn/bn_mont.c:268:1: Parameter `*ret->d`
      266.   #endif                          /* MONT_WORD */
      267.   
      268. > int BN_from_montgomery(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont,
      269.                          BN_CTX *ctx)
      270.   {

crypto/bn/bn_mont.c:277:16: Call
      275.       BN_CTX_start(ctx);
      276.       if ((t = BN_CTX_get(ctx)) && BN_copy(t, a))
      277.           retn = BN_from_montgomery_word(ret, t, mont);
                            ^
      278.       BN_CTX_end(ctx);
      279.   #else                           /* !MONT_WORD */

crypto/bn/bn_mont.c:237:14: <Offset trace>
235.               (BN_ULONG *)(((PTR_SIZE_INT) rp & ~m) | ((PTR_SIZE_INT) ap & m));
236.   
237.           for (i = 0, nl -= 4; i < nl; i += 4) {
                    ^
238.               BN_ULONG t1, t2, t3, t4;
239.   

crypto/bn/bn_mont.c:237:14: Assignment
        235.               (BN_ULONG *)(((PTR_SIZE_INT) rp & ~m) | ((PTR_SIZE_INT) ap & m));
        236.   
        237.           for (i = 0, nl -= 4; i < nl; i += 4) {
                            ^
        238.               BN_ULONG t1, t2, t3, t4;
        239.   

crypto/bn/bn_mont.c:177:1: <Length trace>
175.   
176.   #ifdef MONT_WORD
177. > static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont)
178.   {
179.       BIGNUM *n;

crypto/bn/bn_mont.c:177:1: Parameter `*ret->d`
        175.   
        176.   #ifdef MONT_WORD
        177. > static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont)
        178.   {
        179.       BIGNUM *n;

crypto/bn/bn_mont.c:214:9: Call
        212.       }
        213.   
        214.       if (bn_wexpand(ret, nl) == NULL)
                       ^
        215.           return (0);
        216.       ret->top = nl;

crypto/bn/bn_lib.c:995:1: Parameter `*a->d`
          993.   }
          994.   
          995. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
          996.   {
          997.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_mont.c:219:5: Assignment
        217.       ret->neg = r->neg;
        218.   
        219.       rp = ret->d;
                   ^
        220.       ap = &(r->d[nl]);
        221.   

crypto/bn/bn_mont.c:248:13: Array access: Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mod_exp_mont` 
        246.               rp[i + 0] = t1;
        247.               ap[i + 2] = 0;
        248.               rp[i + 1] = t2;
                           ^
        249.               ap[i + 3] = 0;
        250.               rp[i + 2] = t3;
