crypto/dsa/dsa_ossl.c:183: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: [1, +oo] by call to `BN_mod_mul`.
Showing all 17 steps of the trace


crypto/dsa/dsa_ossl.c:162:14: Call
160.    redo:
161.       if ((dsa->kinv == NULL) || (dsa->r == NULL)) {
162.           if (!dsa_sign_setup(dsa, ctx, &kinv, &r, dgst, dlen))
                    ^
163.               goto err;
164.       } else {

crypto/dsa/dsa_ossl.c:229:1: Parameter `ctx_in->stack.depth`
  227.   }
  228.   
  229. > static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in,
  230.                             BIGNUM **kinvp, BIGNUM **rp,
  231.                             const unsigned char *dgst, int dlen)

crypto/dsa/dsa_ossl.c:183:10: Call
181.   
182.       /* Compute  s = inv(k) (m + xr) mod q */
183.       if (!BN_mod_mul(xr, dsa->priv_key, r, dsa->q, ctx))
                ^
184.           goto err;               /* s = xr */
185.       if (!BN_add(s, xr, m))

crypto/bn/bn_mod.c:178:1: Parameter `ctx->stack.depth`
  176.   
  177.   /* slow but works */
  178. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  179.                  BN_CTX *ctx)
  180.   {

crypto/bn/bn_mod.c:188:5: Call
  186.       bn_check_top(m);
  187.   
  188.       BN_CTX_start(ctx);
             ^
  189.       if ((t = BN_CTX_get(ctx)) == NULL)
  190.           goto err;

crypto/bn/bn_ctx.c:235:1: Parameter `ctx->stack.depth`
    233.   }
    234.   
    235. > void BN_CTX_start(BN_CTX *ctx)
    236.   {
    237.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_mod.c:195:14: Call
  193.               goto err;
  194.       } else {
  195.           if (!BN_mul(t, a, b, ctx))
                      ^
  196.               goto err;
  197.       }

crypto/bn/bn_mul.c:908:5: Call
    906.       top = al + bl;
    907.   
    908.       BN_CTX_start(ctx);
               ^
    909.       if ((r == a) || (r == b)) {
    910.           if ((rr = BN_CTX_get(ctx)) == NULL)

crypto/bn/bn_ctx.c:235:1: Parameter `*ctx->stack.indexes`
      233.   }
      234.   
      235. > void BN_CTX_start(BN_CTX *ctx)
      236.   {
      237.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_mul.c:1032:5: Call
    1030.    err:
    1031.       bn_check_top(r);
    1032.       BN_CTX_end(ctx);
                ^
    1033.       return (ret);
    1034.   }

crypto/bn/bn_ctx.c:249:1: Parameter `*ctx->stack.indexes`
      247.   }
      248.   
      249. > void BN_CTX_end(BN_CTX *ctx)
      250.   {
      251.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:255:27: Call
      253.           ctx->err_stack--;
      254.       else {
      255.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                       ^
      256.           /* Does this stack frame have anything to release? */
      257.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:325:1: <Offset trace>
323.   }
324.   
325. > static unsigned int BN_STACK_pop(BN_STACK *st)
326.   {
327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:325:1: Parameter `st->depth`
        323.   }
        324.   
        325. > static unsigned int BN_STACK_pop(BN_STACK *st)
        326.   {
        327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:325:1: <Length trace>
323.   }
324.   
325. > static unsigned int BN_STACK_pop(BN_STACK *st)
326.   {
327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:325:1: Parameter `*st->indexes`
        323.   }
        324.   
        325. > static unsigned int BN_STACK_pop(BN_STACK *st)
        326.   {
        327.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:327:12: Array access: Offset: [-1, +oo] Size: [1, +oo] by call to `BN_mod_mul` 
        325.   static unsigned int BN_STACK_pop(BN_STACK *st)
        326.   {
        327.       return st->indexes[--(st->depth)];
                          ^
        328.   }
        329.   
