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


crypto/x509/by_dir.c:305:14: Call
303.           ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
304.           j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
305.           if (!BUF_MEM_grow(b, j)) {
                    ^
306.               X509err(X509_F_GET_CERT_BY_SUBJECT, ERR_R_MALLOC_FAILURE);
307.               goto finish;

crypto/buffer/buffer.c:122:1: Parameter `len`
  120.   }
  121.   
  122. > size_t BUF_MEM_grow(BUF_MEM *str, size_t len)
  123.   {
  124.       char *ret;

crypto/x509/by_dir.c:305:14: Call
303.           ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
304.           j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
305.           if (!BUF_MEM_grow(b, j)) {
                    ^
306.               X509err(X509_F_GET_CERT_BY_SUBJECT, ERR_R_MALLOC_FAILURE);
307.               goto finish;

crypto/buffer/buffer.c:122:1: Parameter `len`
  120.   }
  121.   
  122. > size_t BUF_MEM_grow(BUF_MEM *str, size_t len)
  123.   {
  124.       char *ret;

crypto/x509/by_dir.c:349:17: Call
347.                                "%s%08lx.%s%d", ent->dir, h, postfix, k);
348.               } else {
349.                   BIO_snprintf(b->data, b->max,
                       ^
350.                                "%s%c%08lx.%s%d", ent->dir, c, h, postfix, k);
351.               }

crypto/bio/b_print.c:788:1: Parameter `n`
  786.    * function should be renamed, but to what?)
  787.    */
  788. > int BIO_snprintf(char *buf, size_t n, const char *format, ...)
  789.   {
  790.       va_list args;

crypto/bio/b_print.c:795:11: Call
  793.       va_start(args, format);
  794.   
  795.       ret = BIO_vsnprintf(buf, n, format, args);
                   ^
  796.   
  797.       va_end(args);

crypto/bio/b_print.c:801:1: Parameter `n`
    799.   }
    800.   
    801. > int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
    802.   {
    803.       size_t retlen;

crypto/bio/b_print.c:806:5: Call
    804.       int truncated;
    805.   
    806.       _dopr(&buf, NULL, &n, &retlen, &truncated, format, args);
               ^
    807.   
    808.       if (truncated)

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

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

crypto/bio/b_print.c:418:19: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BIO_snprintf` 
      416.           }
      417.       }
      418.       *truncated = (currlen > *maxlen - 1);
                               ^
      419.       if (*truncated)
      420.           currlen = *maxlen - 1;
