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


crypto/ec/ecp_mont.c:160:32: Call
158.       if (one == NULL)
159.           goto err;
160.       if (!BN_to_montgomery(one, BN_value_one(), mont, ctx))
                                      ^
161.           goto err;
162.   

crypto/bn/bn_lib.c:83:5: Assignment
  81.   const BIGNUM *BN_value_one(void)
  82.   {
  83.       static const BN_ULONG data_one = 1L;
            ^
  84.       static const BIGNUM const_one =
  85.           { (BN_ULONG *)&data_one, 1, 1, 0, BN_FLG_STATIC_DATA };

crypto/ec/ecp_mont.c:160:10: Call
158.       if (one == NULL)
159.           goto err;
160.       if (!BN_to_montgomery(one, BN_value_one(), mont, ctx))
                ^
161.           goto err;
162.   

crypto/bn/bn_lib.c:878:1: Parameter `*a->d`
  876.   }
  877.   
  878. > int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
  879.                        BN_CTX *ctx)
  880.   {

crypto/bn/bn_lib.c:881:12: Call
  879.                        BN_CTX *ctx)
  880.   {
  881.       return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx);
                    ^
  882.   }
  883.   

crypto/bn/bn_mont.c:26:1: Parameter `*a->d`
    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_mont.c:29:15: Call
    27.                             BN_MONT_CTX *mont, BN_CTX *ctx)
    28.   {
    29.       int ret = bn_mul_mont_fixed_top(r, a, b, mont, ctx);
                        ^
    30.   
    31.       bn_correct_top(r);

crypto/bn/bn_mont.c:37:1: Parameter `*a->d`
      35.   }
      36.   
      37. > int bn_mul_mont_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
      38.                             BN_MONT_CTX *mont, BN_CTX *ctx)
      39.   {

crypto/bn/bn_mont.c:70:14: Call
      68.               goto err;
      69.       } else {
      70.           if (!BN_mul(tmp, a, b, ctx))
                         ^
      71.               goto err;
      72.       }

crypto/bn/bn_mul.c:497:1: Parameter `*a->d`
        495.   #endif                          /* BN_RECURSION */
        496.   
        497. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
        498.   {
        499.       int ret = 0;

crypto/bn/bn_mul.c:577:17: Call
        575.                   if (bn_wexpand(rr, k * 4) == NULL)
        576.                       goto err;
        577.                   bn_mul_part_recursive(rr->d, a->d, b->d,
                               ^
        578.                                         j, al - j, bl - j, t->d);
        579.               } else {            /* al <= j || bl <= j */

crypto/bn/bn_mul.c:322:1: Parameter `*a`
          320.    */
          321.   /* tnX may not be negative but less than n */
          322. > void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n,
          323.                              int tna, int tnb, BN_ULONG *t)
          324.   {

crypto/bn/bn_mul.c:335:10: Call
          333.   
          334.       /* r=(a[0]-a[1])*(b[1]-b[0]) */
          335.       c1 = bn_cmp_part_words(a, &(a[n]), tna, n - tna);
                          ^
          336.       c2 = bn_cmp_part_words(&(b[n]), b, tnb, tnb - n);
          337.       neg = 0;

crypto/bn/bn_lib.c:707:1: Parameter `*b`
            705.    */
            706.   
            707. > int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, int cl, int dl)
            708.   {
            709.       int n, i;

crypto/bn/bn_mul.c:340:9: Call
          338.       switch (c1 * 3 + c2) {
          339.       case -4:
          340.           bn_sub_part_words(t, &(a[n]), a, tna, tna - n); /* - */
                         ^
          341.           bn_sub_part_words(&(t[n]), b, &(b[n]), tnb, n - tnb); /* - */
          342.           break;

crypto/bn/bn_mul.c:27:1: <RHS trace>
25.    */
26.   
27. > BN_ULONG bn_sub_part_words(BN_ULONG *r,
28.                              const BN_ULONG *a, const BN_ULONG *b,
29.                              int cl, int dl)

crypto/bn/bn_mul.c:27:1: Parameter `*b`
            25.    */
            26.   
            27. > BN_ULONG bn_sub_part_words(BN_ULONG *r,
            28.                              const BN_ULONG *a, const BN_ULONG *b,
            29.                              int cl, int dl)

crypto/bn/bn_mul.c:45:13: Assignment
            43.       if (dl < 0) {
            44.           for (;;) {
            45.               t = b[0];
                              ^
            46.               r[0] = (0 - t - c) & BN_MASK2;
            47.               if (t != 0)

crypto/bn/bn_mul.c:46:13: Binary operation: (0 - [0, 1]):unsigned64 by call to `BN_to_montgomery` 
            44.           for (;;) {
            45.               t = b[0];
            46.               r[0] = (0 - t - c) & BN_MASK2;
                              ^
            47.               if (t != 0)
            48.                   c = 1;
