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


crypto/rsa/rsa_sp800_56b_check.c:124:1: Parameter `ctx->stack.depth`
122.    * See SP800-5bBr1 6.4.1.2.3 Step 5 (a to d) & (e to h).
123.    */
124. > int rsa_check_prime_factor(BIGNUM *p, BIGNUM *e, int nbits, BN_CTX *ctx)
125.   {
126.       int checks = bn_rsa_fips186_4_prime_MR_min_checks(nbits);

crypto/rsa/rsa_sp800_56b_check.c:131:9: Call
129.   
130.       /* (Steps 5 a-b) prime test */
131.       if (BN_is_prime_fasttest_ex(p, checks, ctx, 1, NULL) != 1
               ^
132.               /* (Step 5c) (√2)(2^(nbits/2 - 1) <= p <= 2^(nbits/2 - 1) */
133.               || rsa_check_prime_factor_range(p, nbits, ctx) != 1)

crypto/bn/bn_prime.c:203:1: Parameter `ctx->stack.depth`
  201.   
  202.   /* See FIPS 186-4 C.3.1 Miller Rabin Probabilistic Primality Test. */
  203. > int BN_is_prime_fasttest_ex(const BIGNUM *w, int checks, BN_CTX *ctx,
  204.                               int do_trial_division, BN_GENCB *cb)
  205.   {

crypto/rsa/rsa_sp800_56b_check.c:133:16: Call
131.       if (BN_is_prime_fasttest_ex(p, checks, ctx, 1, NULL) != 1
132.               /* (Step 5c) (√2)(2^(nbits/2 - 1) <= p <= 2^(nbits/2 - 1) */
133.               || rsa_check_prime_factor_range(p, nbits, ctx) != 1)
                      ^
134.           return 0;
135.   

crypto/rsa/rsa_sp800_56b_check.c:84:1: Parameter `ctx->stack.depth`
  82.    *   0xFFFFFFFF_FFFF.......................FFF
  83.    */
  84. > int rsa_check_prime_factor_range(const BIGNUM *p, int nbits, BN_CTX *ctx)
  85.   {
  86.       int ret = 0;

crypto/rsa/rsa_sp800_56b_check.c:95:5: Call
  93.           return 0;
  94.   
  95.       BN_CTX_start(ctx);
            ^
  96.       tmp = BN_CTX_get(ctx);
  97.       low = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:194:1: Parameter `ctx->stack.depth`
    192.   }
    193.   
    194. > void BN_CTX_start(BN_CTX *ctx)
    195.   {
    196.       CTXDBG("ENTER BN_CTX_start()", ctx);

crypto/rsa/rsa_sp800_56b_check.c:113:5: Call
  111.       ret = 1;
  112.   err:
  113.       BN_CTX_end(ctx);
             ^
  114.       return ret;
  115.   }

crypto/bn/bn_ctx.c:208:1: Parameter `ctx->stack.depth`
    206.   }
    207.   
    208. > void BN_CTX_end(BN_CTX *ctx)
    209.   {
    210.       if (ctx == NULL)

crypto/bn/bn_ctx.c:216:27: Call
    214.           ctx->err_stack--;
    215.       else {
    216.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                     ^
    217.           /* Does this stack frame have anything to release? */
    218.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:298:1: <LHS trace>
296.   }
297.   
298. > static unsigned int BN_STACK_pop(BN_STACK *st)
299.   {
300.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:298:1: Parameter `st->depth`
      296.   }
      297.   
      298. > static unsigned int BN_STACK_pop(BN_STACK *st)
      299.   {
      300.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:300:12: Binary operation: ([0, +oo] - 1):unsigned32 by call to `rsa_check_prime_factor_range` 
      298.   static unsigned int BN_STACK_pop(BN_STACK *st)
      299.   {
      300.       return st->indexes[--(st->depth)];
                        ^
      301.   }
      302.   
