engines/ccgost/gost_sign.c:247: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_mod_exp`.
Showing all 18 steps of the trace


engines/ccgost/gost_sign.c:247:5: Call
245.       }
246.       /* Compute public key  y = a^x mod p */
247.       BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx);
           ^
248.       BN_CTX_free(ctx);
249.       return 1;

crypto/bn/bn_exp.c:191:1: Parameter `ctx->stack.depth`
  189.   }
  190.   
  191. > int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
  192.                  BN_CTX *ctx)
  193.   {

crypto/bn/bn_exp.c:256:15: Call
  254.   #ifdef RECP_MUL_MOD
  255.       {
  256.           ret = BN_mod_exp_recp(r, a, p, m, ctx);
                       ^
  257.       }
  258.   #else

crypto/bn/bn_exp.c:268:1: Parameter `ctx->stack.depth`
    266.   }
    267.   
    268. > int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
    269.                       const BIGNUM *m, BN_CTX *ctx)
    270.   {

crypto/bn/bn_exp.c:291:5: Call
    289.       }
    290.   
    291.       BN_CTX_start(ctx);
               ^
    292.       aa = BN_CTX_get(ctx);
    293.       val[0] = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:240:1: Parameter `ctx->stack.depth`
      238.   }
      239.   
      240. > void BN_CTX_start(BN_CTX *ctx)
      241.   {
      242.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_exp.c:310:10: Call
    308.       }
    309.   
    310.       if (!BN_nnmod(val[0], a, m, ctx))
                    ^
    311.           goto err;               /* 1 */
    312.       if (BN_is_zero(val[0])) {

crypto/bn/bn_mod.c:119:1: Parameter `ctx->stack.depth`
      117.   #include "bn_lcl.h"
      118.   
      119. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
      120.   {
      121.       /*

crypto/bn/bn_mod.c:126:11: Call
      124.        */
      125.   
      126.       if (!(BN_mod(r, m, d, ctx)))
                       ^
      127.           return 0;
      128.       if (!r->neg)

crypto/bn/bn_div.c:189:1: Parameter `ctx->stack.depth`
        187.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
        188.    */
        189. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
        190.              BN_CTX *ctx)
        191.   {

crypto/bn/bn_div.c:242:5: Call
        240.       }
        241.   
        242.       BN_CTX_start(ctx);
                   ^
        243.       tmp = BN_CTX_get(ctx);
        244.       snum = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:240:1: Parameter `ctx->stack.depth`
          238.   }
          239.   
          240. > void BN_CTX_start(BN_CTX *ctx)
          241.   {
          242.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_div.c:469:5: Call
        467.       if (no_branch)
        468.           bn_correct_top(res);
        469.       BN_CTX_end(ctx);
                   ^
        470.       return (1);
        471.    err:

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

crypto/bn/bn_ctx.c:260:27: Call
          258.           ctx->err_stack--;
          259.       else {
          260.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                           ^
          261.           /* Does this stack frame have anything to release? */
          262.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:330:1: <LHS trace>
328.   }
329.   
330. > static unsigned int BN_STACK_pop(BN_STACK *st)
331.   {
332.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:330:1: Parameter `st->depth`
            328.   }
            329.   
            330. > static unsigned int BN_STACK_pop(BN_STACK *st)
            331.   {
            332.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:332:12: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_mod_exp` 
            330.   static unsigned int BN_STACK_pop(BN_STACK *st)
            331.   {
            332.       return st->indexes[--(st->depth)];
                              ^
            333.   }
            334.   
