crypto/bn/bn_gcd.c:597: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_div`.
Showing all 13 steps of the trace


crypto/bn/bn_gcd.c:528:1: Parameter `ctx->stack.depth`
526.    * It does not contain branches that may leak sensitive information.
527.    */
528. > static BIGNUM *BN_mod_inverse_no_branch(BIGNUM *in,
529.   	const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx)
530.   	{

crypto/bn/bn_gcd.c:540:2: Call
538.   	bn_check_top(n);
539.   
540.   	BN_CTX_start(ctx);
        ^
541.   	A = BN_CTX_get(ctx);
542.   	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:597:8: Call
595.   		
596.   		/* (D, M) := (A/B, A%B) ... */		
597.   		if (!BN_div(D,M,pA,B,ctx)) goto err;
              ^
598.   		
599.   		/*-

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:230:2: Call
  228.   		}
  229.   
  230.   	BN_CTX_start(ctx);
          ^
  231.   	tmp=BN_CTX_get(ctx);
  232.   	snum=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_div.c:445:2: Call
  443.   		}
  444.   	if (no_branch)	bn_correct_top(res);
  445.   	BN_CTX_end(ctx);
          ^
  446.   	return(1);
  447.   err:

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_div` 
      352.   static unsigned int BN_STACK_pop(BN_STACK *st)
      353.   	{
      354.   	return st->indexes[--(st->depth)];
                     ^
      355.   	}
      356.   
