crypto/dsa/dsa_ossl.c:264: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_generate_dsa_nonce`.
Showing all 13 steps of the trace


crypto/dsa/dsa_ossl.c:228:1: Parameter `ctx_in->stack.depth`
226.   }
227.   
228. > static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in,
229.   				      BIGNUM **kinvp, BIGNUM **rp,
230.   				      const unsigned char *dgst, int dlen)

crypto/dsa/dsa_ossl.c:264:9: Call
262.   			 * + random). This protects the private key from a weak
263.   			 * PRNG. */
264.   			if (!BN_generate_dsa_nonce(k, dsa->q, dsa->priv_key, dgst,
               ^
265.   						   dlen, ctx))
266.   				goto err;

crypto/bn/bn_rand.c:316:1: Parameter `ctx->stack.depth`
  314.    * secret. This is intended for use in DSA and ECDSA where an RNG weakness
  315.    * leads directly to private key exposure unless this function is used. */
  316. > int BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range, const BIGNUM* priv,
  317.   			  const unsigned char *message, size_t message_len,
  318.   			  BN_CTX *ctx)

crypto/bn/bn_rand.c:368:6: Call
  366.   	if (!BN_bin2bn(k_bytes, num_k_bytes, out))
  367.   		goto err;
  368.   	if (BN_mod(out, out, range, ctx) != 1)
              ^
  369.   		goto err;
  370.   	ret = 1;

crypto/bn/bn_div.c:182:1: Parameter `ctx->stack.depth`
    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:227:2: Call
    225.   		}
    226.   
    227.   	BN_CTX_start(ctx);
            ^
    228.   	tmp=BN_CTX_get(ctx);
    229.   	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: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->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_generate_dsa_nonce` 
        352.   static unsigned int BN_STACK_pop(BN_STACK *st)
        353.   	{
        354.   	return st->indexes[--(st->depth)];
                       ^
        355.   	}
        356.   
