crypto/ec/ecp_mont.c:210: error: INTEGER_OVERFLOW_L2
  (0 - [0, 1]):unsigned64 by call to `BN_to_montgomery`.
Showing all 17 steps of the trace


crypto/ec/ecp_mont.c:210:32: Call
208.       if (one == NULL)
209.           goto err;
210.       if (!BN_to_montgomery(one, BN_value_one(), mont, ctx))
                                      ^
211.           goto err;
212.   

crypto/bn/bn_lib.c:135:5: Assignment
  133.   const BIGNUM *BN_value_one(void)
  134.   {
  135.       static const BN_ULONG data_one = 1L;
             ^
  136.       static const BIGNUM const_one =
  137.           { (BN_ULONG *)&data_one, 1, 1, 0, BN_FLG_STATIC_DATA };

crypto/ec/ecp_mont.c:210:10: Call
208.       if (one == NULL)
209.           goto err;
210.       if (!BN_to_montgomery(one, BN_value_one(), mont, ctx))
                ^
211.           goto err;
212.   

crypto/bn/bn_lib.c:996:1: Parameter `*a->d`
  994.   }
  995.   
  996. > int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
  997.                        BN_CTX *ctx)
  998.   {

crypto/bn/bn_lib.c:999:12: Call
  997.                        BN_CTX *ctx)
  998.   {
  999.       return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx);
                     ^
  1000.   }
  1001.   

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

crypto/bn/bn_mont.c:157:14: Call
    155.               goto err;
    156.       } else {
    157.           if (!BN_mul(tmp, a, b, ctx))
                        ^
    158.               goto err;
    159.       }

crypto/bn/bn_mul.c:882:1: Parameter `*a->d`
      880.   #endif                          /* BN_RECURSION */
      881.   
      882. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
      883.   {
      884.       int ret = 0;

crypto/bn/bn_mul.c:963:17: Call
      961.                   if (bn_wexpand(rr, k * 4) == NULL)
      962.                       goto err;
      963.                   bn_mul_part_recursive(rr->d, a->d, b->d,
                             ^
      964.                                         j, al - j, bl - j, t->d);
      965.               } else {            /* al <= j || bl <= j */

crypto/bn/bn_mul.c:533:1: Parameter `*a`
        531.    */
        532.   /* tnX may not be negative but less than n */
        533. > void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n,
        534.                              int tna, int tnb, BN_ULONG *t)
        535.   {

crypto/bn/bn_mul.c:546:10: Call
        544.   
        545.       /* r=(a[0]-a[1])*(b[1]-b[0]) */
        546.       c1 = bn_cmp_part_words(a, &(a[n]), tna, n - tna);
                        ^
        547.       c2 = bn_cmp_part_words(&(b[n]), b, tnb, tnb - n);
        548.       neg = 0;

crypto/bn/bn_lib.c:854:1: Parameter `*b`
          852.    */
          853.   
          854. > int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, int cl, int dl)
          855.   {
          856.       int n, i;

crypto/bn/bn_mul.c:551:9: Call
        549.       switch (c1 * 3 + c2) {
        550.       case -4:
        551.           bn_sub_part_words(t, &(a[n]), a, tna, tna - n); /* - */
                       ^
        552.           bn_sub_part_words(&(t[n]), b, &(b[n]), tnb, n - tnb); /* - */
        553.           break;

crypto/bn/bn_mul.c:80:1: <RHS trace>
78.    */
79.   
80. > BN_ULONG bn_sub_part_words(BN_ULONG *r,
81.                              const BN_ULONG *a, const BN_ULONG *b,
82.                              int cl, int dl)

crypto/bn/bn_mul.c:80:1: Parameter `*b`
          78.    */
          79.   
          80. > BN_ULONG bn_sub_part_words(BN_ULONG *r,
          81.                              const BN_ULONG *a, const BN_ULONG *b,
          82.                              int cl, int dl)

crypto/bn/bn_mul.c:98:13: Assignment
          96.       if (dl < 0) {
          97.           for (;;) {
          98.               t = b[0];
                             ^
          99.               r[0] = (0 - t - c) & BN_MASK2;
          100.               if (t != 0)

crypto/bn/bn_mul.c:99:13: Binary operation: (0 - [0, 1]):unsigned64 by call to `BN_to_montgomery` 
          97.           for (;;) {
          98.               t = b[0];
          99.               r[0] = (0 - t - c) & BN_MASK2;
                             ^
          100.               if (t != 0)
          101.                   c = 1;
