crypto/dsa/dsa_key.c:114: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mod_exp`.
Showing all 16 steps of the trace


crypto/dsa/dsa_key.c:75:1: Parameter `dsa->pub_key->d`
73.   }
74.   
75. > static int dsa_builtin_keygen(DSA *dsa)
76.   {
77.       int ok = 0;

crypto/dsa/dsa_key.c:114:14: Call
112.           }
113.   
114.           if (!BN_mod_exp(pub_key, dsa->g, prk, dsa->p, ctx)) {
                    ^
115.               BN_free(local_prk);
116.               goto err;

crypto/bn/bn_exp.c:191:1: Parameter `*r->d`
  189.   }
  190.   
  191. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  192.                  BN_CTX *ctx)
  193.   {

crypto/bn/bn_exp.c:248:19: Call
  246.               && (BN_get_flags(p, BN_FLG_CONSTTIME) == 0)) {
  247.               BN_ULONG A = a->d[0];
  248.               ret = BN_mod_exp_mont_word(r, A, p, m, ctx, NULL);
                           ^
  249.           } else
  250.   # endif

crypto/bn/bn_exp.c:1152:1: Parameter `*rr->d`
    1150.   }
    1151.   
    1152. > int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
    1153.                            const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
    1154.   {

crypto/bn/bn_exp.c:1287:14: Call
    1285.               goto err;
    1286.       } else {
    1287.           if (!BN_from_montgomery(rr, r, mont, ctx))
                         ^
    1288.               goto err;
    1289.       }

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