crypto/dsa/dsa_ossl.c:92: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 67108856] by call to `dsa_sign_setup`.
Showing all 17 steps of the trace


crypto/dsa/dsa_ossl.c:59:1: Parameter `dsa->p->top`
57.   }
58.   
59. > static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
60.   {
61.       BIGNUM *kinv = NULL;

crypto/dsa/dsa_ossl.c:92:10: Call
90.   
91.    redo:
92.       if (!dsa_sign_setup(dsa, ctx, &kinv, &ret->r, dgst, dlen))
               ^
93.           goto err;
94.   

crypto/dsa/dsa_ossl.c:175:1: Parameter `dsa->p->top`
  173.   }
  174.   
  175. > static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in,
  176.                             BIGNUM **kinvp, BIGNUM **rp,
  177.                             const unsigned char *dgst, int dlen)

crypto/dsa/dsa_ossl.c:226:14: Call
  224.   
  225.       if (dsa->flags & DSA_FLAG_CACHE_MONT_P) {
  226.           if (!BN_MONT_CTX_set_locked(&dsa->method_mont_p,
                      ^
  227.                                       dsa->lock, dsa->p, ctx))
  228.               goto err;

crypto/bn/bn_mont.c:393:1: Parameter `mod->top`
    391.   }
    392.   
    393. > BN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_RWLOCK *lock,
    394.                                       const BIGNUM *mod, BN_CTX *ctx)
    395.   {

crypto/bn/bn_mont.c:415:10: Call
    413.       if (ret == NULL)
    414.           return NULL;
    415.       if (!BN_MONT_CTX_set(ret, mod, ctx)) {
                    ^
    416.           BN_MONT_CTX_free(ret);
    417.           return NULL;

crypto/bn/bn_mont.c:233:1: Parameter `mod->top`
      231.   }
      232.   
      233. > int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
      234.   {
      235.       int ret = 0;

crypto/bn/bn_mont.c:238:9: Call
      236.       BIGNUM *Ri, *R;
      237.   
      238.       if (BN_is_zero(mod))
                     ^
      239.           return 0;
      240.   

crypto/bn/bn_lib.c:846:1: Parameter `a->top`
        844.   }
        845.   
        846. > int BN_is_zero(const BIGNUM *a)
        847.   {
        848.       return a->top == 0;

crypto/bn/bn_mont.c:245:10: Call
      243.           goto err;
      244.       R = &(mont->RR);            /* grab RR as a temp */
      245.       if (!BN_copy(&(mont->N), mod))
                      ^
      246.           goto err;               /* Set N */
      247.       if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0)

crypto/bn/bn_lib.c:280:1: <Offset trace>
278.   }
279.   
280. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
281.   {
282.       bn_check_top(b);

crypto/bn/bn_lib.c:280:1: Parameter `b->top`
        278.   }
        279.   
        280. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
        281.   {
        282.       bn_check_top(b);

crypto/bn/bn_lib.c:280:1: <Length trace>
278.   }
279.   
280. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
281.   {
282.       bn_check_top(b);

crypto/bn/bn_lib.c:280:1: Parameter `*a->d`
        278.   }
        279.   
        280. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
        281.   {
        282.       bn_check_top(b);

crypto/bn/bn_lib.c:286:9: Call
        284.       if (a == b)
        285.           return a;
        286.       if (bn_wexpand(a, b->top) == NULL)
                       ^
        287.           return NULL;
        288.   

crypto/bn/bn_lib.c:942:1: Parameter `*a->d`
          940.   }
          941.   
          942. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
          943.   {
          944.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:290:9: Array access: Offset added: [8, +oo] Size: [0, 67108856] by call to `dsa_sign_setup` 
        288.   
        289.       if (b->top > 0)
        290.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                       ^
        291.   
        292.       a->neg = b->neg;
