crypto/dsa/dsa_key.c:101: error: BUFFER_OVERRUN_L3
  Offset: [-3, +oo] Size: 12 by call to `BN_mod_exp`.
Showing all 19 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:180:1: Parameter `ctx->depth`
  178.   
  179.   
  180. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  181.   	       BN_CTX *ctx)
  182.   	{

crypto/bn/bn_exp.c:209:9: Call
  207.   #endif
  208.   #ifdef RECP_MUL_MOD
  209.   		{ ret=BN_mod_exp_recp(r,a,p,m,ctx); }
                 ^
  210.   #else
  211.   		{ ret=BN_mod_exp_simple(r,a,p,m,ctx); }

crypto/bn/bn_exp.c:218:1: Parameter `ctx->depth`
    216.   
    217.   
    218. > int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
    219.   		    const BIGNUM *m, BN_CTX *ctx)
    220.   	{

crypto/bn/bn_exp.c:235:2: Call
    233.   		}
    234.   
    235.   	BN_CTX_start(ctx);
            ^
    236.   	if ((aa = BN_CTX_get(ctx)) == NULL) goto err;
    237.   

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:236:12: Call
    234.   
    235.   	BN_CTX_start(ctx);
    236.   	if ((aa = BN_CTX_get(ctx)) == NULL) goto err;
                      ^
    237.   
    238.   	BN_RECP_CTX_init(&recp);

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:321:2: Call
    319.   	ret=1;
    320.   err:
    321.   	BN_CTX_end(ctx);
            ^
    322.   	for (i=0; i<ts; i++)
    323.   		BN_clear_free(&(val[i]));

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: [-3, +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.   	}
