crypto/rsa/rsa_gen.c:125: 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:97:2: Call
95.   	ctx=BN_CTX_new();
96.   	if (ctx == NULL) goto err;
97.   	BN_CTX_start(ctx);
        ^
98.   	r0 = BN_CTX_get(ctx);
99.   	r1 = BN_CTX_get(ctx);

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

crypto/rsa/rsa_gen.c:125:8: Call
123.   			goto err;
124.   		if (!BN_sub(r2,rsa->p,BN_value_one())) goto err;
125.   		if (!BN_gcd(r1,r2,rsa->e,ctx)) goto err;
              ^
126.   		if (BN_is_one(r1)) break;
127.   		if(!BN_GENCB_call(cb, 2, n++))

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

crypto/bn/bn_gcd.c:127:2: Call
  125.   	bn_check_top(in_b);
  126.   
  127.   	BN_CTX_start(ctx);
          ^
  128.   	a = BN_CTX_get(ctx);
  129.   	b = BN_CTX_get(ctx);

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

crypto/bn/bn_gcd.c:144:2: Call
  142.   	ret=1;
  143.   err:
  144.   	BN_CTX_end(ctx);
          ^
  145.   	bn_check_top(r);
  146.   	return(ret);

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

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

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

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

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