crypto/bn/bntest.c:1954: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `bn_probable_prime_dh_coprime`.
Showing all 11 steps of the trace


crypto/bn/bntest.c:1945:1: Parameter `ctx->stack.depth`
1943.   
1944.   #ifndef OPENSSL_SYS_WIN32
1945. > int test_probable_prime_coprime(BIO *bp, BN_CTX *ctx)
1946.   {
1947.       int i, j, ret = 0;

crypto/bn/bntest.c:1954:14: Call
1952.   
1953.       for (i = 0; i < 1000; i++) {
1954.           if (!bn_probable_prime_dh_coprime(r, 1024, ctx))
                     ^
1955.               goto err;
1956.   

crypto/bn/bn_prime.c:430:1: Parameter `ctx->stack.depth`
  428.   }
  429.   
  430. > int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx)
  431.   {
  432.       int i;

crypto/bn/bn_prime.c:439:5: Call
  437.       OPENSSL_assert(bits > prime_multiplier_bits);
  438.   
  439.       BN_CTX_start(ctx);
             ^
  440.       if ((offset_index = BN_CTX_get(ctx)) == NULL)
  441.           goto err;

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_prime.c:470:5: Call
  468.   
  469.    err:
  470.       BN_CTX_end(ctx);
             ^
  471.       bn_check_top(rnd);
  472.       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_probable_prime_dh_coprime` 
      351.   static unsigned int BN_STACK_pop(BN_STACK *st)
      352.   {
      353.       return st->indexes[--(st->depth)];
                        ^
      354.   }
      355.   
