crypto/bn/bn_exp.c:792: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_to_montgomery`.
Showing all 19 steps of the trace


crypto/bn/bn_exp.c:650:1: Parameter `ctx->stack.depth`
648.    * http://www.daemong-consideredperthreading-considered-harmful/)
649.    */
650. > int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
651.                                 const BIGNUM *m, BN_CTX *ctx,
652.                                 BN_MONT_CTX *in_mont)

crypto/bn/bn_exp.c:683:5: Call
681.       }
682.   
683.       BN_CTX_start(ctx);
           ^
684.   
685.       /*

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

crypto/bn/bn_exp.c:792:10: Call
790.       } else
791.   #endif
792.       if (!BN_to_montgomery(&tmp, BN_value_one(), mont, ctx))
                ^
793.           goto err;
794.   

crypto/bn/bn_lib.c:926:1: Parameter `ctx->stack.depth`
  924.   }
  925.   
  926. > int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
  927.                        BN_CTX *ctx)
  928.   {

crypto/bn/bn_lib.c:929:12: Call
  927.                        BN_CTX *ctx)
  928.   {
  929.       return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx);
                    ^
  930.   }
  931.   

crypto/bn/bn_mont.c:128:1: Parameter `ctx->stack.depth`
    126.   #endif
    127.   
    128. > int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
    129.                             BN_MONT_CTX *mont, BN_CTX *ctx)
    130.   {

crypto/bn/bn_mont.c:148:5: Call
    146.   #endif
    147.   
    148.       BN_CTX_start(ctx);
               ^
    149.       tmp = BN_CTX_get(ctx);
    150.       if (tmp == NULL)

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

crypto/bn/bn_mont.c:155:14: Call
    153.       bn_check_top(tmp);
    154.       if (a == b) {
    155.           if (!BN_sqr(tmp, a, ctx))
                        ^
    156.               goto err;
    157.       } else {

crypto/bn/bn_sqr.c:66:1: Parameter `ctx->stack.depth`
      64.    * I've just gone over this and it is now %20 faster on x86 - eay - 27 Jun 96
      65.    */
      66. > int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
      67.   {
      68.       int max, al;

crypto/bn/bn_sqr.c:81:5: Call
      79.       }
      80.   
      81.       BN_CTX_start(ctx);
                ^
      82.       rr = (a != r) ? r : BN_CTX_get(ctx);
      83.       tmp = BN_CTX_get(ctx);

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

crypto/bn/bn_sqr.c:148:5: Call
      146.       bn_check_top(rr);
      147.       bn_check_top(tmp);
      148.       BN_CTX_end(ctx);
                 ^
      149.       return (ret);
      150.   }

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

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