test/rsa_sp800_56b_test.c:222: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `rsa_check_prime_factor_range`.
Showing all 14 steps of the trace


test/rsa_sp800_56b_test.c:222:14: Call
220.             && TEST_ptr(ctx = BN_CTX_new())
221.             && TEST_true(BN_set_word(p, 0xA))
222.             && TEST_false(rsa_check_prime_factor_range(p, 8, ctx))
                    ^
223.             && TEST_true(BN_set_word(p, 0x10))
224.             && TEST_false(rsa_check_prime_factor_range(p, 8, ctx))

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:171:1: Parameter `ctx->stack.depth`
    169.   }
    170.   
    171. > void BN_CTX_start(BN_CTX *ctx)
    172.   {
    173.       CTXDBG("ENTER BN_CTX_start()", ctx);

crypto/rsa/rsa_sp800_56b_check.c:96:11: Call
  94.   
  95.       BN_CTX_start(ctx);
  96.       tmp = BN_CTX_get(ctx);
                  ^
  97.       low = BN_CTX_get(ctx);
  98.   

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

crypto/rsa/rsa_sp800_56b_check.c:97:11: Call
  95.       BN_CTX_start(ctx);
  96.       tmp = BN_CTX_get(ctx);
  97.       low = BN_CTX_get(ctx);
                   ^
  98.   
  99.       /* set low = (√2)(2^(nbits/2 - 1) */

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

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:185:1: Parameter `ctx->stack.depth`
    183.   }
    184.   
    185. > void BN_CTX_end(BN_CTX *ctx)
    186.   {
    187.       CTXDBG("ENTER BN_CTX_end()", ctx);

crypto/bn/bn_ctx.c:191:27: Call
    189.           ctx->err_stack--;
    190.       else {
    191.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                     ^
    192.           /* Does this stack frame have anything to release? */
    193.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:266:1: <LHS trace>
264.   }
265.   
266. > static unsigned int BN_STACK_pop(BN_STACK *st)
267.   {
268.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:266:1: Parameter `st->depth`
      264.   }
      265.   
      266. > static unsigned int BN_STACK_pop(BN_STACK *st)
      267.   {
      268.       return st->indexes[--(st->depth)];

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