crypto/dsa/dsa_ossl.c:405: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mod_exp2_mont`.
Showing all 15 steps of the trace


crypto/dsa/dsa_ossl.c:387:9: Call
385.            */
386.           dgst_len = (i >> 3);
387.       if (BN_bin2bn(dgst, dgst_len, u1) == NULL)
               ^
388.           goto err;
389.   

crypto/bn/bn_lib.c:542:1: Parameter `*ret->d`
  540.   }
  541.   
  542. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
  543.   {
  544.       unsigned int i, m;

crypto/dsa/dsa_ossl.c:405:5: Call
403.       }
404.   
405.       DSA_MOD_EXP(goto err, dsa, t1, dsa->g, u1, dsa->pub_key, u2, dsa->p, ctx,
           ^
406.                   mont);
407.       /* BN_copy(&u1,&t1); */

crypto/bn/bn_exp2.c:118:1: Parameter `*rr->d`
  116.   #define TABLE_SIZE      32
  117.   
  118. > int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1,
  119.                        const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m,
  120.                        BN_CTX *ctx, BN_MONT_CTX *in_mont)

crypto/bn/bn_exp2.c:294:10: Call
  292.           }
  293.       }
  294.       if (!BN_from_montgomery(rr, r, mont, ctx))
                  ^
  295.           goto err;
  296.       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_exp2_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;
