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

crypto/bn/bn_ctx.c:236:1: Parameter `ctx->stack.depth`
  234.   }
  235.   
  236. > void BN_CTX_start(BN_CTX *ctx)
  237.   {
  238.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/rsa/rsa_gen.c:135:14: Call
133.           if (!BN_sub(r2, rsa->p, BN_value_one()))
134.               goto err;
135.           if (!BN_gcd(r1, r2, rsa->e, ctx))
                    ^
136.               goto err;
137.           if (BN_is_one(r1))

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:5: 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:236:1: Parameter `ctx->stack.depth`
    234.   }
    235.   
    236. > void BN_CTX_start(BN_CTX *ctx)
    237.   {
    238.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_gcd.c:151:5: Call
  149.       ret = 1;
  150.    err:
  151.       BN_CTX_end(ctx);
             ^
  152.       bn_check_top(r);
  153.       return (ret);

crypto/bn/bn_ctx.c:250:1: Parameter `ctx->stack.depth`
    248.   }
    249.   
    250. > void BN_CTX_end(BN_CTX *ctx)
    251.   {
    252.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:256:27: Call
    254.           ctx->err_stack--;
    255.       else {
    256.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                     ^
    257.           /* Does this stack frame have anything to release? */
    258.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:326:1: <LHS trace>
324.   }
325.   
326. > static unsigned int BN_STACK_pop(BN_STACK *st)
327.   {
328.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:326:1: Parameter `st->depth`
      324.   }
      325.   
      326. > static unsigned int BN_STACK_pop(BN_STACK *st)
      327.   {
      328.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:328:12: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_gcd` 
      326.   static unsigned int BN_STACK_pop(BN_STACK *st)
      327.   {
      328.       return st->indexes[--(st->depth)];
                        ^
      329.   }
      330.   
