crypto/x509/by_dir.c:298: 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:254:14: Call
252.           ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
253.           j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
254.           if (!BUF_MEM_grow(b, j)) {
                    ^
255.               X509err(X509_F_GET_CERT_BY_SUBJECT, ERR_R_MALLOC_FAILURE);
256.               goto finish;

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

crypto/x509/by_dir.c:298:17: Call
296.                                "%s%08lx.%s%d", ent->dir, h, postfix, k);
297.               } else {
298.                   BIO_snprintf(b->data, b->max,
                       ^
299.                                "%s%c%08lx.%s%d", ent->dir, c, h, postfix, k);
300.               }

crypto/bio/b_print.c:913:1: Parameter `n`
  911.    * function should be renamed, but to what?)
  912.    */
  913. > int BIO_snprintf(char *buf, size_t n, const char *format, ...)
  914.   {
  915.       va_list args;

crypto/bio/b_print.c:920:11: Call
  918.       va_start(args, format);
  919.   
  920.       ret = BIO_vsnprintf(buf, n, format, args);
                   ^
  921.   
  922.       va_end(args);

crypto/bio/b_print.c:926:1: Parameter `n`
    924.   }
    925.   
    926. > int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
    927.   {
    928.       size_t retlen;

crypto/bio/b_print.c:931:9: Call
    929.       int truncated;
    930.   
    931.       if(!_dopr(&buf, NULL, &n, &retlen, &truncated, format, args))
                   ^
    932.           return -1;
    933.   

crypto/bio/b_print.c:102:1: <LHS trace>
100.   #define OSSL_MAX(p,q) ((p >= q) ? p : q)
101.   
102. > static int
103.   _dopr(char **sbuffer,
104.         char **buffer,

crypto/bio/b_print.c:102:1: Parameter `*maxlen`
      100.   #define OSSL_MAX(p,q) ((p >= q) ? p : q)
      101.   
      102. > static int
      103.   _dopr(char **sbuffer,
      104.         char **buffer,

crypto/bio/b_print.c:371:23: Binary operation: ([0, +oo] - 1):unsigned64 by call to `BIO_snprintf` 
      369.        */
      370.       if (buffer == NULL) {
      371.           *truncated = (currlen > *maxlen - 1);
                                   ^
      372.           if (*truncated)
      373.               currlen = *maxlen - 1;
