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


crypto/x509/by_dir.c:295:14: Call
293.           ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
294.           j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
295.           if (!BUF_MEM_grow(b, j)) {
                    ^
296.               X509err(X509_F_GET_CERT_BY_SUBJECT, ERR_R_MALLOC_FAILURE);
297.               goto finish;

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

crypto/x509/by_dir.c:339:17: Call
337.                                "%s%08lx.%s%d", ent->dir, h, postfix, k);
338.               } else {
339.                   BIO_snprintf(b->data, b->max,
                       ^
340.                                "%s%c%08lx.%s%d", ent->dir, c, h, postfix, k);
341.               }

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;
