crypto/ec/ecp_smpl.c:204: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned32 by call to `BN_nnmod`.
Showing all 19 steps of the trace


crypto/ec/ecp_smpl.c:173:1: Parameter `ctx->pool.used`
171.   }
172.   
173. > int ec_GFp_simple_group_set_curve(EC_GROUP *group,
174.                                     const BIGNUM *p, const BIGNUM *a,
175.                                     const BIGNUM *b, BN_CTX *ctx)

crypto/ec/ecp_smpl.c:194:13: Call
192.   
193.       BN_CTX_start(ctx);
194.       tmp_a = BN_CTX_get(ctx);
                   ^
195.       if (tmp_a == NULL)
196.           goto err;

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
  269.   }
  270.   
  271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
  272.   {
  273.       BIGNUM *ret;

crypto/ec/ecp_smpl.c:204:10: Call
202.   
203.       /* group->a */
204.       if (!BN_nnmod(tmp_a, a, p, ctx))
                ^
205.           goto err;
206.       if (group->meth->field_encode) {

crypto/bn/bn_mod.c:119:1: Parameter `ctx->pool.used`
  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->pool.used`
    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:243:11: Call
    241.   
    242.       BN_CTX_start(ctx);
    243.       tmp = BN_CTX_get(ctx);
                     ^
    244.       snum = BN_CTX_get(ctx);
    245.       sdiv = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
      269.   }
      270.   
      271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
      272.   {
      273.       BIGNUM *ret;

crypto/bn/bn_div.c:244:12: Call
    242.       BN_CTX_start(ctx);
    243.       tmp = BN_CTX_get(ctx);
    244.       snum = BN_CTX_get(ctx);
                      ^
    245.       sdiv = BN_CTX_get(ctx);
    246.       if (dv == NULL)

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
      269.   }
      270.   
      271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
      272.   {
      273.       BIGNUM *ret;

crypto/bn/bn_div.c:245:12: Call
    243.       tmp = BN_CTX_get(ctx);
    244.       snum = BN_CTX_get(ctx);
    245.       sdiv = BN_CTX_get(ctx);
                      ^
    246.       if (dv == NULL)
    247.           res = BN_CTX_get(ctx);

crypto/bn/bn_ctx.c:271:1: Parameter `ctx->pool.used`
      269.   }
      270.   
      271. > BIGNUM *BN_CTX_get(BN_CTX *ctx)
      272.   {
      273.       BIGNUM *ret;

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->pool.used`
      252.   }
      253.   
      254. > void BN_CTX_end(BN_CTX *ctx)
      255.   {
      256.       CTXDBG_ENTRY("BN_CTX_end", ctx);

crypto/bn/bn_ctx.c:263:13: Call
      261.           /* Does this stack frame have anything to release? */
      262.           if (fp < ctx->used)
      263.               BN_POOL_release(&ctx->pool, ctx->used - fp);
                         ^
      264.           ctx->used = fp;
      265.           /* Unjam "too_many" in case "get" had failed */

crypto/bn/bn_ctx.c:399:1: <LHS trace>
397.   }
398.   
399. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
400.   {
401.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:399:1: Parameter `p->used`
        397.   }
        398.   
        399. > static void BN_POOL_release(BN_POOL *p, unsigned int num)
        400.   {
        401.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;

crypto/bn/bn_ctx.c:401:5: Binary operation: ([0, +oo] - 1):unsigned32 by call to `BN_nnmod` 
        399.   static void BN_POOL_release(BN_POOL *p, unsigned int num)
        400.   {
        401.       unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE;
                   ^
        402.   
        403.       p->used -= num;
