crypto/bn/bn_exp.c:292: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul_reciprocal`.
Showing all 15 steps of the trace


crypto/bn/bn_exp.c:281:7: Call
279.   		}
280.   
281.   	if (!BN_nnmod(val[0],a,m,ctx)) goto err;		/* 1 */
             ^
282.   	if (BN_is_zero(val[0]))
283.   		{

crypto/bn/bn_mod.c:132:8: Call
  130.   	 * (i.e.,  0 <= r < |d|  always holds) */
  131.   
  132.   	if (!(BN_mod(r,m,d,ctx)))
                ^
  133.   		return 0;
  134.   	if (!r->neg)

crypto/bn/bn_div.c:181:1: Parameter `ctx->pool.used`
    179.   static int BN_div_no_branch(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num,
    180.           const BIGNUM *divisor, BN_CTX *ctx);
    181. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    182.   	   BN_CTX *ctx)
    183.   	{

crypto/bn/bn_exp.c:292:8: Call
290.   	if (window > 1)
291.   		{
292.   		if (!BN_mod_mul_reciprocal(aa,val[0],val[0],&recp,ctx))
              ^
293.   			goto err;				/* 2 */
294.   		j=1<<(window-1);

crypto/bn/bn_recp.c:103:1: Parameter `ctx->pool.used`
  101.   	}
  102.   
  103. > int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
  104.   	BN_RECP_CTX *recp, BN_CTX *ctx)
  105.   	{

crypto/bn/bn_recp.c:111:11: Call
  109.   
  110.   	BN_CTX_start(ctx);
  111.   	if ((a = BN_CTX_get(ctx)) == NULL) goto err;
                   ^
  112.   	if (y != NULL)
  113.   		{

crypto/bn/bn_ctx.c:288:1: Parameter `ctx->pool.used`
    286.   	}
    287.   
    288. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
    289.   	{
    290.   	BIGNUM *ret;

crypto/bn/bn_recp.c:117:11: Call
  115.   			{ if (!BN_sqr(a,x,ctx)) goto err; }
  116.   		else
  117.   			{ if (!BN_mul(a,x,y,ctx)) goto err; }
                   ^
  118.   		ca = a;
  119.   		}

crypto/bn/bn_mul.c:941:1: Parameter `ctx->pool.used`
    939.   #endif /* BN_RECURSION */
    940.   
    941. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    942.   	{
    943.   	int ret=0;

crypto/bn/bn_mul.c:1098:2: Call
    1096.   err:
    1097.   	bn_check_top(r);
    1098.   	BN_CTX_end(ctx);
             ^
    1099.   	return(ret);
    1100.   	}

crypto/bn/bn_ctx.c:270:1: Parameter `ctx->pool.used`
      268.   	}
      269.   
      270. > void BN_CTX_end(BN_CTX *ctx)
      271.   	{
      272.   	CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:280:4: Call
      278.   		/* Does this stack frame have anything to release? */
      279.   		if(fp < ctx->used)
      280.   			BN_POOL_release(&ctx->pool, ctx->used - fp);
                ^
      281.   		ctx->used = fp;
      282.   		/* Unjam "too_many" in case "get" had failed */

crypto/bn/bn_ctx.c:438:1: <LHS trace>
436.   	}
437.   
438. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
439.   	{
440.   	unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:438:1: Parameter `p->used`
        436.   	}
        437.   
        438. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
        439.   	{
        440.   	unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:440:2: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul_reciprocal` 
        438.   static void BN_POOL_release(BN_POOL *p, unsigned int num)
        439.   	{
        440.   	unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;
                ^
        441.   	p->used -= num;
        442.   	while(num--)
