crypto/bn/bn_print.c:151: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `BIO_snprintf`.
Showing all 12 steps of the trace


crypto/bn/bn_print.c:119:9: Call
117.        *     <= BN_num_bits(a)/10 + BN_num_bits/1000 + 1 + 1
118.        */
119.       i = BN_num_bits(a) * 3;
               ^
120.       num = (i / 10 + i / 1000 + 1) + 1;
121.       bn_data = OPENSSL_malloc((num / BN_DEC_NUM + 1) * sizeof(BN_ULONG));

crypto/bn/bn_lib.c:220:9: Assignment
  218.   
  219.       if (BN_is_zero(a))
  220.           return 0;
                 ^
  221.       return ((i * BN_BITS2) + BN_num_bits_word(a->d[i]));
  222.   }

crypto/bn/bn_print.c:119:5: Assignment
117.        *     <= BN_num_bits(a)/10 + BN_num_bits/1000 + 1 + 1
118.        */
119.       i = BN_num_bits(a) * 3;
           ^
120.       num = (i / 10 + i / 1000 + 1) + 1;
121.       bn_data = OPENSSL_malloc((num / BN_DEC_NUM + 1) * sizeof(BN_ULONG));

crypto/bn/bn_print.c:120:5: Assignment
118.        */
119.       i = BN_num_bits(a) * 3;
120.       num = (i / 10 + i / 1000 + 1) + 1;
           ^
121.       bn_data = OPENSSL_malloc((num / BN_DEC_NUM + 1) * sizeof(BN_ULONG));
122.       buf = OPENSSL_malloc(num + 3);

crypto/bn/bn_print.c:151:9: Call
149.            * order.
150.            */
151.           BIO_snprintf(p, BUF_REMAIN, BN_DEC_FMT1, *lp);
               ^
152.           while (*p)
153.               p++;

crypto/bio/b_print.c:829:1: Parameter `n`
  827.    * function should be renamed, but to what?)
  828.    */
  829. > int BIO_snprintf(char *buf, size_t n, const char *format, ...)
  830.   {
  831.       va_list args;

crypto/bio/b_print.c:836:11: Call
  834.       va_start(args, format);
  835.   
  836.       ret = BIO_vsnprintf(buf, n, format, args);
                   ^
  837.   
  838.       va_end(args);

crypto/bio/b_print.c:842:1: Parameter `n`
    840.   }
    841.   
    842. > int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
    843.   {
    844.       size_t retlen;

crypto/bio/b_print.c:847:9: Call
    845.       int truncated;
    846.   
    847.       if(!_dopr(&buf, NULL, &n, &retlen, &truncated, format, args))
                   ^
    848.           return -1;
    849.   

crypto/bio/b_print.c:167:1: <LHS trace>
165.   #define OSSL_MAX(p,q) ((p >= q) ? p : q)
166.   
167. > static int
168.   _dopr(char **sbuffer,
169.         char **buffer,

crypto/bio/b_print.c:167:1: Parameter `*maxlen`
      165.   #define OSSL_MAX(p,q) ((p >= q) ? p : q)
      166.   
      167. > static int
      168.   _dopr(char **sbuffer,
      169.         char **buffer,

crypto/bio/b_print.c:425:19: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BIO_snprintf` 
      423.           }
      424.       }
      425.       *truncated = (currlen > *maxlen - 1);
                               ^
      426.       if (*truncated)
      427.           currlen = *maxlen - 1;
