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


crypto/bn/bn_exp.c:598:1: Parameter `ctx->stack.depth`
596.    * http://www.daemonology.net/hyperthreading-considered-harmful/)
597.    */
598. > int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
599.                                 const BIGNUM *m, BN_CTX *ctx,
600.                                 BN_MONT_CTX *in_mont)

crypto/bn/bn_exp.c:642:5: Call
640.       }
641.   
642.       BN_CTX_start(ctx);
           ^
643.   
644.       /*

crypto/bn/bn_ctx.c:181:1: Parameter `ctx->stack.depth`
  179.   }
  180.   
  181. > void BN_CTX_start(BN_CTX *ctx)
  182.   {
  183.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_exp.c:761:17: Call
759.           if (!BN_to_montgomery(&am, &am, mont, ctx))
760.               goto err;
761.       } else if (!BN_to_montgomery(&am, a, mont, ctx))
                       ^
762.           goto err;
763.   

crypto/bn/bn_lib.c:870:1: Parameter `ctx->stack.depth`
  868.   }
  869.   
  870. > int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
  871.                        BN_CTX *ctx)
  872.   {

crypto/bn/bn_lib.c:873:12: Call
  871.                        BN_CTX *ctx)
  872.   {
  873.       return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx);
                    ^
  874.   }
  875.   

crypto/bn/bn_mont.c:26:1: Parameter `ctx->stack.depth`
    24.   #endif
    25.   
    26. > int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
    27.                             BN_MONT_CTX *mont, BN_CTX *ctx)
    28.   {

crypto/bn/bn_exp.c:1087:10: Call
1085.       } else
1086.   #endif
1087.       if (!BN_from_montgomery(rr, &tmp, mont, ctx))
                 ^
1088.           goto err;
1089.       ret = 1;

crypto/bn/bn_mont.c:151:1: Parameter `ctx->stack.depth`
  149.   #endif                          /* MONT_WORD */
  150.   
  151. > int BN_from_montgomery(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont,
  152.                          BN_CTX *ctx)
  153.   {

crypto/bn/bn_mont.c:158:5: Call
  156.       BIGNUM *t;
  157.   
  158.       BN_CTX_start(ctx);
             ^
  159.       if ((t = BN_CTX_get(ctx)) && BN_copy(t, a))
  160.           retn = BN_from_montgomery_word(ret, t, mont);

crypto/bn/bn_ctx.c:181:1: Parameter `ctx->stack.depth`
    179.   }
    180.   
    181. > void BN_CTX_start(BN_CTX *ctx)
    182.   {
    183.       CTXDBG_ENTRY("BN_CTX_start", ctx);

crypto/bn/bn_mont.c:161:5: Call
  159.       if ((t = BN_CTX_get(ctx)) && BN_copy(t, a))
  160.           retn = BN_from_montgomery_word(ret, t, mont);
  161.       BN_CTX_end(ctx);
             ^
  162.   #else                           /* !MONT_WORD */
  163.       BIGNUM *t1, *t2;

crypto/bn/bn_ctx.c:195:1: Parameter `ctx->stack.depth`
    193.   }
    194.   
    195. > void BN_CTX_end(BN_CTX *ctx)
    196.   {
    197.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:201:27: Call
    199.           ctx->err_stack--;
    200.       else {
    201.           unsigned int fp = BN_STACK_pop(&ctx->stack);
                                     ^
    202.           /* Does this stack frame have anything to release? */
    203.           if (fp < ctx->used)

crypto/bn/bn_ctx.c:274:1: <LHS trace>
272.   }
273.   
274. > static unsigned int BN_STACK_pop(BN_STACK *st)
275.   {
276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:274:1: Parameter `st->depth`
      272.   }
      273.   
      274. > static unsigned int BN_STACK_pop(BN_STACK *st)
      275.   {
      276.       return st->indexes[--(st->depth)];

crypto/bn/bn_ctx.c:276:12: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_from_montgomery` 
      274.   static unsigned int BN_STACK_pop(BN_STACK *st)
      275.   {
      276.       return st->indexes[--(st->depth)];
                        ^
      277.   }
      278.   
