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


crypto/bn/bn_gf2m.c:975:1: Parameter `ctx->stack.depth`
973.    * P1363.
974.    */
975. > int BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
976.                           const int p[], BN_CTX *ctx)
977.   {

crypto/bn/bn_gf2m.c:990:5: Call
988.           return (BN_copy(r, a) != NULL);
989.   
990.       BN_CTX_start(ctx);
           ^
991.       if ((u = BN_CTX_get(ctx)) == NULL)
992.           goto err;

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_gf2m.c:999:14: Call
997.       n = BN_num_bits(b) - 1;
998.       for (i = n - 1; i >= 0; i--) {
999.           if (!BN_GF2m_mod_sqr_arr(u, u, p, ctx))
                     ^
1000.               goto err;
1001.           if (BN_is_bit_set(b, i)) {

crypto/bn/bn_gf2m.c:570:1: Parameter `ctx->stack.depth`
  568.   
  569.   /* Square a, reduce the result mod p, and store it in a.  r could be a. */
  570. > int BN_GF2m_mod_sqr_arr(BIGNUM *r, const BIGNUM *a, const int p[],
  571.                           BN_CTX *ctx)
  572.   {

crypto/bn/bn_gf2m.c:577:5: Call
  575.   
  576.       bn_check_top(a);
  577.       BN_CTX_start(ctx);
             ^
  578.       if ((s = BN_CTX_get(ctx)) == NULL)
  579.           return 0;

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_gf2m.c:1002:18: Call
1000.               goto err;
1001.           if (BN_is_bit_set(b, i)) {
1002.               if (!BN_GF2m_mod_mul_arr(u, u, a, p, ctx))
                         ^
1003.                   goto err;
1004.           }

crypto/bn/bn_gf2m.c:490:1: Parameter `ctx->stack.depth`
  488.    * the result in r.  r could be a or b; a could be b.
  489.    */
  490. > int BN_GF2m_mod_mul_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  491.                           const int p[], BN_CTX *ctx)
  492.   {

crypto/bn/bn_gf2m.c:501:16: Call
  499.   
  500.       if (a == b) {
  501.           return BN_GF2m_mod_sqr_arr(r, a, p, ctx);
                        ^
  502.       }
  503.   

crypto/bn/bn_gf2m.c:570:1: Parameter `ctx->stack.depth`
    568.   
    569.   /* Square a, reduce the result mod p, and store it in a.  r could be a. */
    570. > int BN_GF2m_mod_sqr_arr(BIGNUM *r, const BIGNUM *a, const int p[],
    571.                           BN_CTX *ctx)
    572.   {

crypto/bn/bn_gf2m.c:577:5: Call
    575.   
    576.       bn_check_top(a);
    577.       BN_CTX_start(ctx);
               ^
    578.       if ((s = BN_CTX_get(ctx)) == NULL)
    579.           return 0;

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_gf2m.c:595:5: Call
    593.       ret = 1;
    594.    err:
    595.       BN_CTX_end(ctx);
               ^
    596.       return ret;
    597.   }

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