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


crypto/rsa/rsa_sp800_56b_check.c:226:15: Call
224.       return BN_sub(p1, p, BN_value_one())    /* p-1 */
225.              && BN_sub(q1, q, BN_value_one()) /* q-1 */
226.              && BN_mul(p1q1, p1, q1, ctx)     /* (p-1)(q-1) */
                     ^
227.              && BN_gcd(gcd, p1, q1, ctx)
228.              && BN_div(lcm, NULL, p1q1, gcd, ctx); /* LCM((p-1, q-1)) */

crypto/bn/bn_mul.c:499:15: Call
  497.   int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
  498.   {
  499.       int ret = bn_mul_fixed_top(r, a, b, ctx);
                       ^
  500.   
  501.       bn_correct_top(r);

crypto/bn/bn_mul.c:507:1: Parameter `ctx->pool.used`
    505.   }
    506.   
    507. > int bn_mul_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    508.   {
    509.       int ret = 0;

crypto/rsa/rsa_sp800_56b_check.c:227:15: Call
225.              && BN_sub(q1, q, BN_value_one()) /* q-1 */
226.              && BN_mul(p1q1, p1, q1, ctx)     /* (p-1)(q-1) */
227.              && BN_gcd(gcd, p1, q1, ctx)
                     ^
228.              && BN_div(lcm, NULL, p1q1, gcd, ctx); /* LCM((p-1, q-1)) */
229.   }

crypto/bn/bn_gcd.c:15:1: Parameter `ctx->pool.used`
  13.   static BIGNUM *euclid(BIGNUM *a, BIGNUM *b);
  14.   
  15. > int BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx)
  16.   {
  17.       BIGNUM *a, *b, *t;

crypto/bn/bn_gcd.c:24:9: Call
  22.   
  23.       BN_CTX_start(ctx);
  24.       a = BN_CTX_get(ctx);
                ^
  25.       b = BN_CTX_get(ctx);
  26.       if (b == NULL)

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->pool.used`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

crypto/bn/bn_gcd.c:25:9: Call
  23.       BN_CTX_start(ctx);
  24.       a = BN_CTX_get(ctx);
  25.       b = BN_CTX_get(ctx);
                ^
  26.       if (b == NULL)
  27.           goto err;

crypto/bn/bn_ctx.c:202:1: Parameter `ctx->pool.used`
    200.   }
    201.   
    202. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    203.   {
    204.       BIGNUM *ret;

crypto/bn/bn_gcd.c:49:5: Call
  47.       ret = 1;
  48.    err:
  49.       BN_CTX_end(ctx);
            ^
  50.       bn_check_top(r);
  51.       return ret;

crypto/bn/bn_ctx.c:185:1: Parameter `ctx->pool.used`
    183.   }
    184.   
    185. > void BN_CTX_end(BN_CTX *ctx)
    186.   {
    187.       CTXDBG("ENTER BN_CTX_end()", ctx);

crypto/bn/bn_ctx.c:194:13: Call
    192.           /* Does this stack frame have anything to release? */
    193.           if (fp < ctx->used)
    194.               BN_POOL_release(&ctx->pool, ctx->used - fp);
                       ^
    195.           ctx->used = fp;
    196.           /* Unjam "too_many" in case "get" had failed */

crypto/bn/bn_ctx.c:338:1: <LHS trace>
336.   }
337.   
338. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
339.   {
340.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:338:1: Parameter `p->used`
      336.   }
      337.   
      338. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
      339.   {
      340.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:340:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_gcd` 
      338.   static void BN_POOL_release(BN_POOL *p, unsigned int num)
      339.   {
      340.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;
                 ^
      341.   
      342.       p->used -= num;
