crypto/rsa/rsa_gen.c:143: 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:106:5: Call
104.       if (ctx == NULL)
105.           goto err;
106.       BN_CTX_start(ctx);
           ^
107.       r0 = BN_CTX_get(ctx);
108.       r1 = BN_CTX_get(ctx);

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

crypto/rsa/rsa_gen.c:143:14: Call
141.           if (!BN_sub(r2, rsa->p, BN_value_one()))
142.               goto err;
143.           if (!BN_gcd(r1, r2, rsa->e, ctx))
                    ^
144.               goto err;
145.           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:253:1: Parameter `ctx->stack.depth`
    251.   }
    252.   
    253. > void BN_CTX_start(BN_CTX *ctx)
    254.   {
    255.       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:267:1: Parameter `ctx->stack.depth`
    265.   }
    266.   
    267. > void BN_CTX_end(BN_CTX *ctx)
    268.   {
    269.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:273:27: Call
    271.           ctx->err_stack--;
    272.       else {
    273.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                     ^
    274.           /* Does this stack frame have anything to release? */
    275.           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:12: 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.   
