crypto/ec/ecp_smpl.c:199: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_nnmod`.
Showing all 19 steps of the trace


crypto/ec/ecp_smpl.c:169:1: Parameter `ctx->pool.used`
167.   
168.   
169. > int ec_GFp_simple_group_set_curve(EC_GROUP *group,
170.   	const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
171.   	{

crypto/ec/ecp_smpl.c:191:10: Call
189.   
190.   	BN_CTX_start(ctx);
191.   	tmp_a = BN_CTX_get(ctx);
                ^
192.   	if (tmp_a == NULL) goto err;
193.   

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

crypto/ec/ecp_smpl.c:199:7: Call
197.   
198.   	/* group->a */
199.   	if (!BN_nnmod(tmp_a, a, p, ctx)) goto err;
             ^
200.   	if (group->meth->field_encode)
201.   		{ if (!group->meth->field_encode(group, &group->a, tmp_a, ctx)) goto err; }	

crypto/bn/bn_mod.c:129:1: Parameter `ctx->pool.used`
  127.   
  128.   
  129. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
  130.   	{
  131.   	/* like BN_mod, but returns non-negative remainder

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

crypto/bn/bn_div.c:182:1: Parameter `ctx->pool.used`
    180.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
    181.    */
    182. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    183.   	   BN_CTX *ctx)
    184.   	{

crypto/bn/bn_div.c:228:6: Call
    226.   
    227.   	BN_CTX_start(ctx);
    228.   	tmp=BN_CTX_get(ctx);
                ^
    229.   	snum=BN_CTX_get(ctx);
    230.   	sdiv=BN_CTX_get(ctx);

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

crypto/bn/bn_div.c:229:7: Call
    227.   	BN_CTX_start(ctx);
    228.   	tmp=BN_CTX_get(ctx);
    229.   	snum=BN_CTX_get(ctx);
                 ^
    230.   	sdiv=BN_CTX_get(ctx);
    231.   	if (dv == NULL)

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

crypto/bn/bn_div.c:230:7: Call
    228.   	tmp=BN_CTX_get(ctx);
    229.   	snum=BN_CTX_get(ctx);
    230.   	sdiv=BN_CTX_get(ctx);
                 ^
    231.   	if (dv == NULL)
    232.   		res=BN_CTX_get(ctx);

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

crypto/bn/bn_div.c:442:2: Call
    440.   		}
    441.   	if (no_branch)	bn_correct_top(res);
    442.   	BN_CTX_end(ctx);
            ^
    443.   	return(1);
    444.   err:

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

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

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

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

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