crypto/dsa/dsa_ossl.c:143: error: BUFFER_OVERRUN_L3
  Offset: [-1, 5] Size: 12 by call to `BN_mod_mul`.
Showing all 26 steps of the trace


crypto/dsa/dsa_ossl.c:121:6: Call
119.   		}
120.   
121.   	ctx=BN_CTX_new();
            ^
122.   	if (ctx == NULL) goto err;
123.   

crypto/bn/bn_ctx.c:79:2: Call
  77.   		}
  78.   
  79.   	BN_CTX_init(ret);
         ^
  80.   	ret->flags=BN_FLG_MALLOCED;
  81.   	return(ret);

crypto/bn/bn_ctx.c:89:2: Assignment
    87.   	ctx->tos = 0;
    88.   	ctx->flags = 0;
    89.   	ctx->depth = 0;
           ^
    90.   	ctx->too_many = 0;
    91.   	for (i = 0; i < BN_CTX_NUM; i++)

crypto/dsa/dsa_ossl.c:139:7: Call
137.   
138.   	/* Compute  s = inv(k) (m + xr) mod q */
139.   	if (!BN_mod_mul(&xr,dsa->priv_key,r,dsa->q,ctx)) goto err;/* s = xr */
             ^
140.   	if (!BN_add(s, &xr, &m)) goto err;		/* s = m + xr */
141.   	if (BN_cmp(s,dsa->q) > 0)

crypto/bn/bn_mod.c:178:1: Parameter `ctx->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:2: Call
  186.   	bn_check_top(m);
  187.   
  188.   	BN_CTX_start(ctx);
          ^
  189.   	if ((t = BN_CTX_get(ctx)) == NULL) goto err;
  190.   	if (a == b)

crypto/bn/bn_ctx.c:108:1: Parameter `ctx->depth`
    106.   	}
    107.   
    108. > void BN_CTX_start(BN_CTX *ctx)
    109.   	{
    110.   	if (ctx->depth < BN_CTX_NUM_POS)

crypto/bn/bn_ctx.c:112:2: Assignment
    110.   	if (ctx->depth < BN_CTX_NUM_POS)
    111.   		ctx->pos[ctx->depth] = ctx->tos;
    112.   	ctx->depth++;
            ^
    113.   	}
    114.   

crypto/bn/bn_mod.c:189:11: Call
  187.   
  188.   	BN_CTX_start(ctx);
  189.   	if ((t = BN_CTX_get(ctx)) == NULL) goto err;
                   ^
  190.   	if (a == b)
  191.   		{ if (!BN_sqr(t,a,ctx)) goto err; }

crypto/bn/bn_ctx.c:116:1: Parameter `ctx->depth`
    114.   
    115.   
    116. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    117.   	{
    118.   	/* Note: If BN_CTX_get is ever changed to allocate BIGNUMs dynamically,

crypto/bn/bn_mod.c:197:2: Call
  195.   	ret=1;
  196.   err:
  197.   	BN_CTX_end(ctx);
          ^
  198.   	return(ret);
  199.   	}

crypto/bn/bn_ctx.c:136:1: Parameter `ctx->depth`
    134.   	}
    135.   
    136. > void BN_CTX_end(BN_CTX *ctx)
    137.   	{
    138.   	if (ctx == NULL) return;

crypto/dsa/dsa_ossl.c:143:7: Call
141.   	if (BN_cmp(s,dsa->q) > 0)
142.   		BN_sub(s,s,dsa->q);
143.   	if (!BN_mod_mul(s,s,kinv,dsa->q,ctx)) goto err;
             ^
144.   
145.   	ret=DSA_SIG_new();

crypto/bn/bn_mod.c:178:1: Parameter `ctx->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:2: Call
  186.   	bn_check_top(m);
  187.   
  188.   	BN_CTX_start(ctx);
          ^
  189.   	if ((t = BN_CTX_get(ctx)) == NULL) goto err;
  190.   	if (a == b)

crypto/bn/bn_ctx.c:108:1: Parameter `ctx->depth`
    106.   	}
    107.   
    108. > void BN_CTX_start(BN_CTX *ctx)
    109.   	{
    110.   	if (ctx->depth < BN_CTX_NUM_POS)

crypto/bn/bn_ctx.c:112:2: Assignment
    110.   	if (ctx->depth < BN_CTX_NUM_POS)
    111.   		ctx->pos[ctx->depth] = ctx->tos;
    112.   	ctx->depth++;
            ^
    113.   	}
    114.   

crypto/bn/bn_mod.c:189:11: Call
  187.   
  188.   	BN_CTX_start(ctx);
  189.   	if ((t = BN_CTX_get(ctx)) == NULL) goto err;
                   ^
  190.   	if (a == b)
  191.   		{ if (!BN_sqr(t,a,ctx)) goto err; }

crypto/bn/bn_ctx.c:116:1: Parameter `ctx->depth`
    114.   
    115.   
    116. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    117.   	{
    118.   	/* Note: If BN_CTX_get is ever changed to allocate BIGNUMs dynamically,

crypto/bn/bn_mod.c:197:2: Call
  195.   	ret=1;
  196.   err:
  197.   	BN_CTX_end(ctx);
          ^
  198.   	return(ret);
  199.   	}

crypto/bn/bn_ctx.c:136:1: <Offset trace>
134.   	}
135.   
136. > void BN_CTX_end(BN_CTX *ctx)
137.   	{
138.   	if (ctx == NULL) return;

crypto/bn/bn_ctx.c:136:1: Parameter `ctx->depth`
    134.   	}
    135.   
    136. > void BN_CTX_end(BN_CTX *ctx)
    137.   	{
    138.   	if (ctx == NULL) return;

crypto/bn/bn_ctx.c:147:2: Assignment
    145.   
    146.   	ctx->too_many = 0;
    147.   	ctx->depth--;
            ^
    148.   	if (ctx->depth < BN_CTX_NUM_POS)
    149.   		ctx->tos = ctx->pos[ctx->depth];

crypto/bn/bn_ctx.c:136:1: <Length trace>
134.   	}
135.   
136. > void BN_CTX_end(BN_CTX *ctx)
137.   	{
138.   	if (ctx == NULL) return;

crypto/bn/bn_ctx.c:136:1: Parameter `ctx->pos[*]`
    134.   	}
    135.   
    136. > void BN_CTX_end(BN_CTX *ctx)
    137.   	{
    138.   	if (ctx == NULL) return;

crypto/bn/bn_ctx.c:149:14: Array access: Offset: [-1, 5] Size: 12 by call to `BN_mod_mul` 
    147.   	ctx->depth--;
    148.   	if (ctx->depth < BN_CTX_NUM_POS)
    149.   		ctx->tos = ctx->pos[ctx->depth];
                        ^
    150.   	}
