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:130:5: Assignment
  128.   const BIGNUM *BN_value_one(void)
  129.   {
  130.       static const BN_ULONG data_one = 1L;
             ^
  131.       static const BIGNUM const_one =
  132.           { (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:991:1: Parameter `*a->d`
  989.   }
  990.   
  991. > int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
  992.                        BN_CTX *ctx)
  993.   {

crypto/bn/bn_lib.c:994:12: Call
  992.                        BN_CTX *ctx)
  993.   {
  994.       return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx);
                    ^
  995.   }
  996.   

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:877:1: Parameter `*a->d`
      875.   #endif                          /* BN_RECURSION */
      876.   
      877. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
      878.   {
      879.       int ret = 0;

crypto/bn/bn_mul.c:958:17: Call
      956.                   if (bn_wexpand(rr, k * 4) == NULL)
      957.                       goto err;
      958.                   bn_mul_part_recursive(rr->d, a->d, b->d,
                             ^
      959.                                         j, al - j, bl - j, t->d);
      960.               } else {            /* al <= j || bl <= j */

crypto/bn/bn_mul.c:528:1: Parameter `*a`
        526.    */
        527.   /* tnX may not be negative but less than n */
        528. > void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n,
        529.                              int tna, int tnb, BN_ULONG *t)
        530.   {

crypto/bn/bn_mul.c:541:10: Call
        539.   
        540.       /* r=(a[0]-a[1])*(b[1]-b[0]) */
        541.       c1 = bn_cmp_part_words(a, &(a[n]), tna, n - tna);
                        ^
        542.       c2 = bn_cmp_part_words(&(b[n]), b, tnb, tnb - n);
        543.       neg = 0;

crypto/bn/bn_lib.c:849:1: Parameter `*b`
          847.    */
          848.   
          849. > int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, int cl, int dl)
          850.   {
          851.       int n, i;

crypto/bn/bn_mul.c:546:9: Call
        544.       switch (c1 * 3 + c2) {
        545.       case -4:
        546.           bn_sub_part_words(t, &(a[n]), a, tna, tna - n); /* - */
                       ^
        547.           bn_sub_part_words(&(t[n]), b, &(b[n]), tnb, n - tnb); /* - */
        548.           break;

crypto/bn/bn_mul.c:75:1: <RHS trace>
73.    */
74.   
75. > BN_ULONG bn_sub_part_words(BN_ULONG *r,
76.                              const BN_ULONG *a, const BN_ULONG *b,
77.                              int cl, int dl)

crypto/bn/bn_mul.c:75:1: Parameter `*b`
          73.    */
          74.   
          75. > BN_ULONG bn_sub_part_words(BN_ULONG *r,
          76.                              const BN_ULONG *a, const BN_ULONG *b,
          77.                              int cl, int dl)

crypto/bn/bn_mul.c:93:13: Assignment
          91.       if (dl < 0) {
          92.           for (;;) {
          93.               t = b[0];
                            ^
          94.               r[0] = (0 - t - c) & BN_MASK2;
          95.               if (t != 0)

crypto/bn/bn_mul.c:94:13: Binary operation: (0 - [0, 1]):unsigned64 by call to `BN_to_montgomery` 
          92.           for (;;) {
          93.               t = b[0];
          94.               r[0] = (0 - t - c) & BN_MASK2;
                            ^
          95.               if (t != 0)
          96.                   c = 1;
