crypto/x509/by_dir.c:302: 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:258:14: Call
256.           ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
257.           j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
258.           if (!BUF_MEM_grow(b, j)) {
                    ^
259.               X509err(X509_F_GET_CERT_BY_SUBJECT, ERR_R_MALLOC_FAILURE);
260.               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:258:14: Call
256.           ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
257.           j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
258.           if (!BUF_MEM_grow(b, j)) {
                    ^
259.               X509err(X509_F_GET_CERT_BY_SUBJECT, ERR_R_MALLOC_FAILURE);
260.               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:302:17: Call
300.                                "%s%08lx.%s%d", ent->dir, h, postfix, k);
301.               } else {
302.                   BIO_snprintf(b->data, b->max,
                       ^
303.                                "%s%c%08lx.%s%d", ent->dir, c, h, postfix, k);
304.               }

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

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

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

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

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;
