crypto/jpake/jpake.c:374: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul`.
Showing all 23 steps of the trace


crypto/jpake/jpake.c:353:1: Parameter `ctx->ctx->stack.depth`
351.   
352.   /* gx = g^{xc + xa + xb} * xd * s */
353. > static int compute_key(JPAKE_CTX *ctx, const BIGNUM *gx)
354.       {
355.       BIGNUM *t1 = BN_new();

crypto/jpake/jpake.c:368:5: Call
366.   
367.      /* t1 = (g^{xd})^{xb} = g^{xb * xd} */
368.       BN_mod_exp(t1, ctx->p.gxd, ctx->xb, ctx->p.p, ctx->ctx);
           ^
369.      /* t2 = -s = q-s */
370.       BN_sub(t2, ctx->p.q, ctx->secret);

crypto/bn/bn_exp.c:163:1: Parameter `ctx->stack.depth`
  161.   
  162.   
  163. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  164.   	       BN_CTX *ctx)
  165.   	{

crypto/bn/bn_exp.c:219:8: Call
  217.   			{
  218.   			BN_ULONG A = a->d[0];
  219.   			ret=BN_mod_exp_mont_word(r,A,p,m,ctx,NULL);
                ^
  220.   			}
  221.   		else

crypto/bn/bn_exp.c:724:1: Parameter `ctx->stack.depth`
    722.   	}
    723.   
    724. > int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
    725.                            const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
    726.   	{

crypto/jpake/jpake.c:372:5: Call
370.       BN_sub(t2, ctx->p.q, ctx->secret);
371.      /* t3 = t1^t2 = g^{-xb * xd * s} */
372.       BN_mod_exp(t3, t1, t2, ctx->p.p, ctx->ctx);
           ^
373.      /* t1 = gx * t3 = X/g^{xb * xd * s} */
374.       BN_mod_mul(t1, gx, t3, ctx->p.p, ctx->ctx);

crypto/bn/bn_exp.c:163:1: Parameter `ctx->stack.depth`
  161.   
  162.   
  163. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  164.   	       BN_CTX *ctx)
  165.   	{

crypto/bn/bn_exp.c:219:8: Call
  217.   			{
  218.   			BN_ULONG A = a->d[0];
  219.   			ret=BN_mod_exp_mont_word(r,A,p,m,ctx,NULL);
                ^
  220.   			}
  221.   		else

crypto/bn/bn_exp.c:724:1: Parameter `ctx->stack.depth`
    722.   	}
    723.   
    724. > int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
    725.                            const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
    726.   	{

crypto/jpake/jpake.c:374:5: Call
372.       BN_mod_exp(t3, t1, t2, ctx->p.p, ctx->ctx);
373.      /* t1 = gx * t3 = X/g^{xb * xd * s} */
374.       BN_mod_mul(t1, gx, t3, ctx->p.p, ctx->ctx);
           ^
375.      /* K = t1^{xb} */
376.       BN_mod_exp(ctx->key, t1, ctx->xb, ctx->p.p, ctx->ctx);

crypto/bn/bn_mod.c:178:1: Parameter `ctx->stack.depth`
  176.   
  177.   /* slow but works */
  178. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
  179.   	BN_CTX *ctx)
  180.   	{

crypto/bn/bn_mod.c:188:2: Call
  186.   	bn_check_top(m);
  187.   
  188.   	BN_CTX_start(ctx);
          ^
  189.   	if ((t = BN_CTX_get(ctx)) == NULL) goto err;
  190.   	if (a == b)

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

crypto/bn/bn_mod.c:193:10: Call
  191.   		{ if (!BN_sqr(t,a,ctx)) goto err; }
  192.   	else
  193.   		{ if (!BN_mul(t,a,b,ctx)) goto err; }
                  ^
  194.   	if (!BN_nnmod(r,t,m,ctx)) goto err;
  195.   	bn_check_top(r);

crypto/bn/bn_mul.c:946:1: Parameter `ctx->stack.depth`
    944.   #endif /* BN_RECURSION */
    945.   
    946. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    947.   	{
    948.   	int ret=0;

crypto/bn/bn_mul.c:977:2: Call
    975.   	top=al+bl;
    976.   
    977.   	BN_CTX_start(ctx);
            ^
    978.   	if ((r == a) || (r == b))
    979.   		{

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

crypto/bn/bn_mul.c:1103:2: Call
    1101.   err:
    1102.   	bn_check_top(r);
    1103.   	BN_CTX_end(ctx);
             ^
    1104.   	return(ret);
    1105.   	}

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

crypto/bn/bn_ctx.c:277:21: Call
      275.   	else
      276.   		{
      277.   		unsigned int fp = BN_STACK_pop(&ctx->stack);
                                 ^
      278.   		/* Does this stack frame have anything to release? */
      279.   		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:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_mod_mul` 
        351.   static unsigned int BN_STACK_pop(BN_STACK *st)
        352.   	{
        353.   	return st->indexes[--(st->depth)];
                       ^
        354.   	}
        355.   
