crypto/dsa/dsa_key.c:101: error: BUFFER_OVERRUN_L3
  Offset: [-2, +oo] Size: 12 by call to `BN_mod_exp`.
Showing all 23 steps of the trace


crypto/dsa/dsa_key.c:75:11: Call
73.   	BIGNUM *pub_key=NULL,*priv_key=NULL;
74.   
75.   	if ((ctx=BN_CTX_new()) == NULL) goto err;
                ^
76.   
77.   	if (dsa->priv_key == NULL)

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_key.c:101:7: Call
99.   		pub_key=dsa->pub_key;
100.   
101.   	if (!BN_mod_exp(pub_key,dsa->g,priv_key,dsa->p,ctx)) goto err;
             ^
102.   
103.   	dsa->priv_key=priv_key;

crypto/bn/bn_exp.c:154:1: Parameter `ctx->depth`
  152.   
  153.   
  154. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  155.   	       BN_CTX *ctx)
  156.   	{

crypto/bn/bn_exp.c:210:8: Call
  208.   			if (m->top == 1)
  209.   				A %= m->d[0]; /* make sure that A is reduced */
  210.   			ret=BN_mod_exp_mont_word(r,A,p,m,ctx,NULL);
                ^
  211.   			}
  212.   		else

crypto/bn/bn_exp.c:484:1: Parameter `ctx->depth`
    482.   	}
    483.   
    484. > int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
    485.                            const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
    486.   	{

crypto/bn/bn_exp.c:524:2: Call
    522.   		}
    523.   
    524.   	BN_CTX_start(ctx);
            ^
    525.   	d = BN_CTX_get(ctx);
    526.   	r = BN_CTX_get(ctx);

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_exp.c:525:6: Call
    523.   
    524.   	BN_CTX_start(ctx);
    525.   	d = BN_CTX_get(ctx);
                ^
    526.   	r = BN_CTX_get(ctx);
    527.   	t = BN_CTX_get(ctx);

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_exp.c:526:6: Call
    524.   	BN_CTX_start(ctx);
    525.   	d = BN_CTX_get(ctx);
    526.   	r = BN_CTX_get(ctx);
                ^
    527.   	t = BN_CTX_get(ctx);
    528.   	if (d == NULL || r == NULL || t == NULL) 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_exp.c:527:6: Call
    525.   	d = BN_CTX_get(ctx);
    526.   	r = BN_CTX_get(ctx);
    527.   	t = BN_CTX_get(ctx);
                ^
    528.   	if (d == NULL || r == NULL || t == NULL) goto err;
    529.   

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_exp.c:613:2: Call
    611.   err:
    612.   	if ((in_mont == NULL) && (mont != NULL)) BN_MONT_CTX_free(mont);
    613.   	BN_CTX_end(ctx);
            ^
    614.   	return(ret);
    615.   	}

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: [-2, +oo] Size: 12 by call to `BN_mod_exp` 
      147.   	ctx->depth--;
      148.   	if (ctx->depth < BN_CTX_NUM_POS)
      149.   		ctx->tos = ctx->pos[ctx->depth];
                          ^
      150.   	}
