crypto/bn/bn_recp.c:125: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_div_recp`.
Showing all 26 steps of the trace


crypto/bn/bn_recp.c:115:18: Call
113.       if (y != NULL) {
114.           if (x == y) {
115.               if (!BN_sqr(a, x, ctx))
                        ^
116.                   goto err;
117.           } else {

crypto/bn/bn_sqr.c:66:1: Parameter `ctx->pool.used`
  64.    * I've just gone over this and it is now %20 faster on x86 - eay - 27 Jun 96
  65.    */
  66. > int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
  67.   {
  68.       int max, al;

crypto/bn/bn_recp.c:125:11: Call
123.           ca = x;                 /* Just do the mod */
124.   
125.       ret = BN_div_recp(NULL, r, ca, recp, ctx);
                 ^
126.    err:
127.       BN_CTX_end(ctx);

crypto/bn/bn_recp.c:132:1: Parameter `ctx->pool.used`
  130.   }
  131.   
  132. > int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
  133.                   BN_RECP_CTX *recp, BN_CTX *ctx)
  134.   {

crypto/bn/bn_recp.c:139:9: Call
  137.   
  138.       BN_CTX_start(ctx);
  139.       a = BN_CTX_get(ctx);
                 ^
  140.       b = BN_CTX_get(ctx);
  141.       if (dv != NULL)

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->pool.used`
    265.   }
    266.   
    267. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    268.   {
    269.       BIGNUM *ret;

crypto/bn/bn_recp.c:140:9: Call
  138.       BN_CTX_start(ctx);
  139.       a = BN_CTX_get(ctx);
  140.       b = BN_CTX_get(ctx);
                 ^
  141.       if (dv != NULL)
  142.           d = dv;

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->pool.used`
    265.   }
    266.   
    267. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    268.   {
    269.       BIGNUM *ret;

crypto/bn/bn_recp.c:175:23: Call
  173.       /* Nr := round(2^i / N) */
  174.       if (i != recp->shift)
  175.           recp->shift = BN_reciprocal(&(recp->Nr), &(recp->N), i, ctx);
                               ^
  176.       /* BN_reciprocal could have returned -1 for an error */
  177.       if (recp->shift == -1)

crypto/bn/bn_recp.c:228:1: Parameter `ctx->pool.used`
    226.    */
    227.   /* r := 2^len / m */
    228. > int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx)
    229.   {
    230.       int ret = -1;

crypto/bn/bn_recp.c:234:14: Call
    232.   
    233.       BN_CTX_start(ctx);
    234.       if ((t = BN_CTX_get(ctx)) == NULL)
                        ^
    235.           goto err;
    236.   

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->pool.used`
      265.   }
      266.   
      267. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
      268.   {
      269.       BIGNUM *ret;

crypto/bn/bn_recp.c:240:10: Call
    238.           goto err;
    239.   
    240.       if (!BN_div(r, NULL, t, m, ctx))
                    ^
    241.           goto err;
    242.   

crypto/bn/bn_div.c:189:1: Parameter `ctx->pool.used`
      187.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
      188.    */
      189. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
      190.              BN_CTX *ctx)
      191.   {

crypto/bn/bn_div.c:243:11: Call
      241.   
      242.       BN_CTX_start(ctx);
      243.       tmp = BN_CTX_get(ctx);
                       ^
      244.       snum = BN_CTX_get(ctx);
      245.       sdiv = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->pool.used`
        265.   }
        266.   
        267. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
        268.   {
        269.       BIGNUM *ret;

crypto/bn/bn_div.c:244:12: Call
      242.       BN_CTX_start(ctx);
      243.       tmp = BN_CTX_get(ctx);
      244.       snum = BN_CTX_get(ctx);
                        ^
      245.       sdiv = BN_CTX_get(ctx);
      246.       if (dv == NULL)

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->pool.used`
        265.   }
        266.   
        267. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
        268.   {
        269.       BIGNUM *ret;

crypto/bn/bn_div.c:245:12: Call
      243.       tmp = BN_CTX_get(ctx);
      244.       snum = BN_CTX_get(ctx);
      245.       sdiv = BN_CTX_get(ctx);
                        ^
      246.       if (dv == NULL)
      247.           res = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:267:1: Parameter `ctx->pool.used`
        265.   }
        266.   
        267. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
        268.   {
        269.       BIGNUM *ret;

crypto/bn/bn_div.c:469:5: Call
      467.       if (no_branch)
      468.           bn_correct_top(res);
      469.       BN_CTX_end(ctx);
                 ^
      470.       return (1);
      471.    err:

crypto/bn/bn_ctx.c:250:1: Parameter `ctx->pool.used`
        248.   }
        249.   
        250. > void BN_CTX_end(BN_CTX *ctx)
        251.   {
        252.       CTXDBG_ENTRY("BN_CTX_end", ctx);

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

crypto/bn/bn_ctx.c:395:1: <LHS trace>
393.   }
394.   
395. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
396.   {
397.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:395:1: Parameter `p->used`
          393.   }
          394.   
          395. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
          396.   {
          397.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:397:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_div_recp` 
          395.   static void BN_POOL_release(BN_POOL *p, unsigned int num)
          396.   {
          397.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;
                     ^
          398.   
          399.       p->used -= num;
