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:204:1: Parameter `ctx->pool.used`
    202.   }
    203.   
    204. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    205.   {
    206.       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:204:1: Parameter `ctx->pool.used`
    202.   }
    203.   
    204. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    205.   {
    206.       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.       if (ctx == NULL)

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

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

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

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