crypto/x509/by_dir.c:293: 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:249:14: Call
247.           ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
248.           j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
249.           if (!BUF_MEM_grow(b, j)) {
                    ^
250.               X509err(X509_F_GET_CERT_BY_SUBJECT, ERR_R_MALLOC_FAILURE);
251.               goto finish;

crypto/buffer/buffer.c:74:1: Parameter `len`
  72.   }
  73.   
  74. > size_t BUF_MEM_grow(BUF_MEM *str, size_t len)
  75.   {
  76.       char *ret;

crypto/x509/by_dir.c:293:17: Call
291.                                "%s%08lx.%s%d", ent->dir, h, postfix, k);
292.               } else {
293.                   BIO_snprintf(b->data, b->max,
                       ^
294.                                "%s%c%08lx.%s%d", ent->dir, c, h, postfix, k);
295.               }

crypto/bio/b_print.c:898:1: Parameter `n`
  896.    * function should be renamed, but to what?)
  897.    */
  898. > int BIO_snprintf(char *buf, size_t n, const char *format, ...)
  899.   {
  900.       va_list args;

crypto/bio/b_print.c:905:11: Call
  903.       va_start(args, format);
  904.   
  905.       ret = BIO_vsnprintf(buf, n, format, args);
                   ^
  906.   
  907.       va_end(args);

crypto/bio/b_print.c:911:1: Parameter `n`
    909.   }
    910.   
    911. > int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
    912.   {
    913.       size_t retlen;

crypto/bio/b_print.c:916:10: Call
    914.       int truncated;
    915.   
    916.       if (!_dopr(&buf, NULL, &n, &retlen, &truncated, format, args))
                    ^
    917.           return -1;
    918.   

crypto/bio/b_print.c:83:1: <LHS trace>
81.   #define OSSL_MAX(p,q) ((p >= q) ? p : q)
82.   
83. > static int
84.   _dopr(char **sbuffer,
85.         char **buffer,

crypto/bio/b_print.c:83:1: Parameter `*maxlen`
      81.   #define OSSL_MAX(p,q) ((p >= q) ? p : q)
      82.   
      83. > static int
      84.   _dopr(char **sbuffer,
      85.         char **buffer,

crypto/bio/b_print.c:353:23: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BIO_snprintf` 
      351.        */
      352.       if (buffer == NULL) {
      353.           *truncated = (currlen > *maxlen - 1);
                                   ^
      354.           if (*truncated)
      355.               currlen = *maxlen - 1;
