crypto/rsa/rsa_gen.c:134: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_gcd`.
Showing all 12 steps of the trace


crypto/rsa/rsa_gen.c:96:2: Call
94.   	ctx2=BN_CTX_new();
95.   	if (ctx2 == NULL) goto err;
96.   	BN_CTX_start(ctx);
       ^
97.   	r0 = BN_CTX_get(ctx);
98.   	r1 = 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_gen.c:134:8: Call
132.   			goto err;
133.   		if (!BN_sub(r2,rsa->p,BN_value_one())) goto err;
134.   		if (!BN_gcd(r1,r2,rsa->e,ctx)) goto err;
              ^
135.   		if (BN_is_one(r1)) break;
136.   		if(!BN_GENCB_call(cb, 2, n++))

crypto/bn/bn_gcd.c:117:1: Parameter `ctx->stack.depth`
  115.   static BIGNUM *euclid(BIGNUM *a, BIGNUM *b);
  116.   
  117. > int BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx)
  118.   	{
  119.   	BIGNUM *a,*b,*t;

crypto/bn/bn_gcd.c:125:2: Call
  123.   	bn_check_top(in_b);
  124.   
  125.   	BN_CTX_start(ctx);
          ^
  126.   	a = BN_CTX_get(ctx);
  127.   	b = 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_gcd.c:142:2: Call
  140.   	ret=1;
  141.   err:
  142.   	BN_CTX_end(ctx);
          ^
  143.   	bn_check_top(r);
  144.   	return(ret);

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_gcd` 
      351.   static unsigned int BN_STACK_pop(BN_STACK *st)
      352.   	{
      353.   	return st->indexes[--(st->depth)];
                     ^
      354.   	}
      355.   
