crypto/rsa/rsa_gen.c:160: error: BUFFER_OVERRUN_L1
  Offset: 13 Size: 13 by call to `BN_mod_inverse`.
Showing all 10 steps of the trace


crypto/rsa/rsa_gen.c:81:2: Assignment
79.   	r2= &(ctx->bn[2]);
80.   	r3= &(ctx->bn[3]);
81.   	ctx->tos+=4;
       ^
82.   
83.   	bitsp=(bits+1)/2;

crypto/rsa/rsa_gen.c:160:9: Call
158.   		}
159.   */
160.   	rsa->d=BN_mod_inverse(NULL,rsa->e,r0,ctx2);	/* d */
               ^
161.   	if (rsa->d == NULL) goto err;
162.   

crypto/bn/bn_gcd.c:143:1: Parameter `ctx->tos`
  141.   
  142.   /* solves ax == 1 (mod n) */
  143. > BIGNUM *BN_mod_inverse(BIGNUM *in, BIGNUM *a, const BIGNUM *n, BN_CTX *ctx)
  144.   	{
  145.   	BIGNUM *A,*B,*X,*Y,*M,*D,*R;

crypto/bn/bn_gcd.c:158:2: Assignment
  156.   	M= &(ctx->bn[ctx->tos+4]);
  157.   	Y= &(ctx->bn[ctx->tos+5]);
  158.   	ctx->tos+=6;
          ^
  159.   	if (in == NULL)
  160.   		R=BN_new();

crypto/bn/bn_gcd.c:173:8: Call
  171.   	while (!BN_is_zero(B))
  172.   		{
  173.   		if (!BN_div(D,M,A,B,ctx)) goto err;
                ^
  174.   		T=A;
  175.   		A=B;

crypto/bn/bn_div.c:121:1: <Offset trace>
119.   #else
120.   
121. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
122.   	   BN_CTX *ctx)
123.   	{

crypto/bn/bn_div.c:121:1: Parameter `ctx->tos`
    119.   #else
    120.   
    121. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    122.   	   BN_CTX *ctx)
    123.   	{

crypto/bn/bn_div.c:121:1: <Length trace>
119.   #else
120.   
121. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
122.   	   BN_CTX *ctx)
123.   	{

crypto/bn/bn_div.c:121:1: Parameter `ctx->bn[*]`
    119.   #else
    120.   
    121. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    122.   	   BN_CTX *ctx)
    123.   	{

crypto/bn/bn_div.c:152:3: Array access: Offset: 13 Size: 13 by call to `BN_mod_inverse` 
    150.   	sdiv= &(ctx->bn[ctx->tos+2]);
    151.   	if (dv == NULL)
    152.   		res= &(ctx->bn[ctx->tos+3]);
             ^
    153.   	else	res=dv;
    154.   
