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


crypto/dsa/dsa_ossl.c:327:10: Call
325.        * Calculate W = inv(S) mod Q save W in u2
326.        */
327.       if ((BN_mod_inverse(u2, s, dsa->q, ctx)) == NULL)
                ^
328.           goto err;
329.   

crypto/bn/bn_gcd.c:124:1: Parameter `ctx->stack.depth`
  122.                                           BN_CTX *ctx);
  123.   
  124. > BIGNUM *BN_mod_inverse(BIGNUM *in,
  125.                          const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx)
  126.   {

crypto/bn/bn_gcd.c:129:10: Call
  127.       BIGNUM *rv;
  128.       int noinv;
  129.       rv = int_bn_mod_inverse(in, a, n, ctx, &noinv);
                  ^
  130.       if (noinv)
  131.           BNerr(BN_F_BN_MOD_INVERSE, BN_R_NO_INVERSE);

crypto/bn/bn_gcd.c:135:1: Parameter `ctx->stack.depth`
    133.   }
    134.   
    135. > BIGNUM *int_bn_mod_inverse(BIGNUM *in,
    136.                              const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx,
    137.                              int *pnoinv)

crypto/dsa/dsa_ossl.c:346:10: Call
344.   
345.       /* u2 = r * w mod q */
346.       if (!BN_mod_mul(u2, r, u2, dsa->q, ctx))
                ^
347.           goto err;
348.   

crypto/bn/bn_mod.c:128:1: Parameter `ctx->stack.depth`
  126.   
  127.   /* slow but works */
  128. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  129.                  BN_CTX *ctx)
  130.   {

crypto/bn/bn_mod.c:138:5: Call
  136.       bn_check_top(m);
  137.   
  138.       BN_CTX_start(ctx);
             ^
  139.       if ((t = BN_CTX_get(ctx)) == NULL)
  140.           goto err;

crypto/bn/bn_ctx.c:181:1: Parameter `ctx->stack.depth`
    179.   }
    180.   
    181. > void BN_CTX_start(BN_CTX *ctx)
    182.   {
    183.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_mod.c:142:14: Call
  140.           goto err;
  141.       if (a == b) {
  142.           if (!BN_sqr(t, a, ctx))
                      ^
  143.               goto err;
  144.       } else {

crypto/bn/bn_sqr.c:32:5: Call
    30.       }
    31.   
    32.       BN_CTX_start(ctx);
              ^
    33.       rr = (a != r) ? r : BN_CTX_get(ctx);
    34.       tmp = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:181:1: Parameter `*ctx->stack.indexes`
      179.   }
      180.   
      181. > void BN_CTX_start(BN_CTX *ctx)
      182.   {
      183.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_sqr.c:94:5: Call
    92.       bn_check_top(rr);
    93.       bn_check_top(tmp);
    94.       BN_CTX_end(ctx);
              ^
    95.       return ret;
    96.   }

crypto/bn/bn_ctx.c:195:1: Parameter `*ctx->stack.indexes`
      193.   }
      194.   
      195. > void BN_CTX_end(BN_CTX *ctx)
      196.   {
      197.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:201:27: Call
      199.           ctx->err_stack--;
      200.       else {
      201.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                       ^
      202.           /* Does this stack frame have anything to release? */
      203.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:274:1: <Offset trace>
272.   }
273.   
274. > static unsigned int BN_STACK_pop(BN_STACK *st)
275.   {
276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: Parameter `st->depth`
        272.   }
        273.   
        274. > static unsigned int BN_STACK_pop(BN_STACK *st)
        275.   {
        276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: <Length trace>
272.   }
273.   
274. > static unsigned int BN_STACK_pop(BN_STACK *st)
275.   {
276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: Parameter `*st->indexes`
        272.   }
        273.   
        274. > static unsigned int BN_STACK_pop(BN_STACK *st)
        275.   {
        276.       return st->indexes[--(st->depth)];

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