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


crypto/ec/ecp_smpl.c:603:8: Call
601.   	else
602.   		{
603.   		if (!BN_mod_inverse(Z_1, Z_, group->field, ctx))
              ^
604.   			{
605.   			ECerr(EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES, ERR_R_BN_LIB);

crypto/bn/bn_gcd.c:216:7: Call
  214.   	BIGNUM *rv;
  215.   	int noinv;
  216.   	rv = int_bn_mod_inverse(in, a, n, ctx, &noinv);
               ^
  217.   	if (noinv)
  218.   		BNerr(BN_F_BN_MOD_INVERSE,BN_R_NO_INVERSE);

crypto/bn/bn_gcd.c:222:1: Parameter `ctx->stack.depth`
    220.   	}
    221.   
    222. > BIGNUM *int_bn_mod_inverse(BIGNUM *in,
    223.   	const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx, int *pnoinv)
    224.   	{

crypto/bn/bn_gcd.c:240:2: Call
    238.   	bn_check_top(n);
    239.   
    240.   	BN_CTX_start(ctx);
            ^
    241.   	A = BN_CTX_get(ctx);
    242.   	B = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:256:1: Parameter `ctx->stack.depth`
      254.   	}
      255.   
      256. > void BN_CTX_start(BN_CTX *ctx)
      257.   	{
      258.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_gcd.c:515:2: Call
    513.   err:
    514.   	if ((ret == NULL) && (in == NULL)) BN_free(R);
    515.   	BN_CTX_end(ctx);
            ^
    516.   	bn_check_top(ret);
    517.   	return(ret);

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

crypto/ec/ecp_smpl.c:616:9: Call
614.   		else
615.   			{
616.   			if (!BN_mod_sqr(Z_2, Z_1, group->field, ctx)) goto err;
               ^
617.   			}
618.   	

crypto/bn/bn_mod.c:205:1: Parameter `ctx->stack.depth`
  203.   
  204.   
  205. > int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
  206.   	{
  207.   	if (!BN_sqr(r, a, ctx)) return 0;

crypto/bn/bn_mod.c:207:7: Call
  205.   int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
  206.   	{
  207.   	if (!BN_sqr(r, a, ctx)) return 0;
               ^
  208.   	/* r->neg == 0,  thus we don't need BN_nnmod */
  209.   	return BN_mod(r, r, m, ctx);

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

crypto/bn/bn_sqr.c:80:2: Call
    78.   		}
    79.   
    80.   	BN_CTX_start(ctx);
           ^
    81.   	rr=(a != r) ? r : BN_CTX_get(ctx);
    82.   	tmp=BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:256:1: Parameter `ctx->stack.depth`
      254.   	}
      255.   
      256. > void BN_CTX_start(BN_CTX *ctx)
      257.   	{
      258.   	CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_sqr.c:150:2: Call
    148.   	bn_check_top(rr);
    149.   	bn_check_top(tmp);
    150.   	BN_CTX_end(ctx);
            ^
    151.   	return(ret);
    152.   	}

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

crypto/bn/bn_ctx.c:278:21: Call
      276.   	else
      277.   		{
      278.   		unsigned int fp = BN_STACK_pop(&ctx->stack);
                                 ^
      279.   		/* Does this stack frame have anything to release? */
      280.   		if(fp < ctx->used)

crypto/bn/bn_ctx.c:352:1: <LHS trace>
350.   	}
351.   
352. > static unsigned int BN_STACK_pop(BN_STACK *st)
353.   	{
354.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:352:1: Parameter `st->depth`
        350.   	}
        351.   
        352. > static unsigned int BN_STACK_pop(BN_STACK *st)
        353.   	{
        354.   	return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:354:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_mod_sqr` 
        352.   static unsigned int BN_STACK_pop(BN_STACK *st)
        353.   	{
        354.   	return st->indexes[--(st->depth)];
                       ^
        355.   	}
        356.   
