crypto/rsa/rsa_eay.c:629: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_div`.
Showing all 19 steps of the trace


crypto/rsa/rsa_eay.c:600:1: Parameter `ctx->stack.depth`
598.   	}
599.   
600. > static int RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
601.   	{
602.   	BIGNUM *r1,*m1,*vrfy;

crypto/rsa/rsa_eay.c:605:2: Call
603.   	int ret=0;
604.   
605.   	BN_CTX_start(ctx);
        ^
606.   	r1 = BN_CTX_get(ctx);
607.   	m1 = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:254:1: Parameter `ctx->stack.depth`
  252.   	}
  253.   
  254. > void BN_CTX_start(BN_CTX *ctx)
  255.   	{
  256.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/rsa/rsa_eay.c:614:7: Call
612.   	MONT_HELPER(rsa, ctx, n, rsa->flags & RSA_FLAG_CACHE_PUBLIC, goto err);
613.   
614.   	if (!BN_mod(r1,I,rsa->q,ctx)) goto err;
             ^
615.   	if (!rsa->meth->bn_mod_exp(m1,r1,rsa->dmq1,rsa->q,ctx,
616.   		rsa->_method_mod_q)) goto err;

crypto/bn/bn_div.c:179:1: Parameter `ctx->stack.depth`
  177.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
  178.    */
  179. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
  180.   	   BN_CTX *ctx)
  181.   	{

crypto/rsa/rsa_eay.c:618:7: Call
616.   		rsa->_method_mod_q)) goto err;
617.   
618.   	if (!BN_mod(r1,I,rsa->p,ctx)) goto err;
             ^
619.   	if (!rsa->meth->bn_mod_exp(r0,r1,rsa->dmp1,rsa->p,ctx,
620.   		rsa->_method_mod_p)) goto err;

crypto/bn/bn_div.c:179:1: Parameter `ctx->stack.depth`
  177.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
  178.    */
  179. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
  180.   	   BN_CTX *ctx)
  181.   	{

crypto/rsa/rsa_eay.c:628:7: Call
626.   		if (!BN_add(r0,r0,rsa->p)) goto err;
627.   
628.   	if (!BN_mul(r1,r0,rsa->iqmp,ctx)) goto err;
             ^
629.   	if (!BN_mod(r0,r1,rsa->p,ctx)) goto err;
630.   	/* If p < q it is occasionally possible for the correction of

crypto/bn/bn_mul.c:941:1: Parameter `ctx->stack.depth`
  939.   #endif /* BN_RECURSION */
  940.   
  941. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
  942.   	{
  943.   	int ret=0;

crypto/rsa/rsa_eay.c:629:7: Call
627.   
628.   	if (!BN_mul(r1,r0,rsa->iqmp,ctx)) goto err;
629.   	if (!BN_mod(r0,r1,rsa->p,ctx)) goto err;
             ^
630.   	/* If p < q it is occasionally possible for the correction of
631.            * adding 'p' if r0 is negative above to leave the result still

crypto/bn/bn_div.c:179:1: Parameter `ctx->stack.depth`
  177.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
  178.    */
  179. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
  180.   	   BN_CTX *ctx)
  181.   	{

crypto/bn/bn_div.c:209:2: Call
  207.   		}
  208.   
  209.   	BN_CTX_start(ctx);
          ^
  210.   	tmp=BN_CTX_get(ctx);
  211.   	snum=BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:254:1: Parameter `ctx->stack.depth`
    252.   	}
    253.   
    254. > void BN_CTX_start(BN_CTX *ctx)
    255.   	{
    256.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_div.c:399:2: Call
  397.   	if (rm)
  398.   		bn_check_top(rm);
  399.   	BN_CTX_end(ctx);
          ^
  400.   	return(0);
  401.   	}

crypto/bn/bn_ctx.c:270:1: Parameter `ctx->stack.depth`
    268.   	}
    269.   
    270. > void BN_CTX_end(BN_CTX *ctx)
    271.   	{
    272.   	CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:277:21: Call
    275.   	else
    276.   		{
    277.   		unsigned int fp = BN_STACK_pop(&ctx->stack);
                               ^
    278.   		/* Does this stack frame have anything to release? */
    279.   		if(fp < ctx->used)

crypto/bn/bn_ctx.c:351:1: <LHS trace>
349.   	}
350.   
351. > static unsigned int BN_STACK_pop(BN_STACK *st)
352.   	{
353.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:351:1: Parameter `st->depth`
      349.   	}
      350.   
      351. > static unsigned int BN_STACK_pop(BN_STACK *st)
      352.   	{
      353.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:353:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_div` 
      351.   static unsigned int BN_STACK_pop(BN_STACK *st)
      352.   	{
      353.   	return st->indexes[--(st->depth)];
                     ^
      354.   	}
      355.   
