crypto/bn/bn_recp.c:126: error: INTEGER_OVERFLOW_L2
  ([0, 5+max(0, `ctx->stack.depth`)] - 1):unsigned32 by call to `BN_div_recp`.
Showing all 21 steps of the trace


crypto/bn/bn_recp.c:106:1: Parameter `ctx->stack.depth`
104.   	}
105.   
106. > int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
107.   	BN_RECP_CTX *recp, BN_CTX *ctx)
108.   	{

crypto/bn/bn_recp.c:113:2: Call
111.   	const BIGNUM *ca;
112.   
113.   	BN_CTX_start(ctx);
        ^
114.   	if ((a = BN_CTX_get(ctx)) == NULL) goto err;
115.   	if (y != NULL)

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

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

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

crypto/bn/bn_recp.c:139:2: Call
  137.   	BIGNUM *a,*b,*d,*r;
  138.   
  139.   	BN_CTX_start(ctx);
          ^
  140.   	a=BN_CTX_get(ctx);
  141.   	b=BN_CTX_get(ctx);

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

crypto/bn/bn_recp.c:173:15: Call
  171.   	/* Nr := round(2^i / N) */
  172.   	if (i != recp->shift)
  173.   		recp->shift=BN_reciprocal(&(recp->Nr),&(recp->N),
                       ^
  174.   			i,ctx); /* BN_reciprocal returns i, or -1 for an error */
  175.   	if (recp->shift == -1) goto err;

crypto/bn/bn_recp.c:220:1: Parameter `ctx->stack.depth`
    218.    */
    219.   /* r := 2^len / m */
    220. > int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx)
    221.   	{
    222.   	int ret= -1;

crypto/bn/bn_recp.c:225:2: Call
    223.   	BIGNUM *t;
    224.   
    225.   	BN_CTX_start(ctx);
            ^
    226.   	if((t = BN_CTX_get(ctx)) == NULL) goto err;
    227.   

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

crypto/bn/bn_recp.c:230:7: Call
    228.   	if (!BN_set_bit(t,len)) goto err;
    229.   
    230.   	if (!BN_div(r,NULL,t,m,ctx)) goto err;
                 ^
    231.   
    232.   	ret=len;

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

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

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

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

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

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

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

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

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