Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/tokyocabinet-1.4.48/tctmgr.c
Examining data/tokyocabinet-1.4.48/tctdb.c
Examining data/tokyocabinet-1.4.48/bros/sqltest.c
Examining data/tokyocabinet-1.4.48/bros/sdbmtest.c
Examining data/tokyocabinet-1.4.48/bros/qdbmtest.c
Examining data/tokyocabinet-1.4.48/bros/gdbmtest.c
Examining data/tokyocabinet-1.4.48/bros/ndbmtest.c
Examining data/tokyocabinet-1.4.48/bros/tdbtest.c
Examining data/tokyocabinet-1.4.48/bros/bdbtest.c
Examining data/tokyocabinet-1.4.48/bros/cmpsqltctest.c
Examining data/tokyocabinet-1.4.48/bros/tctest.c
Examining data/tokyocabinet-1.4.48/bros/maptest.cc
Examining data/tokyocabinet-1.4.48/bros/cdbtest.c
Examining data/tokyocabinet-1.4.48/tchmgr.c
Examining data/tokyocabinet-1.4.48/tcatest.c
Examining data/tokyocabinet-1.4.48/tcbmgr.c
Examining data/tokyocabinet-1.4.48/md5.c
Examining data/tokyocabinet-1.4.48/tcadb.h
Examining data/tokyocabinet-1.4.48/example/tchdbex.c
Examining data/tokyocabinet-1.4.48/example/tctchat.c
Examining data/tokyocabinet-1.4.48/example/tcadbex.c
Examining data/tokyocabinet-1.4.48/example/tcutilex.c
Examining data/tokyocabinet-1.4.48/example/tcfdbex.c
Examining data/tokyocabinet-1.4.48/example/tctdbex.c
Examining data/tokyocabinet-1.4.48/example/tcbdbex.c
Examining data/tokyocabinet-1.4.48/example/tctsearch.c
Examining data/tokyocabinet-1.4.48/tcadb.c
Examining data/tokyocabinet-1.4.48/tcamgr.c
Examining data/tokyocabinet-1.4.48/tcawmgr.c
Examining data/tokyocabinet-1.4.48/tcbdb.h
Examining data/tokyocabinet-1.4.48/tcfmgr.c
Examining data/tokyocabinet-1.4.48/tcutil.h
Examining data/tokyocabinet-1.4.48/tctmttest.c
Examining data/tokyocabinet-1.4.48/tcttest.c
Examining data/tokyocabinet-1.4.48/myconf.c
Examining data/tokyocabinet-1.4.48/tcamttest.c
Examining data/tokyocabinet-1.4.48/tcbmttest.c
Examining data/tokyocabinet-1.4.48/tcucodec.c
Examining data/tokyocabinet-1.4.48/tcutest.c
Examining data/tokyocabinet-1.4.48/tchtest.c
Examining data/tokyocabinet-1.4.48/tchdb.h
Examining data/tokyocabinet-1.4.48/tcumttest.c
Examining data/tokyocabinet-1.4.48/tcfdb.h
Examining data/tokyocabinet-1.4.48/tcftest.c
Examining data/tokyocabinet-1.4.48/tctdb.h
Examining data/tokyocabinet-1.4.48/tchmttest.c
Examining data/tokyocabinet-1.4.48/md5.h
Examining data/tokyocabinet-1.4.48/tcfmttest.c
Examining data/tokyocabinet-1.4.48/tcbtest.c
Examining data/tokyocabinet-1.4.48/tcfdb.c
Examining data/tokyocabinet-1.4.48/tchdb.c
Examining data/tokyocabinet-1.4.48/tcbdb.c
Examining data/tokyocabinet-1.4.48/tcutil.c
Examining data/tokyocabinet-1.4.48/myconf.h

FINAL RESULTS:

data/tokyocabinet-1.4.48/bros/maptest.cc:119:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcamttest.c:115:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcatest.c:115:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcatest.c:1331:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s.tch", name);
data/tokyocabinet-1.4.48/tcatest.c:1355:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s.tcb", name);
data/tokyocabinet-1.4.48/tcatest.c:1366:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s.adb.tch#mode=wct#bnum=%d", name, rnum);
data/tokyocabinet-1.4.48/tcatest.c:1369:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s.adb.tcb#mode=wct#lmemb=256#nmemb=512", name);
data/tokyocabinet-1.4.48/tcatest.c:1651:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s.tch", name);
data/tokyocabinet-1.4.48/tcatest.c:1660:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s.tcb", name);
data/tokyocabinet-1.4.48/tcawmgr.c:125:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s.tch#mode=%s", DBNAME, wmode ? "w" : "r");
data/tokyocabinet-1.4.48/tcawmgr.c:127:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s.tcb#mode=%s", DBNAME, wmode ? "w" : "r");
data/tokyocabinet-1.4.48/tcawmgr.c:129:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s.tcf#mode=%s", DBNAME, wmode ? "w" : "r");
data/tokyocabinet-1.4.48/tcbdb.c:4161:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    wp += sprintf(wp, " [%s:%s]", dbuf, dbuf + rec->ksiz + TCALIGNPAD(rec->ksiz));
data/tokyocabinet-1.4.48/tcbdb.c:4165:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        wp += sprintf(wp, ":%s", (char *)TCLISTVALPTR(rest, j));
data/tokyocabinet-1.4.48/tcbdb.c:4197:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    wp += sprintf(wp, " [%llx:%s]", (unsigned long long)idx->pid, ebuf);
data/tokyocabinet-1.4.48/tcbmttest.c:172:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcbtest.c:135:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcbtest.c:1095:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      int ksiz = sprintf(kbuf, fmt, myrand(pnum));
data/tokyocabinet-1.4.48/tcfdb.c:1091:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    int osiz = sprintf(obuf, "ERROR:%s:%d:%s:%s:%d:%s:%d:%s\n", filename, line, func,
data/tokyocabinet-1.4.48/tcfdb.c:1419:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(hbuf, "%s\n%s:%d\n", FDBMAGICDATA, _TC_FORMATVER, _TC_LIBVER);
data/tokyocabinet-1.4.48/tcfdb.c:2713:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(wp, " rpath=%s", fdb->rpath ? fdb->rpath : "-");
data/tokyocabinet-1.4.48/tcfdb.c:2721:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(wp, " path=%s", fdb->path ? fdb->path : "-");
data/tokyocabinet-1.4.48/tcfmttest.c:154:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcftest.c:116:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tchdb.c:1280:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    int osiz = sprintf(obuf, "ERROR:%s:%d:%s:%s:%d:%s:%d:%s\n", filename, line, func,
data/tokyocabinet-1.4.48/tchdb.c:1993:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(hbuf, "%s\n%s:%d\n", HDBMAGICDATA, _TC_FORMATVER, _TC_LIBVER);
data/tokyocabinet-1.4.48/tchdb.c:5055:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(wp, " rpath=%s", hdb->rpath ? hdb->rpath : "-");
data/tokyocabinet-1.4.48/tchdb.c:5062:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(wp, " path=%s", hdb->path ? hdb->path : "-");
data/tokyocabinet-1.4.48/tchmttest.c:174:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tchtest.c:122:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tchtest.c:832:18:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      int ksiz = sprintf(kbuf, fmt, myrand(pnum));
data/tokyocabinet-1.4.48/tctmttest.c:155:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcttest.c:122:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcucodec.c:145:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, ap);
data/tokyocabinet-1.4.48/tcumttest.c:105:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcutest.c:120:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, ap);
data/tokyocabinet-1.4.48/tcutil.c:273:20:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            tlen = sprintf(tbuf, cbuf, va_arg(ap, long long));
data/tokyocabinet-1.4.48/tcutil.c:275:20:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            tlen = sprintf(tbuf, cbuf, va_arg(ap, long));
data/tokyocabinet-1.4.48/tcutil.c:277:20:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            tlen = sprintf(tbuf, cbuf, va_arg(ap, int));
data/tokyocabinet-1.4.48/tcutil.c:283:20:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            tlen = sprintf(tbuf, cbuf, va_arg(ap, unsigned long long));
data/tokyocabinet-1.4.48/tcutil.c:285:20:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            tlen = sprintf(tbuf, cbuf, va_arg(ap, unsigned long));
data/tokyocabinet-1.4.48/tcutil.c:287:20:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            tlen = sprintf(tbuf, cbuf, va_arg(ap, unsigned int));
data/tokyocabinet-1.4.48/tcutil.c:293:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            tlen = snprintf(tbuf, sizeof(tbuf), cbuf, va_arg(ap, long double));
data/tokyocabinet-1.4.48/tcutil.c:295:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            tlen = snprintf(tbuf, sizeof(tbuf), cbuf, va_arg(ap, double));
data/tokyocabinet-1.4.48/tcutil.c:5425:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "%04d-%02d-%02dT%02d:%02d:%02d%s",
data/tokyocabinet-1.4.48/tcutil.c:6941:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "%s%c%s", buf, MYPATHCHR, pv);
data/tokyocabinet-1.4.48/tcutil.c:7228:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  int rv = system(tcxstrptr(phrase));
data/tokyocabinet-1.4.48/tcutil.c:7760:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(wp, "=?%s?%c?", encname, base ? 'B' : 'Q');
data/tokyocabinet-1.4.48/tcutil.c:7762:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(wp, "%s?=", enc);
data/tokyocabinet-1.4.48/tcutil.c:7794:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      wp += sprintf(wp, "%s", dec);
data/tokyocabinet-1.4.48/tcutil.c:8401:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(key, "%s_filename", name);
data/tokyocabinet-1.4.48/tcutil.h:3881:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, __VA_ARGS__); \
data/tokyocabinet-1.4.48/bros/bdbtest.c:47:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("HIDEPRGR")) showprgr = FALSE;
data/tokyocabinet-1.4.48/bros/bdbtest.c:197:11:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (lrand48() + cnt++) & 0x7FFFFFFF;
data/tokyocabinet-1.4.48/bros/cdbtest.c:38:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("HIDEPRGR")) showprgr = FALSE;
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:175:11:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (lrand48() + cnt++) & 0x7FFFFFFF;
data/tokyocabinet-1.4.48/bros/gdbmtest.c:39:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("HIDEPRGR")) showprgr = FALSE;
data/tokyocabinet-1.4.48/bros/ndbmtest.c:40:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("HIDEPRGR")) showprgr = FALSE;
data/tokyocabinet-1.4.48/bros/qdbmtest.c:45:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("HIDEPRGR")) showprgr = FALSE;
data/tokyocabinet-1.4.48/bros/qdbmtest.c:195:11:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (lrand48() + cnt++) & 0x7FFFFFFF;
data/tokyocabinet-1.4.48/bros/sdbmtest.c:40:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("HIDEPRGR")) showprgr = FALSE;
data/tokyocabinet-1.4.48/bros/sqltest.c:40:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("HIDEPRGR")) showprgr = FALSE;
data/tokyocabinet-1.4.48/bros/sqltest.c:179:11:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (lrand48() + cnt++) & 0x7FFFFFFF;
data/tokyocabinet-1.4.48/bros/tctest.c:56:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("HIDEPRGR")) showprgr = FALSE;
data/tokyocabinet-1.4.48/bros/tctest.c:324:11:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (lrand48() + cnt++) & 0x7FFFFFFF;
data/tokyocabinet-1.4.48/bros/tdbtest.c:40:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(getenv("HIDEPRGR")) showprgr = FALSE;
data/tokyocabinet-1.4.48/example/tctchat.c:27:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *query = getenv("QUERY_STRING");
data/tokyocabinet-1.4.48/example/tctchat.c:28:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *rp = getenv("CONTENT_LENGTH");
data/tokyocabinet-1.4.48/example/tctchat.c:45:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  rp = getenv("REQUEST_METHOD");
data/tokyocabinet-1.4.48/example/tctsearch.c:27:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *query = getenv("QUERY_STRING");
data/tokyocabinet-1.4.48/tcamttest.c:71:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tcamttest.c:73:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tcamttest.c:74:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tcatest.c:61:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tcatest.c:63:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tcatest.c:1219:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tcawmgr.c:70:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  g_scriptname = getenv("SCRIPT_NAME");
data/tokyocabinet-1.4.48/tcawmgr.c:165:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if((rp = getenv("REQUEST_METHOD")) != NULL && !strcmp(rp, "POST") &&
data/tokyocabinet-1.4.48/tcawmgr.c:166:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
     (rp = getenv("CONTENT_LENGTH")) != NULL && (len = tcatoix(rp)) > 0){
data/tokyocabinet-1.4.48/tcawmgr.c:173:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  } else if((rp = getenv("QUERY_STRING")) != NULL){
data/tokyocabinet-1.4.48/tcawmgr.c:177:49:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if(buf && len > 0) tcwwwformdecode2(buf, len, getenv("CONTENT_TYPE"), params);
data/tokyocabinet-1.4.48/tcbmgr.c:63:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tcbmttest.c:114:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tcbmttest.c:116:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tcbmttest.c:117:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tcbmttest.c:1491:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tcbtest.c:71:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tcbtest.c:73:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tcbtest.c:74:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tcbtest.c:2408:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tcfmgr.c:59:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tcfmttest.c:102:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tcfmttest.c:104:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tcfmttest.c:105:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tcfmttest.c:1088:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tcftest.c:61:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tcftest.c:63:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tcftest.c:64:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tcftest.c:1550:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tchmgr.c:59:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tchmttest.c:115:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tchmttest.c:117:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tchmttest.c:118:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tchmttest.c:1499:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tchtest.c:64:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tchtest.c:66:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tchtest.c:67:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tchtest.c:1926:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tctmgr.c:65:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tctmttest.c:99:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tctmttest.c:101:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tctmttest.c:102:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tctmttest.c:1427:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tcttest.c:63:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tcttest.c:65:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tcttest.c:66:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ebuf = getenv("TCDBGFD");
data/tokyocabinet-1.4.48/tcttest.c:1991:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tcumttest.c:66:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tcumttest.c:68:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tcutest.c:59:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *ebuf = getenv("TCRNDSEED");
data/tokyocabinet-1.4.48/tcutest.c:61:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(g_randseed);
data/tokyocabinet-1.4.48/tcutest.c:1859:32:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        if(myrand(10000) == 0) srand((unsigned int)(tctime() * 1000) % UINT_MAX);
data/tokyocabinet-1.4.48/tcutil.c:6922:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  if(realpath(path, buf)) return tcstrdup(buf);
data/tokyocabinet-1.4.48/tcutil.c:6928:11:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      if(!realpath(prefix, buf)){
data/tokyocabinet-1.4.48/tcutil.c:6935:11:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      if(!realpath(MYCDIRSTR, buf)) return NULL;
data/tokyocabinet-1.4.48/bros/bdbtest.c:99:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/bdbtest.c:125:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/bdbtest.c:156:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/bdbtest.c:187:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/bdbtest.c:206:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/bdbtest.c:223:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(dbp->open(dbp, NULL, name, NULL, DB_HASH, DB_CREATE | DB_TRUNCATE, 00644) != 0){
data/tokyocabinet-1.4.48/bros/bdbtest.c:234:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/bdbtest.c:269:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/bdbtest.c:281:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(dbp->open(dbp, NULL, name, NULL, DB_HASH, DB_RDONLY, 00644) != 0){
data/tokyocabinet-1.4.48/bros/bdbtest.c:292:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/bdbtest.c:325:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/bdbtest.c:342:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(dbp->open(dbp, NULL, name, NULL, DB_BTREE, DB_CREATE | DB_TRUNCATE, 00644) != 0){
data/tokyocabinet-1.4.48/bros/bdbtest.c:353:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", rnd ? myrand() % rnum + 1 : i);
data/tokyocabinet-1.4.48/bros/bdbtest.c:386:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/bdbtest.c:398:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(dbp->open(dbp, NULL, name, NULL, DB_BTREE, DB_RDONLY, 00644) != 0){
data/tokyocabinet-1.4.48/bros/bdbtest.c:409:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", rnd ? myrand() % rnum + 1 : i);
data/tokyocabinet-1.4.48/bros/cdbtest.c:83:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/cdbtest.c:109:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/cdbtest.c:120:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[32];
data/tokyocabinet-1.4.48/bros/cdbtest.c:123:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(name, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1){
data/tokyocabinet-1.4.48/bros/cdbtest.c:136:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/cdbtest.c:171:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], *val;
data/tokyocabinet-1.4.48/bros/cdbtest.c:174:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(name, O_RDONLY, 0644)) == -1){
data/tokyocabinet-1.4.48/bros/cdbtest.c:183:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sql[SQLBUFSIZ], *errmsg;
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:50:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "CREATE TABLE tbl ( k TEXT PRIMARY KEY, a TEXT, b INTEGER,"
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:53:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "CREATE INDEX tbl_s ON tbl ( a );");
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:55:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "CREATE INDEX tbl_n ON tbl ( b );");
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:57:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "PRAGMA cache_size = %d;", RECORDNUM);
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:59:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "BEGIN TRANSACTION;");
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:62:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(sql, "INSERT INTO tbl VALUES ( '%08d', '%08d', %d, '%08d', %d );",
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:66:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "END TRANSACTION;");
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sql[SQLBUFSIZ], *errmsg;
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:83:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "PRAGMA cache_size = %d;", RECORDNUM);
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:86:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(sql, "SELECT * FROM tbl WHERE a = '%08d';", myrand() % RECORDNUM + 1);
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[SQLBUFSIZ];
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:118:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      size = sprintf(buf, "%08d", j);
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:120:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      size = sprintf(buf, "%d", myrand() % RECORDNUM);
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:122:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      size = sprintf(buf, "%08d", myrand() % RECORDNUM);
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:124:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      size = sprintf(buf, "%d", j);
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:126:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      size = sprintf(buf, "%08d", j);
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[SQLBUFSIZ];
data/tokyocabinet-1.4.48/bros/cmpsqltctest.c:150:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%08d", myrand() % RECORDNUM + 1);
data/tokyocabinet-1.4.48/bros/gdbmtest.c:84:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/gdbmtest.c:110:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/gdbmtest.c:122:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/gdbmtest.c:138:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/gdbmtest.c:171:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/gdbmtest.c:188:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:332:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:333:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:346:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:347:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:377:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:378:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:391:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:392:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:422:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:423:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:436:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:437:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:465:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:466:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:479:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:480:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:508:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:509:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:522:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:523:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:553:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:554:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:567:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:568:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:598:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:599:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:612:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:613:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:642:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:643:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/maptest.cc:656:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/maptest.cc:657:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/ndbmtest.c:85:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/ndbmtest.c:111:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/ndbmtest.c:123:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/ndbmtest.c:133:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/ndbmtest.c:166:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/ndbmtest.c:177:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/qdbmtest.c:97:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/qdbmtest.c:123:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/qdbmtest.c:154:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/qdbmtest.c:185:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/qdbmtest.c:203:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/qdbmtest.c:214:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/qdbmtest.c:244:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/qdbmtest.c:255:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/qdbmtest.c:285:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/qdbmtest.c:301:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", rnd ? myrand() % rnum + 1 : i);
data/tokyocabinet-1.4.48/bros/qdbmtest.c:332:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/qdbmtest.c:348:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", rnd ? myrand() % rnum + 1 : i);
data/tokyocabinet-1.4.48/bros/sdbmtest.c:85:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/sdbmtest.c:111:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/sdbmtest.c:123:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/sdbmtest.c:133:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/sdbmtest.c:166:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/sdbmtest.c:177:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/sqltest.c:91:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/sqltest.c:117:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/sqltest.c:143:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/sqltest.c:169:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/sqltest.c:192:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char sql[RECBUFSIZ], *errmsg;
data/tokyocabinet-1.4.48/bros/sqltest.c:201:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "CREATE TABLE tbl ( key TEXT PRIMARY KEY, val TEXT );");
data/tokyocabinet-1.4.48/bros/sqltest.c:206:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "PRAGMA cache_size = %d;", rnum);
data/tokyocabinet-1.4.48/bros/sqltest.c:211:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "BEGIN TRANSACTION;");
data/tokyocabinet-1.4.48/bros/sqltest.c:220:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "INSERT INTO tbl VALUES ( '%08d', '%08d' );", i, i);
data/tokyocabinet-1.4.48/bros/sqltest.c:237:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "END TRANSACTION;");
data/tokyocabinet-1.4.48/bros/sqltest.c:251:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char sql[RECBUFSIZ], *errmsg;
data/tokyocabinet-1.4.48/bros/sqltest.c:259:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "PRAGMA cache_size = %d;", rnum);
data/tokyocabinet-1.4.48/bros/sqltest.c:268:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "SELECT * FROM tbl WHERE key = '%08d';", i);
data/tokyocabinet-1.4.48/bros/sqltest.c:294:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char sql[RECBUFSIZ], *errmsg;
data/tokyocabinet-1.4.48/bros/sqltest.c:303:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "CREATE TABLE tbl ( key INTEGER PRIMARY KEY, s TEXT, n INTEGER,"
data/tokyocabinet-1.4.48/bros/sqltest.c:309:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "CREATE INDEX tbl_s ON tbl ( s );");
data/tokyocabinet-1.4.48/bros/sqltest.c:314:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "CREATE INDEX tbl_n ON tbl ( n );");
data/tokyocabinet-1.4.48/bros/sqltest.c:319:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "PRAGMA cache_size = %d;", rnum);
data/tokyocabinet-1.4.48/bros/sqltest.c:324:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "BEGIN TRANSACTION;");
data/tokyocabinet-1.4.48/bros/sqltest.c:333:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "INSERT INTO tbl VALUES ( %d, '%08d', %d, '%08d', '%08d' );",
data/tokyocabinet-1.4.48/bros/sqltest.c:350:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "END TRANSACTION;");
data/tokyocabinet-1.4.48/bros/sqltest.c:364:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char sql[RECBUFSIZ], *errmsg;
data/tokyocabinet-1.4.48/bros/sqltest.c:372:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(sql, "PRAGMA cache_size = %d;", rnum);
data/tokyocabinet-1.4.48/bros/sqltest.c:381:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sql, "SELECT * FROM tbl WHERE key = '%08d';", i);
data/tokyocabinet-1.4.48/bros/tctest.c:120:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tctest.c:146:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tctest.c:177:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tctest.c:208:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tctest.c:234:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tctest.c:260:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tctest.c:287:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tctest.c:314:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tctest.c:332:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tctest.c:347:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/tctest.c:379:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tctest.c:393:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/tctest.c:425:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tctest.c:446:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", rnd ? myrand() % rnum + 1 : i);
data/tokyocabinet-1.4.48/bros/tctest.c:479:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tctest.c:498:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", rnd ? myrand() % rnum + 1 : i);
data/tokyocabinet-1.4.48/bros/tctest.c:530:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tctest.c:544:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/tctest.c:576:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tctest.c:620:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pkbuf[RECBUFSIZ], vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tctest.c:647:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    pksiz = sprintf(pkbuf, "%d", i);
data/tokyocabinet-1.4.48/bros/tctest.c:649:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%08d", i);
data/tokyocabinet-1.4.48/bros/tctest.c:651:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%08d", myrand() % i);
data/tokyocabinet-1.4.48/bros/tctest.c:653:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%08d", i);
data/tokyocabinet-1.4.48/bros/tctest.c:655:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%08d", myrand() % rnum);
data/tokyocabinet-1.4.48/bros/tctest.c:689:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tctest.c:708:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    pksiz = sprintf(pkbuf, "%08d", i);
data/tokyocabinet-1.4.48/bros/tdbtest.c:85:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tdbtest.c:111:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/tokyocabinet-1.4.48/bros/tdbtest.c:123:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tdbtest.c:133:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/bros/tdbtest.c:166:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/bros/tdbtest.c:176:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/example/tctchat.c:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[64];
data/tokyocabinet-1.4.48/example/tctchat.c:52:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%.0f", tctime() * 1000);
data/tokyocabinet-1.4.48/example/tctchat.c:76:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char date[64];
data/tokyocabinet-1.4.48/example/tctdbex.c:10:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pkbuf[256];
data/tokyocabinet-1.4.48/example/tctdbex.c:26:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  pksiz = sprintf(pkbuf, "%ld", (long)tctdbgenuid(tdb));
data/tokyocabinet-1.4.48/example/tctdbex.c:35:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  pksiz = sprintf(pkbuf, "12345");
data/tokyocabinet-1.4.48/md5.c:169:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(xbuf, data, 64);
data/tokyocabinet-1.4.48/md5.c:343:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pms->buf + offset, p, copy);
data/tokyocabinet-1.4.48/md5.c:357:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pms->buf, p, left);
data/tokyocabinet-1.4.48/myconf.c:90:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char obuf[ZLIBBUFSIZ];
data/tokyocabinet-1.4.48/myconf.c:109:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf + bsiz, obuf, osiz);
data/tokyocabinet-1.4.48/myconf.c:130:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf + bsiz, obuf, osiz);
data/tokyocabinet-1.4.48/myconf.c:164:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char obuf[ZLIBBUFSIZ];
data/tokyocabinet-1.4.48/myconf.c:183:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf + bsiz, obuf, osiz);
data/tokyocabinet-1.4.48/myconf.c:204:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf + bsiz, obuf, osiz);
data/tokyocabinet-1.4.48/myconf.c:267:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char obuf[BZIPBUFSIZ];
data/tokyocabinet-1.4.48/myconf.c:286:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf + bsiz, obuf, osiz);
data/tokyocabinet-1.4.48/myconf.c:307:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf + bsiz, obuf, osiz);
data/tokyocabinet-1.4.48/myconf.c:330:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char obuf[BZIPBUFSIZ];
data/tokyocabinet-1.4.48/myconf.c:349:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf + bsiz, obuf, osiz);
data/tokyocabinet-1.4.48/myconf.c:370:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf + bsiz, obuf, osiz);
data/tokyocabinet-1.4.48/myconf.c:428:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char wrkmem[LZO1X_1_MEM_COMPRESS];
data/tokyocabinet-1.4.48/myconf.c:474:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(res, ptr, size);
data/tokyocabinet-1.4.48/myconf.c:483:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(res, ptr, size);
data/tokyocabinet-1.4.48/myconf.h:450:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((signed char *)(TC_buf))[0] = 0; \
data/tokyocabinet-1.4.48/myconf.h:458:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((signed char *)(TC_buf))[(TC_len)] = -_TC_rem - 1; \
data/tokyocabinet-1.4.48/myconf.h:460:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((signed char *)(TC_buf))[(TC_len)] = _TC_rem; \
data/tokyocabinet-1.4.48/myconf.h:472:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((signed char *)(TC_buf))[0] = 0; \
data/tokyocabinet-1.4.48/myconf.h:480:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((signed char *)(TC_buf))[(TC_len)] = -_TC_rem - 1; \
data/tokyocabinet-1.4.48/myconf.h:482:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((signed char *)(TC_buf))[(TC_len)] = _TC_rem; \
data/tokyocabinet-1.4.48/myconf.h:496:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      if(((signed char *)(TC_buf))[_TC_i] >= 0){ \
data/tokyocabinet-1.4.48/myconf.h:497:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        TC_num += ((signed char *)(TC_buf))[_TC_i] * _TC_base; \
data/tokyocabinet-1.4.48/myconf.h:500:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      TC_num += _TC_base * (((signed char *)(TC_buf))[_TC_i] + 1) * -1; \
data/tokyocabinet-1.4.48/myconf.h:514:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      if(((signed char *)(TC_buf))[_TC_i] >= 0){ \
data/tokyocabinet-1.4.48/myconf.h:515:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        TC_num += ((signed char *)(TC_buf))[_TC_i] * _TC_base; \
data/tokyocabinet-1.4.48/myconf.h:518:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      TC_num += _TC_base * (((signed char *)(TC_buf))[_TC_i] + 1) * -1; \
data/tokyocabinet-1.4.48/myconf.h:536:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      if(((unsigned char *)(TC_aptr))[_TC_i] != ((unsigned char *)(TC_bptr))[_TC_i]){ \
data/tokyocabinet-1.4.48/myconf.h:536:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      if(((unsigned char *)(TC_aptr))[_TC_i] != ((unsigned char *)(TC_bptr))[_TC_i]){ \
data/tokyocabinet-1.4.48/myconf.h:537:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        (TC_rv) = ((unsigned char *)(TC_aptr))[_TC_i] - ((unsigned char *)(TC_bptr))[_TC_i]; \
data/tokyocabinet-1.4.48/myconf.h:537:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        (TC_rv) = ((unsigned char *)(TC_aptr))[_TC_i] - ((unsigned char *)(TC_bptr))[_TC_i]; \
data/tokyocabinet-1.4.48/tcadb.c:216:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!skel->open || !skel->open(skel->opq, name)){
data/tokyocabinet-1.4.48/tcadb.c:216:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!skel->open || !skel->open(skel->opq, name)){
data/tokyocabinet-1.4.48/tcadb.c:409:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcadb.c:449:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        ksiz = sprintf(numbuf, "%lld", (long long)tctdbgenuid(adb->tdb));
data/tokyocabinet-1.4.48/tcadb.c:481:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcadb.c:525:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        ksiz = sprintf(numbuf, "%lld", (long long)tctdbgenuid(adb->tdb));
data/tokyocabinet-1.4.48/tcadb.c:557:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcadb.c:597:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        ksiz = sprintf(numbuf, "%lld", (long long)tctdbgenuid(adb->tdb));
data/tokyocabinet-1.4.48/tcadb.c:911:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcadb.c:949:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        ksiz = sprintf(numbuf, "%lld", (long long)tctdbgenuid(adb->tdb));
data/tokyocabinet-1.4.48/tcadb.c:974:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcadb.c:1012:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        ksiz = sprintf(numbuf, "%lld", (long long)tctdbgenuid(adb->tdb));
data/tokyocabinet-1.4.48/tcadb.c:1259:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tsbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcadb.c:1260:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tsbuf, "%llu", (unsigned long long)(tctime() * 1000000));
data/tokyocabinet-1.4.48/tcadb.c:1261:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *args[2];
data/tokyocabinet-1.4.48/tcadb.c:3213:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcadb.c:3214:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          int len = sprintf(numbuf, "%d", tctdbqrycount(qry));
data/tokyocabinet-1.4.48/tcadb.c:3238:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcadb.c:3239:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int nsiz = sprintf(numbuf, "%lld", (long long)tctdbgenuid(adb->tdb));
data/tokyocabinet-1.4.48/tcadb.c:3512:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stack[TCNUMBUFSIZ*8];
data/tokyocabinet-1.4.48/tcadb.c:3521:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &ksiz, sizeof(ksiz));
data/tokyocabinet-1.4.48/tcadb.c:3523:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcadb.c:3525:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcadb.h:427:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  bool (*open)(void *, const char *);
data/tokyocabinet-1.4.48/tcamttest.c:475:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcamttest.c:476:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + i + 1);
data/tokyocabinet-1.4.48/tcamttest.c:499:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcamttest.c:500:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", base + i + 1);
data/tokyocabinet-1.4.48/tcamttest.c:525:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcamttest.c:526:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", base + i + 1);
data/tokyocabinet-1.4.48/tcatest.c:210:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)kbuf)[ksiz];
data/tokyocabinet-1.4.48/tcatest.c:213:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)vbuf)[vsiz];
data/tokyocabinet-1.4.48/tcatest.c:401:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:402:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tcatest.c:455:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:456:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", i);
data/tokyocabinet-1.4.48/tcatest.c:512:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:513:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", i);
data/tokyocabinet-1.4.48/tcatest.c:567:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:568:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(pnum) + 1);
data/tokyocabinet-1.4.48/tcatest.c:621:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:622:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tcatest.c:635:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:636:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", i);
data/tokyocabinet-1.4.48/tcatest.c:661:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:662:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcatest.c:663:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:713:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:714:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcatest.c:723:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:724:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tcatest.c:725:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:734:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tbuf[PATH_MAX];
data/tokyocabinet-1.4.48/tcatest.c:752:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:753:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tcatest.c:807:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char abuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:808:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int asiz = sprintf(abuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcatest.c:820:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:821:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "(%d)", i);
data/tokyocabinet-1.4.48/tcatest.c:876:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:877:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcatest.c:878:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:879:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int vsiz = sprintf(vbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcatest.c:912:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:913:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcatest.c:914:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:915:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int vsiz = sprintf(vbuf, "[%d]", myrand(rnum));
data/tokyocabinet-1.4.48/tcatest.c:962:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:963:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcatest.c:964:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:965:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int vsiz = sprintf(vbuf, "((%d))", myrand(rnum));
data/tokyocabinet-1.4.48/tcatest.c:1061:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:1062:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int size = sprintf(buf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcatest.c:1069:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[i];
data/tokyocabinet-1.4.48/tcatest.c:1123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:1124:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcatest.c:1125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:1231:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:1232:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", i - 1);
data/tokyocabinet-1.4.48/tcatest.c:1307:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[PATH_MAX];
data/tokyocabinet-1.4.48/tcatest.c:1396:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:1397:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int ksiz = sprintf(kbuf, "%d", all ? i : myrand(i) + 1);
data/tokyocabinet-1.4.48/tcatest.c:1453:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:1454:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int ksiz = sprintf(kbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcatest.c:1455:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char vbuf[RECBUFSIZ+256];
data/tokyocabinet-1.4.48/tcatest.c:1456:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int vsiz = sprintf(vbuf, "%64d:%d:%d", t, i, myrand(i));
data/tokyocabinet-1.4.48/tcatest.c:1679:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcatest.c:1680:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", i);
data/tokyocabinet-1.4.48/tcawmgr.c:124:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[strlen(DBNAME)+16];
data/tokyocabinet-1.4.48/tcawmgr.c:447:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    int c = ((unsigned char *)vbuf)[j];
data/tokyocabinet-1.4.48/tcbdb.c:191:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open) tcbdbclose(bdb);
data/tokyocabinet-1.4.48/tcbdb.c:215:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->mmtx || bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:238:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:252:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:275:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:288:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:299:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:311:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:326:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:341:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:363:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:385:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:407:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:429:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:451:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:473:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:488:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:525:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:545:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:568:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:613:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:643:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:670:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:685:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:700:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode || bdb->tran){
data/tokyocabinet-1.4.48/tcbdb.c:716:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode || bdb->tran){
data/tokyocabinet-1.4.48/tcbdb.c:732:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode || bdb->tran){
data/tokyocabinet-1.4.48/tcbdb.c:748:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:775:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:791:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:823:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:852:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode || !bdb->tran){
data/tokyocabinet-1.4.48/tcbdb.c:877:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode || !bdb->tran){
data/tokyocabinet-1.4.48/tcbdb.c:883:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(bdb->opaque, bdb->rbopaque, BDBOPAQUESIZ);
data/tokyocabinet-1.4.48/tcbdb.c:903:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:918:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:933:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:970:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:991:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1012:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1040:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1066:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1092:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:1120:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:1141:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1178:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1207:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1244:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1273:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1337:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:1397:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1408:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1419:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1430:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1441:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1452:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1463:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1474:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1485:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1496:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1507:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1518:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1530:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1543:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1565:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:1580:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1621:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:1637:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open || !bdb->wmode){
data/tokyocabinet-1.4.48/tcbdb.c:1654:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &procptr, sizeof(procptr));
data/tokyocabinet-1.4.48/tcbdb.c:1656:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcbdb.c:1677:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1699:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!bdb->open){
data/tokyocabinet-1.4.48/tcbdb.c:1790:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcbdb.c:1794:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcbdb.c:1799:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbdb.c:1803:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbdb.c:1807:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbdb.c:1811:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbdb.c:1815:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbdb.c:1819:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbdb.c:1918:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[(sizeof(uint64_t)+1)*3];
data/tokyocabinet-1.4.48/tcbdb.c:1959:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  step = sprintf(hbuf, "%llx", (unsigned long long)leaf->id);
data/tokyocabinet-1.4.48/tcbdb.c:1986:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[(sizeof(uint64_t)+1)*3];
data/tokyocabinet-1.4.48/tcbdb.c:1988:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  step = sprintf(hbuf, "%llx", (unsigned long long)id);
data/tokyocabinet-1.4.48/tcbdb.c:1990:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char wbuf[BDBPAGEBUFSIZ];
data/tokyocabinet-1.4.48/tcbdb.c:2042:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, rp, ksiz);
data/tokyocabinet-1.4.48/tcbdb.c:2047:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, rp, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:2106:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[(sizeof(uint64_t)+1)*3];
data/tokyocabinet-1.4.48/tcbdb.c:2107:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  int step = sprintf(hbuf, "%llx", (unsigned long long)id);
data/tokyocabinet-1.4.48/tcbdb.c:2209:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(dbuf + rec->ksiz + psiz + rec->vsiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:2230:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(dbuf + rec->ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:2257:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&_vbuf, vbuf, sizeof(double));
data/tokyocabinet-1.4.48/tcbdb.c:2259:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(vbuf, dbuf + rec->ksiz + psiz, sizeof(double));
data/tokyocabinet-1.4.48/tcbdb.c:2262:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&_tmp, dbuf + rec->ksiz + psiz, sizeof(double));
data/tokyocabinet-1.4.48/tcbdb.c:2264:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + rec->ksiz + psiz, &_tmp, sizeof(double));
data/tokyocabinet-1.4.48/tcbdb.c:2265:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(vbuf, dbuf + rec->ksiz + psiz, sizeof(double));
data/tokyocabinet-1.4.48/tcbdb.c:2296:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dbuf + rec->ksiz + psiz, nvbuf, nvsiz);
data/tokyocabinet-1.4.48/tcbdb.c:2314:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(dbuf + rec->ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:2330:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcbdb.c:2333:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:2353:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcbdb.c:2356:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:2486:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[(sizeof(uint64_t)+1)*2];
data/tokyocabinet-1.4.48/tcbdb.c:2508:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  step = sprintf(hbuf, "#%llx", (unsigned long long)(node->id - BDBNODEIDBASE));
data/tokyocabinet-1.4.48/tcbdb.c:2535:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[(sizeof(uint64_t)+1)*2];
data/tokyocabinet-1.4.48/tcbdb.c:2537:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  step = sprintf(hbuf, "#%llx", (unsigned long long)(id - BDBNODEIDBASE));
data/tokyocabinet-1.4.48/tcbdb.c:2539:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char wbuf[BDBPAGEBUFSIZ];
data/tokyocabinet-1.4.48/tcbdb.c:2582:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ebuf, rp, ksiz);
data/tokyocabinet-1.4.48/tcbdb.c:2623:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ebuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcbdb.c:2865:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + rec->ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:3054:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(bdb->opaque, bdb->rbopaque, BDBOPAQUESIZ);
data/tokyocabinet-1.4.48/tcbdb.c:3487:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(tcbdbopaque(tbdb), tcbdbopaque(bdb), BDBLEFTOPQSIZ);
data/tokyocabinet-1.4.48/tcbdb.c:3865:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + rec->ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:3885:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + rec->ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:3950:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dbuf + rec->ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:4090:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[BDBPAGEBUFSIZ];
data/tokyocabinet-1.4.48/tcbdb.c:4092:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "META:");
data/tokyocabinet-1.4.48/tcbdb.c:4093:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " mmtx=%p", (void *)bdb->mmtx);
data/tokyocabinet-1.4.48/tcbdb.c:4094:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cmtx=%p", (void *)bdb->cmtx);
data/tokyocabinet-1.4.48/tcbdb.c:4095:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " hdb=%p", (void *)bdb->hdb);
data/tokyocabinet-1.4.48/tcbdb.c:4096:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " opaque=%p", (void *)bdb->opaque);
data/tokyocabinet-1.4.48/tcbdb.c:4097:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " open=%d", bdb->open);
data/tokyocabinet-1.4.48/tcbdb.c:4097:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  wp += sprintf(wp, " open=%d", bdb->open);
data/tokyocabinet-1.4.48/tcbdb.c:4098:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " wmode=%d", bdb->wmode);
data/tokyocabinet-1.4.48/tcbdb.c:4099:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " lmemb=%u", bdb->lmemb);
data/tokyocabinet-1.4.48/tcbdb.c:4100:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " nmemb=%u", bdb->nmemb);
data/tokyocabinet-1.4.48/tcbdb.c:4101:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " opts=%u", bdb->opts);
data/tokyocabinet-1.4.48/tcbdb.c:4102:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " root=%llx", (unsigned long long)bdb->root);
data/tokyocabinet-1.4.48/tcbdb.c:4103:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " first=%llx", (unsigned long long)bdb->first);
data/tokyocabinet-1.4.48/tcbdb.c:4104:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " last=%llx", (unsigned long long)bdb->last);
data/tokyocabinet-1.4.48/tcbdb.c:4105:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " lnum=%llu", (unsigned long long)bdb->lnum);
data/tokyocabinet-1.4.48/tcbdb.c:4106:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " nnum=%llu", (unsigned long long)bdb->nnum);
data/tokyocabinet-1.4.48/tcbdb.c:4107:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rnum=%llu", (unsigned long long)bdb->rnum);
data/tokyocabinet-1.4.48/tcbdb.c:4108:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " leafc=%p", (void *)bdb->leafc);
data/tokyocabinet-1.4.48/tcbdb.c:4109:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " nodec=%p", (void *)bdb->nodec);
data/tokyocabinet-1.4.48/tcbdb.c:4110:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cmp=%p", (void *)(intptr_t)bdb->cmp);
data/tokyocabinet-1.4.48/tcbdb.c:4111:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cmpop=%p", (void *)bdb->cmpop);
data/tokyocabinet-1.4.48/tcbdb.c:4112:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " lcnum=%u", bdb->lcnum);
data/tokyocabinet-1.4.48/tcbdb.c:4113:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " ncnum=%u", bdb->ncnum);
data/tokyocabinet-1.4.48/tcbdb.c:4114:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " lsmax=%u", bdb->lsmax);
data/tokyocabinet-1.4.48/tcbdb.c:4115:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " lschk=%u", bdb->lschk);
data/tokyocabinet-1.4.48/tcbdb.c:4116:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " capnum=%llu", (unsigned long long)bdb->capnum);
data/tokyocabinet-1.4.48/tcbdb.c:4117:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " hist=%p", (void *)bdb->hist);
data/tokyocabinet-1.4.48/tcbdb.c:4118:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " hnum=%d", bdb->hnum);
data/tokyocabinet-1.4.48/tcbdb.c:4119:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " hleaf=%llu", (unsigned long long)bdb->hleaf);
data/tokyocabinet-1.4.48/tcbdb.c:4120:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " lleaf=%llu", (unsigned long long)bdb->lleaf);
data/tokyocabinet-1.4.48/tcbdb.c:4121:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " tran=%d", bdb->tran);
data/tokyocabinet-1.4.48/tcbdb.c:4122:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rbopaque=%p", (void *)bdb->rbopaque);
data/tokyocabinet-1.4.48/tcbdb.c:4123:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " clock=%llu", (unsigned long long)bdb->clock);
data/tokyocabinet-1.4.48/tcbdb.c:4124:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_saveleaf=%lld", (long long)bdb->cnt_saveleaf);
data/tokyocabinet-1.4.48/tcbdb.c:4125:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_loadleaf=%lld", (long long)bdb->cnt_loadleaf);
data/tokyocabinet-1.4.48/tcbdb.c:4126:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_killleaf=%lld", (long long)bdb->cnt_killleaf);
data/tokyocabinet-1.4.48/tcbdb.c:4127:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_adjleafc=%lld", (long long)bdb->cnt_adjleafc);
data/tokyocabinet-1.4.48/tcbdb.c:4128:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_savenode=%lld", (long long)bdb->cnt_savenode);
data/tokyocabinet-1.4.48/tcbdb.c:4129:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_loadnode=%lld", (long long)bdb->cnt_loadnode);
data/tokyocabinet-1.4.48/tcbdb.c:4130:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_adjnodec=%lld", (long long)bdb->cnt_adjnodec);
data/tokyocabinet-1.4.48/tcbdb.c:4145:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[BDBPAGEBUFSIZ];
data/tokyocabinet-1.4.48/tcbdb.c:4147:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "LEAF:");
data/tokyocabinet-1.4.48/tcbdb.c:4148:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " id:%llx", (unsigned long long)leaf->id);
data/tokyocabinet-1.4.48/tcbdb.c:4149:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " size:%u", leaf->size);
data/tokyocabinet-1.4.48/tcbdb.c:4150:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " prev:%llx", (unsigned long long)leaf->prev);
data/tokyocabinet-1.4.48/tcbdb.c:4151:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " next:%llx", (unsigned long long)leaf->next);
data/tokyocabinet-1.4.48/tcbdb.c:4152:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dirty:%d", leaf->dirty);
data/tokyocabinet-1.4.48/tcbdb.c:4153:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dead:%d", leaf->dead);
data/tokyocabinet-1.4.48/tcbdb.c:4154:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rnum:%d", TCPTRLISTNUM(recs));
data/tokyocabinet-1.4.48/tcbdb.c:4183:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[BDBPAGEBUFSIZ];
data/tokyocabinet-1.4.48/tcbdb.c:4185:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "NODE:");
data/tokyocabinet-1.4.48/tcbdb.c:4186:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " id:%llx", (unsigned long long)node->id);
data/tokyocabinet-1.4.48/tcbdb.c:4187:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " heir:%llx", (unsigned long long)node->heir);
data/tokyocabinet-1.4.48/tcbdb.c:4188:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dirty:%d", node->dirty);
data/tokyocabinet-1.4.48/tcbdb.c:4189:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dead:%d", node->dead);
data/tokyocabinet-1.4.48/tcbdb.c:4190:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rnum:%d", TCPTRLISTNUM(idxs));
data/tokyocabinet-1.4.48/tcbdb.h:45:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  bool open;                             /* whether the internal database is opened */
data/tokyocabinet-1.4.48/tcbmgr.c:666:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char date[48];
data/tokyocabinet-1.4.48/tcbmgr.c:962:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *ifp = file ? fopen(file, "rb") : stdin;
data/tokyocabinet-1.4.48/tcbmttest.c:265:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)kbuf)[ksiz];
data/tokyocabinet-1.4.48/tcbmttest.c:268:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)vbuf)[vsiz];
data/tokyocabinet-1.4.48/tcbmttest.c:943:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbmttest.c:944:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "%d", i - 1);
data/tokyocabinet-1.4.48/tcbmttest.c:1159:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbmttest.c:1160:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + (rnd ? myrand(i) : i));
data/tokyocabinet-1.4.48/tcbmttest.c:1185:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbmttest.c:1186:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", base + (rnd ? myrandnd(i) : i));
data/tokyocabinet-1.4.48/tcbmttest.c:1221:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbmttest.c:1222:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", base + (rnd ? myrand(i + 1) : i));
data/tokyocabinet-1.4.48/tcbmttest.c:1247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbmttest.c:1248:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum * (id + 1)));
data/tokyocabinet-1.4.48/tcbmttest.c:1249:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbmttest.c:1527:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbmttest.c:1528:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + myrandnd(i));
data/tokyocabinet-1.4.48/tcbmttest.c:1696:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbmttest.c:1697:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%d", myrandnd(i));
data/tokyocabinet-1.4.48/tcbtest.c:238:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:249:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)kbuf)[ksiz];
data/tokyocabinet-1.4.48/tcbtest.c:252:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)vbuf)[vsiz];
data/tokyocabinet-1.4.48/tcbtest.c:819:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:822:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcbtest.c:825:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcbtest.c:829:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbtest.c:832:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcbtest.c:900:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:903:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      ksiz = sprintf(kbuf, "%d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcbtest.c:906:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(kbuf, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcbtest.c:910:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(kbuf, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbtest.c:913:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      ksiz = sprintf(kbuf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcbtest.c:993:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:996:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      ksiz = sprintf(kbuf, "%d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcbtest.c:999:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(kbuf, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcbtest.c:1003:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(kbuf, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbtest.c:1006:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      ksiz = sprintf(kbuf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcbtest.c:1092:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fmt[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1093:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(fmt, "%%0%dd", myrand(RECBUFSIZ));
data/tokyocabinet-1.4.48/tcbtest.c:1094:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1163:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1166:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        ksiz = sprintf(kbuf, "%d", myrand(pnum));
data/tokyocabinet-1.4.48/tcbtest.c:1169:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(kbuf, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcbtest.c:1173:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(kbuf, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbtest.c:1176:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        ksiz = sprintf(kbuf, "%d", myrand(pnum));
data/tokyocabinet-1.4.48/tcbtest.c:1191:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char vbuf[PATH_MAX];
data/tokyocabinet-1.4.48/tcbtest.c:1286:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1289:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%d", i);
data/tokyocabinet-1.4.48/tcbtest.c:1292:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcbtest.c:1296:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcbtest.c:1299:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tcbtest.c:1408:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1409:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tcbtest.c:1422:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1423:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", i);
data/tokyocabinet-1.4.48/tcbtest.c:1448:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1449:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:1450:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1500:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1501:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:1514:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1515:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tcbtest.c:1516:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1525:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tbuf[PATH_MAX];
data/tokyocabinet-1.4.48/tcbtest.c:1543:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1544:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tcbtest.c:1611:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1614:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1638:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1639:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tcbtest.c:1670:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1671:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tcbtest.c:1696:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1697:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", i);
data/tokyocabinet-1.4.48/tcbtest.c:1878:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1879:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:1880:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1881:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:1931:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1932:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:1933:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:1934:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "[%d]", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:2016:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:2017:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:2018:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:2019:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "((%d))", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:2158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:2159:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int size = sprintf(buf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:2166:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[i];
data/tokyocabinet-1.4.48/tcbtest.c:2237:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:2238:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcbtest.c:2239:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:2416:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            ksiz = sprintf(kbuf, "%d", i + j);
data/tokyocabinet-1.4.48/tcbtest.c:2513:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcbtest.c:2514:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", i - 1);
data/tokyocabinet-1.4.48/tcfdb.c:552:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(vbuf, rbuf, vsiz);
data/tokyocabinet-1.4.48/tcfdb.c:643:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char kbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:644:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  int ksiz = sprintf(kbuf, "%llu", (unsigned long long)id);
data/tokyocabinet-1.4.48/tcfdb.c:689:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:690:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%llu", (unsigned long long)ids[i]);
data/tokyocabinet-1.4.48/tcfdb.c:771:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:772:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%llu", (unsigned long long)ids[i]);
data/tokyocabinet-1.4.48/tcfdb.c:948:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int walfd = open(tpath, O_RDWR | O_CREAT | O_TRUNC, FDBFILEMODE);
data/tokyocabinet-1.4.48/tcfdb.c:1009:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[FDBHEADSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:1090:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char obuf[FDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:1128:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[FDBHEADSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:1130:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(fdb->map, hbuf, FDBOPAQUEOFF);
data/tokyocabinet-1.4.48/tcfdb.c:1308:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, &procptr, sizeof(procptr));
data/tokyocabinet-1.4.48/tcfdb.c:1310:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcfdb.c:1314:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(rbuf, &procptr, sizeof(procptr));
data/tokyocabinet-1.4.48/tcfdb.c:1420:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + FDBTYPEOFF, &(fdb->type), sizeof(fdb->type));
data/tokyocabinet-1.4.48/tcfdb.c:1421:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + FDBFLAGSOFF, &(fdb->flags), sizeof(fdb->flags));
data/tokyocabinet-1.4.48/tcfdb.c:1425:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + FDBRNUMOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcfdb.c:1428:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + FDBFSIZOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcfdb.c:1431:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + FDBWIDTHOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcfdb.c:1434:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + FDBLIMSIZOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcfdb.c:1437:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + FDBMINOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcfdb.c:1440:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + FDBMAXOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcfdb.c:1448:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&(fdb->type), hbuf + FDBTYPEOFF, sizeof(fdb->type));
data/tokyocabinet-1.4.48/tcfdb.c:1449:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&(fdb->flags), hbuf + FDBFLAGSOFF, sizeof(fdb->flags));
data/tokyocabinet-1.4.48/tcfdb.c:1561:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stack[FDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:1570:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tcfdb.c:1573:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcfdb.c:1575:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, fdb->map + off, size);
data/tokyocabinet-1.4.48/tcfdb.c:1602:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int walfd = open(tpath, O_RDONLY, FDBFILEMODE);
data/tokyocabinet-1.4.48/tcfdb.c:1618:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      tfd = open(path, O_WRONLY, FDBFILEMODE);
data/tokyocabinet-1.4.48/tcfdb.c:1641:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stack[FDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:1742:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(path, mode, FDBFILEMODE);
data/tokyocabinet-1.4.48/tcfdb.c:1777:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[FDBHEADSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:2013:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(wp, &snum, sizeof(snum));
data/tokyocabinet-1.4.48/tcfdb.c:2018:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcfdb.c:2023:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcfdb.c:2072:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(wp, &snum, sizeof(snum));
data/tokyocabinet-1.4.48/tcfdb.c:2077:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcfdb.c:2082:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(wp + osiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcfdb.c:2103:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(rp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcfdb.c:2121:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(rp, &dnum, sizeof(dnum));
data/tokyocabinet-1.4.48/tcfdb.c:2164:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(wp, &snum, sizeof(snum));
data/tokyocabinet-1.4.48/tcfdb.c:2169:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcfdb.c:2174:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(wp, nvbuf, nvsiz);
data/tokyocabinet-1.4.48/tcfdb.c:2195:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(wp, &snum, sizeof(snum));
data/tokyocabinet-1.4.48/tcfdb.c:2200:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tcfdb.c:2205:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcfdb.c:2470:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tsbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:2471:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tsbuf, "%llu", (unsigned long long)(tctime() * 1000000));
data/tokyocabinet-1.4.48/tcfdb.c:2472:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *args[3];
data/tokyocabinet-1.4.48/tcfdb.c:2525:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:2526:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "%llu", (unsigned long long)id);
data/tokyocabinet-1.4.48/tcfdb.c:2704:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[FDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tcfdb.c:2706:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "META:");
data/tokyocabinet-1.4.48/tcfdb.c:2707:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " mmtx=%p", (void *)fdb->mmtx);
data/tokyocabinet-1.4.48/tcfdb.c:2708:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " amtx=%p", (void *)fdb->amtx);
data/tokyocabinet-1.4.48/tcfdb.c:2709:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rmtxs=%p", (void *)fdb->rmtxs);
data/tokyocabinet-1.4.48/tcfdb.c:2710:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " tmtx=%p", (void *)fdb->tmtx);
data/tokyocabinet-1.4.48/tcfdb.c:2711:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " wmtx=%p", (void *)fdb->wmtx);
data/tokyocabinet-1.4.48/tcfdb.c:2712:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " eckey=%p", (void *)fdb->eckey);
data/tokyocabinet-1.4.48/tcfdb.c:2714:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " type=%02X", fdb->type);
data/tokyocabinet-1.4.48/tcfdb.c:2715:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " flags=%02X", fdb->flags);
data/tokyocabinet-1.4.48/tcfdb.c:2716:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " width=%u", fdb->width);
data/tokyocabinet-1.4.48/tcfdb.c:2717:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " limsiz=%llu", (unsigned long long)fdb->limsiz);
data/tokyocabinet-1.4.48/tcfdb.c:2718:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " wsiz=%u", fdb->wsiz);
data/tokyocabinet-1.4.48/tcfdb.c:2719:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rsiz=%u", fdb->rsiz);
data/tokyocabinet-1.4.48/tcfdb.c:2720:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " limid=%llu", (unsigned long long)fdb->limid);
data/tokyocabinet-1.4.48/tcfdb.c:2722:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fd=%d", fdb->fd);
data/tokyocabinet-1.4.48/tcfdb.c:2723:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " omode=%u", fdb->omode);
data/tokyocabinet-1.4.48/tcfdb.c:2724:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rnum=%llu", (unsigned long long)fdb->rnum);
data/tokyocabinet-1.4.48/tcfdb.c:2725:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fsiz=%llu", (unsigned long long)fdb->fsiz);
data/tokyocabinet-1.4.48/tcfdb.c:2726:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " min=%llu", (unsigned long long)fdb->min);
data/tokyocabinet-1.4.48/tcfdb.c:2727:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " max=%llu", (unsigned long long)fdb->max);
data/tokyocabinet-1.4.48/tcfdb.c:2728:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " iter=%llu", (unsigned long long)fdb->iter);
data/tokyocabinet-1.4.48/tcfdb.c:2729:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " map=%p", (void *)fdb->map);
data/tokyocabinet-1.4.48/tcfdb.c:2730:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " array=%p", (void *)fdb->array);
data/tokyocabinet-1.4.48/tcfdb.c:2731:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " ecode=%d", fdb->ecode);
data/tokyocabinet-1.4.48/tcfdb.c:2732:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fatal=%u", fdb->fatal);
data/tokyocabinet-1.4.48/tcfdb.c:2733:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " inode=%llu", (unsigned long long)fdb->inode);
data/tokyocabinet-1.4.48/tcfdb.c:2734:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " mtime=%llu", (unsigned long long)fdb->mtime);
data/tokyocabinet-1.4.48/tcfdb.c:2735:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " tran=%d", fdb->tran);
data/tokyocabinet-1.4.48/tcfdb.c:2736:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " walfd=%d", fdb->walfd);
data/tokyocabinet-1.4.48/tcfdb.c:2737:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " walend=%llu", (unsigned long long)fdb->walend);
data/tokyocabinet-1.4.48/tcfdb.c:2738:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dbgfd=%d", fdb->dbgfd);
data/tokyocabinet-1.4.48/tcfdb.c:2739:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_writerec=%lld", (long long)fdb->cnt_writerec);
data/tokyocabinet-1.4.48/tcfdb.c:2740:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_readrec=%lld", (long long)fdb->cnt_readrec);
data/tokyocabinet-1.4.48/tcfdb.c:2741:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_truncfile=%lld", (long long)fdb->cnt_truncfile);
data/tokyocabinet-1.4.48/tcfmgr.c:526:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char date[48];
data/tokyocabinet-1.4.48/tcfmgr.c:737:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *ifp = file ? fopen(file, "rb") : stdin;
data/tokyocabinet-1.4.48/tcfmttest.c:225:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)kbuf)[ksiz];
data/tokyocabinet-1.4.48/tcfmttest.c:228:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)vbuf)[vsiz];
data/tokyocabinet-1.4.48/tcfmttest.c:699:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcfmttest.c:700:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "%d", i);
data/tokyocabinet-1.4.48/tcfmttest.c:822:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcfmttest.c:823:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + (rnd ? myrand(i) + 1 : i));
data/tokyocabinet-1.4.48/tcfmttest.c:851:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcfmttest.c:883:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcfmttest.c:884:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", base + (rnd ? myrand(i + 1) + 1 : i));
data/tokyocabinet-1.4.48/tcfmttest.c:909:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcfmttest.c:910:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%llu", (unsigned long long)kid);
data/tokyocabinet-1.4.48/tcfmttest.c:911:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcfmttest.c:1123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcfmttest.c:1124:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + myrandnd(i) + 1);
data/tokyocabinet-1.4.48/tcftest.c:197:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:208:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)kbuf)[ksiz];
data/tokyocabinet-1.4.48/tcftest.c:211:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)vbuf)[vsiz];
data/tokyocabinet-1.4.48/tcftest.c:472:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:473:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcftest.c:517:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:518:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcftest.c:521:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:575:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:576:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcftest.c:627:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:628:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(pnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:642:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[PATH_MAX];
data/tokyocabinet-1.4.48/tcftest.c:768:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:769:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tcftest.c:782:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:783:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", i);
data/tokyocabinet-1.4.48/tcftest.c:808:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:809:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:810:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:839:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:840:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:853:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:854:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tcftest.c:855:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:864:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tbuf[PATH_MAX];
data/tokyocabinet-1.4.48/tcftest.c:882:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:883:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tcftest.c:902:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:903:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:943:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:944:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tcftest.c:961:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:962:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tcftest.c:975:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:976:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", i);
data/tokyocabinet-1.4.48/tcftest.c:1066:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1067:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:1068:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1069:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:1111:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1112:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:1113:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1114:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "[%d]", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:1198:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1199:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:1200:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1201:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "[%d]", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:1338:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1339:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int size = sprintf(buf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcftest.c:1346:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[i];
data/tokyocabinet-1.4.48/tcftest.c:1401:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1402:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%llu", (unsigned long long)id);
data/tokyocabinet-1.4.48/tcftest.c:1403:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1554:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            ksiz = sprintf(kbuf, "%d", i + j);
data/tokyocabinet-1.4.48/tcftest.c:1621:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcftest.c:1622:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", i);
data/tokyocabinet-1.4.48/tchdb.c:550:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(obuf + osiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tchdb.c:1127:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int walfd = open(tpath, O_RDWR | O_CREAT | O_TRUNC, HDBFILEMODE);
data/tokyocabinet-1.4.48/tchdb.c:1190:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[HDBHEADSIZ];
data/tokyocabinet-1.4.48/tchdb.c:1279:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char obuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:1328:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[HDBHEADSIZ];
data/tokyocabinet-1.4.48/tchdb.c:1330:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hdb->map, hbuf, HDBOPAQUEOFF);
data/tokyocabinet-1.4.48/tchdb.c:1675:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &procptr, sizeof(procptr));
data/tokyocabinet-1.4.48/tchdb.c:1677:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, kbuf, ksiz);
data/tokyocabinet-1.4.48/tchdb.c:1875:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hdb->map + off, buf, size);
data/tokyocabinet-1.4.48/tchdb.c:1888:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hdb->map + off, buf, head);
data/tokyocabinet-1.4.48/tchdb.c:1926:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, hdb->map + off, size);
data/tokyocabinet-1.4.48/tchdb.c:1931:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, hdb->map + off, head);
data/tokyocabinet-1.4.48/tchdb.c:1971:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, hdb->map + off, size);
data/tokyocabinet-1.4.48/tchdb.c:1976:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, hdb->map + off, head);
data/tokyocabinet-1.4.48/tchdb.c:1994:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + HDBTYPEOFF, &(hdb->type), sizeof(hdb->type));
data/tokyocabinet-1.4.48/tchdb.c:1995:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + HDBFLAGSOFF, &(hdb->flags), sizeof(hdb->flags));
data/tokyocabinet-1.4.48/tchdb.c:1996:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + HDBAPOWOFF, &(hdb->apow), sizeof(hdb->apow));
data/tokyocabinet-1.4.48/tchdb.c:1997:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + HDBFPOWOFF, &(hdb->fpow), sizeof(hdb->fpow));
data/tokyocabinet-1.4.48/tchdb.c:1998:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + HDBOPTSOFF, &(hdb->opts), sizeof(hdb->opts));
data/tokyocabinet-1.4.48/tchdb.c:2002:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + HDBBNUMOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:2005:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + HDBRNUMOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:2008:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + HDBFSIZOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:2011:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hbuf + HDBFRECOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:2019:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&(hdb->type), hbuf + HDBTYPEOFF, sizeof(hdb->type));
data/tokyocabinet-1.4.48/tchdb.c:2020:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&(hdb->flags), hbuf + HDBFLAGSOFF, sizeof(hdb->flags));
data/tokyocabinet-1.4.48/tchdb.c:2021:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&(hdb->apow), hbuf + HDBAPOWOFF, sizeof(hdb->apow));
data/tokyocabinet-1.4.48/tchdb.c:2022:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&(hdb->fpow), hbuf + HDBFPOWOFF, sizeof(hdb->fpow));
data/tokyocabinet-1.4.48/tchdb.c:2023:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&(hdb->opts), hbuf + HDBOPTSOFF, sizeof(hdb->opts));
data/tokyocabinet-1.4.48/tchdb.c:2542:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char nbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:2630:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBMAXHSIZ];
data/tokyocabinet-1.4.48/tchdb.c:2634:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tchdb.c:2650:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stack[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:2665:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:2669:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:2675:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tchdb.c:2679:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tchdb.c:2746:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pwp, &snum, sizeof(snum));
data/tokyocabinet-1.4.48/tchdb.c:2749:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, rec->kbuf, rec->ksiz);
data/tokyocabinet-1.4.48/tchdb.c:2752:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, rec->vbuf, rec->vsiz);
data/tokyocabinet-1.4.48/tchdb.c:2764:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hdb->map + HDBFSIZOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:2939:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hdb->map + HDBRNUMOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:2969:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:3065:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&ksiz, rp, sizeof(int));
data/tokyocabinet-1.4.48/tchdb.c:3067:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&vsiz, rp, sizeof(int));
data/tokyocabinet-1.4.48/tchdb.c:3094:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hdb->map + HDBRNUMOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:3097:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hdb->map + HDBFSIZOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:3146:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stack[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:3155:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:3158:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(wp, &lnum, sizeof(lnum));
data/tokyocabinet-1.4.48/tchdb.c:3190:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int walfd = open(tpath, O_RDONLY, HDBFILEMODE);
data/tokyocabinet-1.4.48/tchdb.c:3206:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      tfd = open(path, O_WRONLY, HDBFILEMODE);
data/tokyocabinet-1.4.48/tchdb.c:3229:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stack[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:3280:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(hdb->map + off, rec, size);
data/tokyocabinet-1.4.48/tchdb.c:3336:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(path, mode, HDBFILEMODE);
data/tokyocabinet-1.4.48/tchdb.c:3371:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[HDBHEADSIZ];
data/tokyocabinet-1.4.48/tchdb.c:3385:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:3585:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:3634:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy(rec.bbuf + rec.ksiz + rec.vsiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tchdb.c:3640:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy(rec.bbuf, rec.vbuf, rec.vsiz);
data/tokyocabinet-1.4.48/tchdb.c:3641:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy(rec.bbuf + rec.vsiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tchdb.c:3775:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(hdb->map + HDBRNUMOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:3792:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:3816:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pwp, &snum, sizeof(snum));
data/tokyocabinet-1.4.48/tchdb.c:3822:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pbuf[psiz];
data/tokyocabinet-1.4.48/tchdb.c:3850:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:3915:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:3983:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4079:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(vbuf, tvbuf + 1, tvsiz);
data/tokyocabinet-1.4.48/tchdb.c:4086:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4131:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(vbuf, zbuf, zsiz);
data/tokyocabinet-1.4.48/tchdb.c:4140:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(vbuf, rec.vbuf, vsiz);
data/tokyocabinet-1.4.48/tchdb.c:4171:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4198:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(rv, rec.kbuf, rec.ksiz);
data/tokyocabinet-1.4.48/tchdb.c:4199:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(rv + rec.ksiz, zbuf, zsiz);
data/tokyocabinet-1.4.48/tchdb.c:4210:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(rv, rec.kbuf, rec.ksiz);
data/tokyocabinet-1.4.48/tchdb.c:4211:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(rv + rec.ksiz, rec.vbuf, rec.vsiz);
data/tokyocabinet-1.4.48/tchdb.c:4242:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4294:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(rv, rec.kbuf, rec.ksiz);
data/tokyocabinet-1.4.48/tchdb.c:4295:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(rv + rec.ksiz, zbuf, zsiz);
data/tokyocabinet-1.4.48/tchdb.c:4306:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(rv, rec.kbuf, rec.ksiz);
data/tokyocabinet-1.4.48/tchdb.c:4307:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(rv + rec.ksiz, rec.vbuf, rec.vsiz);
data/tokyocabinet-1.4.48/tchdb.c:4366:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4450:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4477:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4548:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(tchdbopaque(thdb), tchdbopaque(hdb), HDBHEADSIZ - HDBOPAQUEOFF);
data/tokyocabinet-1.4.48/tchdb.c:4552:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4674:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tsbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4675:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tsbuf, "%llu", (unsigned long long)(tctime() * 1000000));
data/tokyocabinet-1.4.48/tchdb.c:4676:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *args[3];
data/tokyocabinet-1.4.48/tchdb.c:4701:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4768:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hdb->map + HDBFSIZOFF, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tchdb.c:4793:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:4835:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char rbuf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:5047:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:5049:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "META:");
data/tokyocabinet-1.4.48/tchdb.c:5050:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " mmtx=%p", (void *)hdb->mmtx);
data/tokyocabinet-1.4.48/tchdb.c:5051:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rmtxs=%p", (void *)hdb->rmtxs);
data/tokyocabinet-1.4.48/tchdb.c:5052:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dmtx=%p", (void *)hdb->dmtx);
data/tokyocabinet-1.4.48/tchdb.c:5053:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " wmtx=%p", (void *)hdb->wmtx);
data/tokyocabinet-1.4.48/tchdb.c:5054:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " eckey=%p", (void *)hdb->eckey);
data/tokyocabinet-1.4.48/tchdb.c:5056:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " type=%02X", hdb->type);
data/tokyocabinet-1.4.48/tchdb.c:5057:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " flags=%02X", hdb->flags);
data/tokyocabinet-1.4.48/tchdb.c:5058:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " bnum=%llu", (unsigned long long)hdb->bnum);
data/tokyocabinet-1.4.48/tchdb.c:5059:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " apow=%u", hdb->apow);
data/tokyocabinet-1.4.48/tchdb.c:5060:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fpow=%u", hdb->fpow);
data/tokyocabinet-1.4.48/tchdb.c:5061:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " opts=%u", hdb->opts);
data/tokyocabinet-1.4.48/tchdb.c:5063:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fd=%d", hdb->fd);
data/tokyocabinet-1.4.48/tchdb.c:5064:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " omode=%u", hdb->omode);
data/tokyocabinet-1.4.48/tchdb.c:5065:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rnum=%llu", (unsigned long long)hdb->rnum);
data/tokyocabinet-1.4.48/tchdb.c:5066:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fsiz=%llu", (unsigned long long)hdb->fsiz);
data/tokyocabinet-1.4.48/tchdb.c:5067:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " frec=%llu", (unsigned long long)hdb->frec);
data/tokyocabinet-1.4.48/tchdb.c:5068:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dfcur=%llu", (unsigned long long)hdb->dfcur);
data/tokyocabinet-1.4.48/tchdb.c:5069:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " iter=%llu", (unsigned long long)hdb->iter);
data/tokyocabinet-1.4.48/tchdb.c:5070:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " map=%p", (void *)hdb->map);
data/tokyocabinet-1.4.48/tchdb.c:5071:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " msiz=%llu", (unsigned long long)hdb->msiz);
data/tokyocabinet-1.4.48/tchdb.c:5072:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " ba32=%p", (void *)hdb->ba32);
data/tokyocabinet-1.4.48/tchdb.c:5073:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " ba64=%p", (void *)hdb->ba64);
data/tokyocabinet-1.4.48/tchdb.c:5074:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " align=%u", hdb->align);
data/tokyocabinet-1.4.48/tchdb.c:5075:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " runit=%u", hdb->runit);
data/tokyocabinet-1.4.48/tchdb.c:5076:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " zmode=%u", hdb->zmode);
data/tokyocabinet-1.4.48/tchdb.c:5077:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fbpmax=%d", hdb->fbpmax);
data/tokyocabinet-1.4.48/tchdb.c:5078:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fbpool=%p", (void *)hdb->fbpool);
data/tokyocabinet-1.4.48/tchdb.c:5079:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fbpnum=%d", hdb->fbpnum);
data/tokyocabinet-1.4.48/tchdb.c:5080:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fbpmis=%d", hdb->fbpmis);
data/tokyocabinet-1.4.48/tchdb.c:5081:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " drpool=%p", (void *)hdb->drpool);
data/tokyocabinet-1.4.48/tchdb.c:5082:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " drpdef=%p", (void *)hdb->drpdef);
data/tokyocabinet-1.4.48/tchdb.c:5083:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " drpoff=%llu", (unsigned long long)hdb->drpoff);
data/tokyocabinet-1.4.48/tchdb.c:5084:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " recc=%p", (void *)hdb->recc);
data/tokyocabinet-1.4.48/tchdb.c:5085:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rcnum=%u", hdb->rcnum);
data/tokyocabinet-1.4.48/tchdb.c:5086:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " ecode=%d", hdb->ecode);
data/tokyocabinet-1.4.48/tchdb.c:5087:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " fatal=%u", hdb->fatal);
data/tokyocabinet-1.4.48/tchdb.c:5088:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " inode=%llu", (unsigned long long)(uint64_t)hdb->inode);
data/tokyocabinet-1.4.48/tchdb.c:5089:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " mtime=%llu", (unsigned long long)(uint64_t)hdb->mtime);
data/tokyocabinet-1.4.48/tchdb.c:5090:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dfunit=%u", hdb->dfunit);
data/tokyocabinet-1.4.48/tchdb.c:5091:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dfcnt=%u", hdb->dfcnt);
data/tokyocabinet-1.4.48/tchdb.c:5092:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " tran=%d", hdb->tran);
data/tokyocabinet-1.4.48/tchdb.c:5093:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " walfd=%d", hdb->walfd);
data/tokyocabinet-1.4.48/tchdb.c:5094:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " walend=%llu", (unsigned long long)hdb->walend);
data/tokyocabinet-1.4.48/tchdb.c:5095:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " dbgfd=%d", hdb->dbgfd);
data/tokyocabinet-1.4.48/tchdb.c:5096:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_writerec=%lld", (long long)hdb->cnt_writerec);
data/tokyocabinet-1.4.48/tchdb.c:5097:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_reuserec=%lld", (long long)hdb->cnt_reuserec);
data/tokyocabinet-1.4.48/tchdb.c:5098:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_moverec=%lld", (long long)hdb->cnt_moverec);
data/tokyocabinet-1.4.48/tchdb.c:5099:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_readrec=%lld", (long long)hdb->cnt_readrec);
data/tokyocabinet-1.4.48/tchdb.c:5100:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_searchfbp=%lld", (long long)hdb->cnt_searchfbp);
data/tokyocabinet-1.4.48/tchdb.c:5101:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_insertfbp=%lld", (long long)hdb->cnt_insertfbp);
data/tokyocabinet-1.4.48/tchdb.c:5102:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_splicefbp=%lld", (long long)hdb->cnt_splicefbp);
data/tokyocabinet-1.4.48/tchdb.c:5103:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_dividefbp=%lld", (long long)hdb->cnt_dividefbp);
data/tokyocabinet-1.4.48/tchdb.c:5104:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_mergefbp=%lld", (long long)hdb->cnt_mergefbp);
data/tokyocabinet-1.4.48/tchdb.c:5105:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_reducefbp=%lld", (long long)hdb->cnt_reducefbp);
data/tokyocabinet-1.4.48/tchdb.c:5106:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_appenddrp=%lld", (long long)hdb->cnt_appenddrp);
data/tokyocabinet-1.4.48/tchdb.c:5107:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_deferdrp=%lld", (long long)hdb->cnt_deferdrp);
data/tokyocabinet-1.4.48/tchdb.c:5108:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_flushdrp=%lld", (long long)hdb->cnt_flushdrp);
data/tokyocabinet-1.4.48/tchdb.c:5109:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_adjrecc=%lld", (long long)hdb->cnt_adjrecc);
data/tokyocabinet-1.4.48/tchdb.c:5110:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_defrag=%lld", (long long)hdb->cnt_defrag);
data/tokyocabinet-1.4.48/tchdb.c:5111:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_shiftrec=%lld", (long long)hdb->cnt_shiftrec);
data/tokyocabinet-1.4.48/tchdb.c:5112:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " cnt_trunc=%lld", (long long)hdb->cnt_trunc);
data/tokyocabinet-1.4.48/tchdb.c:5125:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[HDBIOBUFSIZ];
data/tokyocabinet-1.4.48/tchdb.c:5127:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "REC:");
data/tokyocabinet-1.4.48/tchdb.c:5128:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " off=%llu", (unsigned long long)rec->off);
data/tokyocabinet-1.4.48/tchdb.c:5129:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " rsiz=%u", rec->rsiz);
data/tokyocabinet-1.4.48/tchdb.c:5130:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " magic=%02X", rec->magic);
data/tokyocabinet-1.4.48/tchdb.c:5131:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " hash=%02X", rec->hash);
data/tokyocabinet-1.4.48/tchdb.c:5132:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " left=%llu", (unsigned long long)rec->left);
data/tokyocabinet-1.4.48/tchdb.c:5133:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " right=%llu", (unsigned long long)rec->right);
data/tokyocabinet-1.4.48/tchdb.c:5134:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " ksiz=%u", rec->ksiz);
data/tokyocabinet-1.4.48/tchdb.c:5135:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " vsiz=%u", rec->vsiz);
data/tokyocabinet-1.4.48/tchdb.c:5136:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " psiz=%u", rec->psiz);
data/tokyocabinet-1.4.48/tchdb.c:5137:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " kbuf=%p", (void *)rec->kbuf);
data/tokyocabinet-1.4.48/tchdb.c:5138:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " vbuf=%p", (void *)rec->vbuf);
data/tokyocabinet-1.4.48/tchdb.c:5139:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " boff=%llu", (unsigned long long)rec->boff);
data/tokyocabinet-1.4.48/tchdb.c:5140:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " bbuf=%p", (void *)rec->bbuf);
data/tokyocabinet-1.4.48/tchmgr.c:563:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char date[48];
data/tokyocabinet-1.4.48/tchmgr.c:792:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *ifp = file ? fopen(file, "rb") : stdin;
data/tokyocabinet-1.4.48/tchmttest.c:256:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)kbuf)[ksiz];
data/tokyocabinet-1.4.48/tchmttest.c:259:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)vbuf)[vsiz];
data/tokyocabinet-1.4.48/tchmttest.c:958:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchmttest.c:959:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "%d", i - 1);
data/tokyocabinet-1.4.48/tchmttest.c:1177:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchmttest.c:1178:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + (rnd ? myrand(i) : i));
data/tokyocabinet-1.4.48/tchmttest.c:1211:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchmttest.c:1212:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", base + (rnd ? myrandnd(i) : i));
data/tokyocabinet-1.4.48/tchmttest.c:1215:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchmttest.c:1247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchmttest.c:1248:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", base + (rnd ? myrand(i + 1) : i));
data/tokyocabinet-1.4.48/tchmttest.c:1272:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchmttest.c:1273:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum * (id + 1)));
data/tokyocabinet-1.4.48/tchmttest.c:1274:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchmttest.c:1533:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchmttest.c:1534:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + myrandnd(i));
data/tokyocabinet-1.4.48/tchmttest.c:1651:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchmttest.c:1652:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%d", myrandnd(i));
data/tokyocabinet-1.4.48/tchtest.c:214:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:225:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)kbuf)[ksiz];
data/tokyocabinet-1.4.48/tchtest.c:228:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)vbuf)[vsiz];
data/tokyocabinet-1.4.48/tchtest.c:613:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:614:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tchtest.c:683:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:684:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tchtest.c:687:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:758:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:759:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tchtest.c:829:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fmt[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:830:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(fmt, "%%0%dd", myrand(RECBUFSIZ));
data/tokyocabinet-1.4.48/tchtest.c:831:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:888:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:889:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "%d", myrand(pnum));
data/tokyocabinet-1.4.48/tchtest.c:903:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char vbuf[PATH_MAX];
data/tokyocabinet-1.4.48/tchtest.c:990:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:991:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tchtest.c:1012:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1013:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", i);
data/tokyocabinet-1.4.48/tchtest.c:1038:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1039:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1040:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1090:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1091:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1105:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tchtest.c:1106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1115:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tbuf[PATH_MAX];
data/tokyocabinet-1.4.48/tchtest.c:1133:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1134:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tchtest.c:1193:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1196:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1220:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1221:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "[%d]", i);
data/tokyocabinet-1.4.48/tchtest.c:1252:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1253:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tchtest.c:1266:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1267:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", i);
data/tokyocabinet-1.4.48/tchtest.c:1381:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1382:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1383:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1384:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1434:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1435:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1436:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1437:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "[%d]", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1519:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1520:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1521:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1522:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "((%d))", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1646:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[i];
data/tokyocabinet-1.4.48/tchtest.c:1667:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1668:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int size = sprintf(buf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1675:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[i];
data/tokyocabinet-1.4.48/tchtest.c:1744:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1745:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tchtest.c:1746:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:1930:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            ksiz = sprintf(kbuf, "%d", i + j);
data/tokyocabinet-1.4.48/tchtest.c:2001:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tchtest.c:2002:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", i - 1);
data/tokyocabinet-1.4.48/tctdb.c:194:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(tdb->open) tctdbclose(tdb);
data/tokyocabinet-1.4.48/tctdb.c:215:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(tdb->mmtx || tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:234:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:255:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:268:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:279:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:291:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:306:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:326:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:366:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:406:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:441:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:463:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:500:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:522:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:537:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:576:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:598:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:613:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:628:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode || tdb->tran){
data/tokyocabinet-1.4.48/tctdb.c:643:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode || tdb->tran){
data/tokyocabinet-1.4.48/tctdb.c:659:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode || tdb->tran){
data/tokyocabinet-1.4.48/tctdb.c:675:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:692:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:716:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode || !tdb->tran){
data/tokyocabinet-1.4.48/tctdb.c:733:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode || !tdb->tran){
data/tokyocabinet-1.4.48/tctdb.c:750:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:765:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:780:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:808:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode || tdb->tran){
data/tokyocabinet-1.4.48/tctdb.c:828:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:923:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(cond->regex, &rxbuf, sizeof(rxbuf));
data/tokyocabinet-1.4.48/tctdb.c:958:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:981:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:1277:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:1315:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1326:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1337:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1348:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1359:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1370:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1381:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1392:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1403:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1414:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1426:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1440:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1454:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:1469:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1491:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:1506:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1522:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:1566:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1581:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1603:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(!tdb->open){
data/tokyocabinet-1.4.48/tctdb.c:1632:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!tdb->open || !tdb->wmode){
data/tokyocabinet-1.4.48/tctdb.c:2242:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[TDBCOLBUFSIZ];
data/tokyocabinet-1.4.48/tctdb.c:2320:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tchdbopaque(thdb), tchdbopaque(hdb), TDBOPAQUESIZ + TDBLEFTOPQSIZ);
data/tokyocabinet-1.4.48/tctdb.c:2844:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(opq, &llnum, sizeof(llnum));
data/tokyocabinet-1.4.48/tctdb.c:4080:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stack[TCNUMBUFSIZ], *rbuf;
data/tokyocabinet-1.4.48/tctdb.c:4087:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(rbuf + 1, expr, esiz);
data/tokyocabinet-1.4.48/tctdb.c:4409:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char astack[TDBCOLBUFSIZ];
data/tokyocabinet-1.4.48/tctdb.c:4420:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char sstack[TDBCOLBUFSIZ], *str;
data/tokyocabinet-1.4.48/tctdb.c:4587:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stack[TDBCOLBUFSIZ], *rbuf;
data/tokyocabinet-1.4.48/tctdb.c:4593:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(rbuf, pkbuf, pksiz);
data/tokyocabinet-1.4.48/tctdb.c:4652:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stack[TDBCOLBUFSIZ], *rbuf;
data/tokyocabinet-1.4.48/tctdb.c:4659:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(rbuf, vbuf, vsiz);
data/tokyocabinet-1.4.48/tctdb.c:4685:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stack[TDBCOLBUFSIZ], *rbuf;
data/tokyocabinet-1.4.48/tctdb.c:4714:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, pkbuf, pksiz);
data/tokyocabinet-1.4.48/tctdb.c:4749:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stack[TDBCOLBUFSIZ], *rbuf;
data/tokyocabinet-1.4.48/tctdb.c:4778:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, pkbuf, pksiz);
data/tokyocabinet-1.4.48/tctdb.c:4791:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char token[TDBIDXQGUNIT*3+1];
data/tokyocabinet-1.4.48/tctdb.c:4820:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stack[TDBCOLBUFSIZ], *rbuf;
data/tokyocabinet-1.4.48/tctdb.c:4826:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(rbuf, pkbuf, pksiz);
data/tokyocabinet-1.4.48/tctdb.c:4885:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stack[TDBCOLBUFSIZ], *rbuf;
data/tokyocabinet-1.4.48/tctdb.c:4892:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(rbuf, vbuf, vsiz);
data/tokyocabinet-1.4.48/tctdb.c:5084:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char token[TDBIDXQGUNIT*3+1];
data/tokyocabinet-1.4.48/tctdb.c:5286:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char pkbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tctdb.c:5287:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          int pksiz = sprintf(pkbuf, "%lld", (long long)tid);
data/tokyocabinet-1.4.48/tctdb.c:5326:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char pkbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tctdb.c:5327:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          int pksiz = sprintf(pkbuf, "%lld", (long long)tid);
data/tokyocabinet-1.4.48/tctdb.c:5418:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char token[TDBIDXQGUNIT*3+1];
data/tokyocabinet-1.4.48/tctdb.c:5464:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  hash = hash * 37 + ((unsigned char *)pkbuf)[k];
data/tokyocabinet-1.4.48/tctdb.c:5531:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  hash = hash * 37 + ((unsigned char *)pkbuf)[k];
data/tokyocabinet-1.4.48/tctdb.c:5736:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char pkbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tctdb.c:5737:23:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          int pksiz = sprintf(pkbuf, "%lld", (long long)pkid);
data/tokyocabinet-1.4.48/tctdb.c:5808:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tctdb.c:5809:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              int pksiz = sprintf(numbuf, "%lld", (long long)pkid);
data/tokyocabinet-1.4.48/tctdb.c:5877:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tctdb.c:5878:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              int pksiz = sprintf(numbuf, "%lld", (long long)pkid);
data/tokyocabinet-1.4.48/tctdb.c:6096:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *pkbuf, stack[TDBPAGEBUFSIZ], *rbuf;
data/tokyocabinet-1.4.48/tctdb.c:6106:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(rbuf, pkbuf, pksiz);
data/tokyocabinet-1.4.48/tctdb.c:6178:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TDBPAGEBUFSIZ];
data/tokyocabinet-1.4.48/tctdb.c:6180:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "META:");
data/tokyocabinet-1.4.48/tctdb.c:6181:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " mmtx=%p", (void *)tdb->mmtx);
data/tokyocabinet-1.4.48/tctdb.c:6182:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " hdb=%p", (void *)tdb->hdb);
data/tokyocabinet-1.4.48/tctdb.c:6183:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " open=%d", tdb->open);
data/tokyocabinet-1.4.48/tctdb.c:6183:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  wp += sprintf(wp, " open=%d", tdb->open);
data/tokyocabinet-1.4.48/tctdb.c:6184:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " wmode=%d", tdb->wmode);
data/tokyocabinet-1.4.48/tctdb.c:6185:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " opts=%u", tdb->opts);
data/tokyocabinet-1.4.48/tctdb.c:6186:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " lcnum=%d", tdb->lcnum);
data/tokyocabinet-1.4.48/tctdb.c:6187:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " ncnum=%d", tdb->ncnum);
data/tokyocabinet-1.4.48/tctdb.c:6188:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " iccmax=%lld", (long long)tdb->iccmax);
data/tokyocabinet-1.4.48/tctdb.c:6189:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " iccsync=%f", tdb->iccsync);
data/tokyocabinet-1.4.48/tctdb.c:6190:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " idxs=%p", (void *)tdb->idxs);
data/tokyocabinet-1.4.48/tctdb.c:6191:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " inum=%d", tdb->inum);
data/tokyocabinet-1.4.48/tctdb.c:6192:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, " tran=%d", tdb->tran);
data/tokyocabinet-1.4.48/tctdb.h:51:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  bool open;                             /* whether the internal database is opened */
data/tokyocabinet-1.4.48/tctmgr.c:709:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char date[48];
data/tokyocabinet-1.4.48/tctmgr.c:743:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pknumbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tctmgr.c:745:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    pksiz = sprintf(pknumbuf, "%lld", (long long)tctdbgenuid(tdb));
data/tokyocabinet-1.4.48/tctmgr.c:1169:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *ifp = file ? fopen(file, "rb") : stdin;
data/tokyocabinet-1.4.48/tctmgr.c:1191:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *line, numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tctmgr.c:1203:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(numbuf, "%lld", (long long)tctdbgenuid(tdb));
data/tokyocabinet-1.4.48/tctmttest.c:1036:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tctmttest.c:1037:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", uid);
data/tokyocabinet-1.4.48/tctmttest.c:1039:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ*5];
data/tokyocabinet-1.4.48/tctmttest.c:1040:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", uid);
data/tokyocabinet-1.4.48/tctmttest.c:1043:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%.2f", (myrand(i * 100) + 1) / 100.0);
data/tokyocabinet-1.4.48/tctmttest.c:1045:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1048:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(32) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1056:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "%d", pt);
data/tokyocabinet-1.4.48/tctmttest.c:1087:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tctmttest.c:1088:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", base + (rnd ? myrandnd(i) : i));
data/tokyocabinet-1.4.48/tctmttest.c:1114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tctmttest.c:1115:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", base + (rnd ? myrand(i + 1) : i));
data/tokyocabinet-1.4.48/tctmttest.c:1143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tctmttest.c:1144:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", myrand(rnum * (id + 1)));
data/tokyocabinet-1.4.48/tctmttest.c:1146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ*5];
data/tokyocabinet-1.4.48/tctmttest.c:1147:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", id);
data/tokyocabinet-1.4.48/tctmttest.c:1150:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%.2f", (myrand(i * 100) + 1) / 100.0);
data/tokyocabinet-1.4.48/tctmttest.c:1152:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1155:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(32) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1163:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "%d", pt);
data/tokyocabinet-1.4.48/tctmttest.c:1170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tctmttest.c:1171:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int nsiz = sprintf(nbuf, "c%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1172:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1328:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char expr[RECBUFSIZ];
data/tokyocabinet-1.4.48/tctmttest.c:1329:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(expr, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1374:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char expr[RECBUFSIZ*3];
data/tokyocabinet-1.4.48/tctmttest.c:1377:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              wp += sprintf(expr, "%f", myrand(i * 100) / 100.0);
data/tokyocabinet-1.4.48/tctmttest.c:1379:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              wp += sprintf(expr, "%d", myrand(i));
data/tokyocabinet-1.4.48/tctmttest.c:1381:39:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            if(myrand(10) == 0) wp += sprintf(wp, ",%d", myrand(i));
data/tokyocabinet-1.4.48/tctmttest.c:1382:39:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            if(myrand(10) == 0) wp += sprintf(wp, ",%d", myrand(i));
data/tokyocabinet-1.4.48/tctmttest.c:1459:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tctmttest.c:1460:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%08d", base + myrandnd(i));
data/tokyocabinet-1.4.48/tctmttest.c:1464:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ*5];
data/tokyocabinet-1.4.48/tctmttest.c:1465:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int vsiz = sprintf(vbuf, "%d", id);
data/tokyocabinet-1.4.48/tctmttest.c:1468:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        vsiz = sprintf(vbuf, "%.2f", (myrand(i * 100) + 1) / 100.0);
data/tokyocabinet-1.4.48/tctmttest.c:1470:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1473:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%d", myrand(32) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1481:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        wp += sprintf(wp, "%d", pt);
data/tokyocabinet-1.4.48/tctmttest.c:1488:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char nbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tctmttest.c:1489:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int nsiz = sprintf(nbuf, "c%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1490:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tctmttest.c:1526:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char expr[RECBUFSIZ];
data/tokyocabinet-1.4.48/tctmttest.c:1527:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(expr, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:173:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:174:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, "proc", 5);
data/tokyocabinet-1.4.48/tcttest.c:185:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)kbuf)[ksiz];
data/tokyocabinet-1.4.48/tcttest.c:188:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)vbuf)[vsiz];
data/tokyocabinet-1.4.48/tcttest.c:651:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:652:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", id);
data/tokyocabinet-1.4.48/tcttest.c:654:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ*5];
data/tokyocabinet-1.4.48/tcttest.c:655:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", id);
data/tokyocabinet-1.4.48/tcttest.c:658:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%.2f", (myrand(i * 100) + 1) / 100.0);
data/tokyocabinet-1.4.48/tcttest.c:660:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:663:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(32) + 1);
data/tokyocabinet-1.4.48/tcttest.c:671:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "%d", pt);
data/tokyocabinet-1.4.48/tcttest.c:739:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:740:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcttest.c:804:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:805:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcttest.c:899:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:900:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", id);
data/tokyocabinet-1.4.48/tcttest.c:902:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ*5];
data/tokyocabinet-1.4.48/tcttest.c:903:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", id);
data/tokyocabinet-1.4.48/tcttest.c:906:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%.2f", (myrand(i * 100) + 1) / 100.0);
data/tokyocabinet-1.4.48/tcttest.c:908:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:911:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(32) + 1);
data/tokyocabinet-1.4.48/tcttest.c:919:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "%d", pt);
data/tokyocabinet-1.4.48/tcttest.c:926:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:927:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int nsiz = sprintf(nbuf, "c%d", myrand(pnum) + 1);
data/tokyocabinet-1.4.48/tcttest.c:928:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcttest.c:999:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char fbuf[PATH_MAX];
data/tokyocabinet-1.4.48/tcttest.c:1116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1117:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", id);
data/tokyocabinet-1.4.48/tcttest.c:1119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ*5];
data/tokyocabinet-1.4.48/tcttest.c:1120:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", id);
data/tokyocabinet-1.4.48/tcttest.c:1123:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%.2f", (myrand(i * 100) + 1) / 100.0);
data/tokyocabinet-1.4.48/tcttest.c:1125:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1128:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(32) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1136:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "%d", pt);
data/tokyocabinet-1.4.48/tcttest.c:1143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1144:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int nsiz = sprintf(nbuf, "c%d", myrand(32) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1145:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(32) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1168:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1169:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", i);
data/tokyocabinet-1.4.48/tcttest.c:1193:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1194:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int pksiz = sprintf(pkbuf, "%d", i);
data/tokyocabinet-1.4.48/tcttest.c:1240:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char expr[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1241:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(expr, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1286:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char expr[RECBUFSIZ*3];
data/tokyocabinet-1.4.48/tcttest.c:1289:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            wp += sprintf(expr, "%f", myrand(i * 100) / 100.0);
data/tokyocabinet-1.4.48/tcttest.c:1291:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            wp += sprintf(expr, "%d", myrand(i));
data/tokyocabinet-1.4.48/tcttest.c:1293:37:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          if(myrand(10) == 0) wp += sprintf(wp, ",%d", myrand(i));
data/tokyocabinet-1.4.48/tcttest.c:1294:37:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          if(myrand(10) == 0) wp += sprintf(wp, ",%d", myrand(i));
data/tokyocabinet-1.4.48/tcttest.c:1340:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1341:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1378:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1379:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int pksiz = sprintf(pkbuf, "%X", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1381:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vbuf[RECBUFSIZ*2];
data/tokyocabinet-1.4.48/tcttest.c:1382:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1384:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, " %d, %d ", myrand(i) + 1, rnum / (myrand(rnum) + 1));
data/tokyocabinet-1.4.48/tcttest.c:1394:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1395:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int pksiz = sprintf(pkbuf, "%X", myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1445:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char expr[RECBUFSIZ*3];
data/tokyocabinet-1.4.48/tcttest.c:1448:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        wp += sprintf(expr, "%f", myrand(i * 100) / 100.0);
data/tokyocabinet-1.4.48/tcttest.c:1450:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        wp += sprintf(expr, "%d", myrand(i));
data/tokyocabinet-1.4.48/tcttest.c:1452:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      if(myrand(10) == 0) wp += sprintf(wp, ",%d", myrand(i));
data/tokyocabinet-1.4.48/tcttest.c:1453:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      if(myrand(10) == 0) wp += sprintf(wp, ",%d", myrand(i));
data/tokyocabinet-1.4.48/tcttest.c:1529:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1530:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcttest.c:1568:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1569:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", myrand(rnum));
data/tokyocabinet-1.4.48/tcttest.c:1620:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1621:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(pkbuf, "%d", myrand(10) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1622:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ*2];
data/tokyocabinet-1.4.48/tcttest.c:1623:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(vbuf, "%d\t%d", myrand(10) + 1, myrand(rnum) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1719:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pkbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1720:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int pksiz = sprintf(pkbuf, "%d", id);
data/tokyocabinet-1.4.48/tcttest.c:1722:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ*5];
data/tokyocabinet-1.4.48/tcttest.c:1723:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", id);
data/tokyocabinet-1.4.48/tcttest.c:1726:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%.2f", (myrand(i * 100) + 1) / 100.0);
data/tokyocabinet-1.4.48/tcttest.c:1728:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1731:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(32) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1739:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "%d", pt);
data/tokyocabinet-1.4.48/tcttest.c:1746:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1747:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int nsiz = sprintf(nbuf, "c%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1748:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1921:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char expr[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcttest.c:1922:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(expr, "%d", myrand(i) + 1);
data/tokyocabinet-1.4.48/tcttest.c:1967:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char expr[RECBUFSIZ*3];
data/tokyocabinet-1.4.48/tcttest.c:1970:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              wp += sprintf(expr, "%f", myrand(i * 100) / 100.0);
data/tokyocabinet-1.4.48/tcttest.c:1972:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              wp += sprintf(expr, "%d", myrand(i));
data/tokyocabinet-1.4.48/tcttest.c:1974:39:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            if(myrand(10) == 0) wp += sprintf(wp, ",%d", myrand(i));
data/tokyocabinet-1.4.48/tcttest.c:1975:39:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            if(myrand(10) == 0) wp += sprintf(wp, ",%d", myrand(i));
data/tokyocabinet-1.4.48/tcucodec.c:906:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ebuf[32];
data/tokyocabinet-1.4.48/tcucodec.c:959:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char vnumbuf[sizeof(int)+1];
data/tokyocabinet-1.4.48/tcucodec.c:964:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tbuf, vnumbuf, step);
data/tokyocabinet-1.4.48/tcucodec.c:1159:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ary[anum++] = (((unsigned char *)ibuf)[i] << 8) + ((unsigned char *)ibuf)[i+1];
data/tokyocabinet-1.4.48/tcucodec.c:1159:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ary[anum++] = (((unsigned char *)ibuf)[i] << 8) + ((unsigned char *)ibuf)[i+1];
data/tokyocabinet-1.4.48/tcucodec.c:1190:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[48];
data/tokyocabinet-1.4.48/tcucodec.c:1218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[48];
data/tokyocabinet-1.4.48/tcucodec.c:1222:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[48];
data/tokyocabinet-1.4.48/tcumttest.c:404:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcumttest.c:405:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + (rnd ? myrand(i) : i));
data/tokyocabinet-1.4.48/tcumttest.c:432:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcumttest.c:433:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%08d", base + (rnd ? myrand(i) : i));
data/tokyocabinet-1.4.48/tcumttest.c:458:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcumttest.c:459:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + (rnd ? myrand(i) : i));
data/tokyocabinet-1.4.48/tcumttest.c:488:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcumttest.c:489:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", base + myrandnd(i));
data/tokyocabinet-1.4.48/tcutest.c:162:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:173:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)kbuf)[ksiz];
data/tokyocabinet-1.4.48/tcutest.c:176:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    sum += ((char *)vbuf)[vsiz];
data/tokyocabinet-1.4.48/tcutest.c:459:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:460:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tcutest.c:483:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:484:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", i);
data/tokyocabinet-1.4.48/tcutest.c:520:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:521:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcutest.c:552:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:553:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcutest.c:596:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:597:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcutest.c:628:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:629:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcutest.c:672:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:673:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcutest.c:704:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:705:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcutest.c:748:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:749:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcutest.c:780:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:781:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int len = sprintf(buf, "%08d", rnd ? myrand(rnum) + 1 : i);
data/tokyocabinet-1.4.48/tcutest.c:871:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char ustr[anum*3+1];
data/tokyocabinet-1.4.48/tcutest.c:908:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char zbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:909:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(zbuf, "abc\0def\0ghij\0kl\0m", 17);
data/tokyocabinet-1.4.48/tcutest.c:922:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(zbuf, "abc\0def\0ghij\0kl\0m", 17);
data/tokyocabinet-1.4.48/tcutest.c:935:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:936:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int ksiz = sprintf(kbuf, "%d", myrand(1000000));
data/tokyocabinet-1.4.48/tcutest.c:959:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:960:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int ksiz = sprintf(kbuf, "%d", myrand(1000000));
data/tokyocabinet-1.4.48/tcutest.c:964:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char kbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:965:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      int ksiz = sprintf(kbuf, "%d", myrand(200));
data/tokyocabinet-1.4.48/tcutest.c:988:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:989:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int ksiz = sprintf(kbuf, "%d", myrand(10));
data/tokyocabinet-1.4.48/tcutest.c:1000:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:1001:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        int ksiz = sprintf(kbuf, "%d", myrand(10));
data/tokyocabinet-1.4.48/tcutest.c:1010:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:1011:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(kbuf, "%d", myrand(10));
data/tokyocabinet-1.4.48/tcutest.c:1086:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char encname[32];
data/tokyocabinet-1.4.48/tcutest.c:1238:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char vbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:1239:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(vbuf, "%d", i + j);
data/tokyocabinet-1.4.48/tcutest.c:1241:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(vbuf, "[%08d]", i + j);
data/tokyocabinet-1.4.48/tcutest.c:1246:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(vbuf, "u%d", k);
data/tokyocabinet-1.4.48/tcutest.c:1248:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(vbuf, "this is the %dth pen.", (j + 1) * (k + 1) + i);
data/tokyocabinet-1.4.48/tcutest.c:1275:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char buf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:1286:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char buf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:1325:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char path[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:1326:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(path, "%d", myrand(10));
data/tokyocabinet-1.4.48/tcutest.c:1368:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char kbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:1369:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int ksiz = sprintf(kbuf, "%d", myrand(i));
data/tokyocabinet-1.4.48/tcutest.c:1370:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vbuf[RECBUFSIZ];
data/tokyocabinet-1.4.48/tcutest.c:1371:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    int vsiz = sprintf(vbuf, "%d", myrand(i));
data/tokyocabinet-1.4.48/tcutil.c:68:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p, ptr, size);
data/tokyocabinet-1.4.48/tcutil.c:80:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p, str, size);
data/tokyocabinet-1.4.48/tcutil.c:127:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(xstr->ptr, str, size + 1);
data/tokyocabinet-1.4.48/tcutil.c:155:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(nxstr->ptr, xstr->ptr, xstr->size + 1);
data/tokyocabinet-1.4.48/tcutil.c:179:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(xstr->ptr + xstr->size, ptr, size);
data/tokyocabinet-1.4.48/tcutil.c:197:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(xstr->ptr + xstr->size, str, size + 1);
data/tokyocabinet-1.4.48/tcutil.c:251:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char cbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcutil.c:264:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *tmp, tbuf[TCNUMBUFSIZ*4];
data/tokyocabinet-1.4.48/tcutil.c:329:22:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              tlen = sprintf(tbuf, "%%%02X", c);
data/tokyocabinet-1.4.48/tcutil.c:457:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(narray[i].ptr, array[i].ptr, size + 1);
data/tokyocabinet-1.4.48/tcutil.c:517:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(array[index].ptr, ptr, size);
data/tokyocabinet-1.4.48/tcutil.c:535:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(array[index].ptr, str, size + 1);
data/tokyocabinet-1.4.48/tcutil.c:575:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(list->array[index].ptr, ptr, size);
data/tokyocabinet-1.4.48/tcutil.c:597:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(list->array[index].ptr, str, size + 1);
data/tokyocabinet-1.4.48/tcutil.c:649:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(list->array[index].ptr, ptr, size);
data/tokyocabinet-1.4.48/tcutil.c:669:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(list->array[index].ptr, str, size);
data/tokyocabinet-1.4.48/tcutil.c:710:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(list->array[index].ptr, ptr, size);
data/tokyocabinet-1.4.48/tcutil.c:724:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(list->array[index].ptr, str, size + 1);
data/tokyocabinet-1.4.48/tcutil.c:789:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, array[i].ptr, array[i].size);
data/tokyocabinet-1.4.48/tcutil.c:817:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(array[num].ptr, rp, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:1116:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:1127:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:1130:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:1190:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:1193:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:1262:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + ksiz + psiz + rec->vsiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:1276:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:1279:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:1605:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:1608:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, &num, sizeof(num));
data/tokyocabinet-1.4.48/tcutil.c:1663:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:1666:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, &num, sizeof(num));
data/tokyocabinet-1.4.48/tcutil.c:1738:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:1742:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:1823:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:1843:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:1846:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:1909:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + ksiz, fvbuf, fvsiz);
data/tokyocabinet-1.4.48/tcutil.c:1910:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + ksiz + fvsiz, lvbuf, lvsiz);
data/tokyocabinet-1.4.48/tcutil.c:1922:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:1926:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz, fvbuf, fvsiz);
data/tokyocabinet-1.4.48/tcutil.c:1927:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + fvsiz, lvbuf, lvsiz);
data/tokyocabinet-1.4.48/tcutil.c:1988:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + ksiz + psiz + rec->vsiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2011:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2014:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2103:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dbuf + ksiz + psiz, nvbuf, nvsiz);
data/tokyocabinet-1.4.48/tcutil.c:2119:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2122:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2369:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(history, histbuf, sizeof(*history) * hnum);
data/tokyocabinet-1.4.48/tcutil.c:2394:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(history, histbuf, sizeof(*history) * hnum);
data/tokyocabinet-1.4.48/tcutil.c:2415:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2418:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2435:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2438:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2452:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2455:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2475:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2499:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2502:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2519:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2522:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2536:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2539:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2572:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2575:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2592:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2595:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2609:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2612:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2633:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz + top->vsiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2659:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2662:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2683:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2686:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2704:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2707:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2758:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, nvbuf, nvsiz);
data/tokyocabinet-1.4.48/tcutil.c:2966:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2969:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, &num, sizeof(num));
data/tokyocabinet-1.4.48/tcutil.c:2986:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:2989:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, &num, sizeof(num));
data/tokyocabinet-1.4.48/tcutil.c:3003:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:3006:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, &num, sizeof(num));
data/tokyocabinet-1.4.48/tcutil.c:3034:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:3037:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, &num, sizeof(num));
data/tokyocabinet-1.4.48/tcutil.c:3054:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:3057:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, &num, sizeof(num));
data/tokyocabinet-1.4.48/tcutil.c:3071:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:3074:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dbuf + ksiz + psiz, &num, sizeof(num));
data/tokyocabinet-1.4.48/tcutil.c:3105:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(history, histbuf, sizeof(*history) * hnum);
data/tokyocabinet-1.4.48/tcutil.c:3192:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(history, histbuf, sizeof(*history) * hnum);
data/tokyocabinet-1.4.48/tcutil.c:3212:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(history, histbuf, sizeof(*history) * hnum);
data/tokyocabinet-1.4.48/tcutil.c:3223:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(wp, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:3227:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:3350:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:3359:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:3362:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:3398:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:3401:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:3445:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dbuf + ksiz + psiz + rec->vsiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:3454:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:3457:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dbuf + ksiz + psiz, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:4729:48:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(tcrandomdevfd == -1 && (tcrandomdevfd = open(TCRANDDEV, O_RDONLY, 00644)) != -1)
data/tokyocabinet-1.4.48/tcutil.c:4734:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&tmask, &t, tclmin(sizeof(t), sizeof(tmask)));
data/tokyocabinet-1.4.48/tcutil.c:5134:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:5331:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char digest[16];
data/tokyocabinet-1.4.48/tcutil.c:5335:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wp += sprintf(wp, "%02x", digest[i]);
data/tokyocabinet-1.4.48/tcutil.c:5416:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tzone[16];
data/tokyocabinet-1.4.48/tcutil.c:5421:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tzone, "-%02d:%02d", jl / 60, jl % 60);
data/tokyocabinet-1.4.48/tcutil.c:5423:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tzone, "+%02d:%02d", jl / 60, jl % 60);
data/tokyocabinet-1.4.48/tcutil.c:5443:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 0: wp += sprintf(wp, "Sun, "); break;
data/tokyocabinet-1.4.48/tcutil.c:5444:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 1: wp += sprintf(wp, "Mon, "); break;
data/tokyocabinet-1.4.48/tcutil.c:5445:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 2: wp += sprintf(wp, "Tue, "); break;
data/tokyocabinet-1.4.48/tcutil.c:5446:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 3: wp += sprintf(wp, "Wed, "); break;
data/tokyocabinet-1.4.48/tcutil.c:5447:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 4: wp += sprintf(wp, "Thu, "); break;
data/tokyocabinet-1.4.48/tcutil.c:5448:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 5: wp += sprintf(wp, "Fri, "); break;
data/tokyocabinet-1.4.48/tcutil.c:5449:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 6: wp += sprintf(wp, "Sat, "); break;
data/tokyocabinet-1.4.48/tcutil.c:5451:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "%02d ", ts.tm_mday);
data/tokyocabinet-1.4.48/tcutil.c:5453:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 1: wp += sprintf(wp, "Jan "); break;
data/tokyocabinet-1.4.48/tcutil.c:5454:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 2: wp += sprintf(wp, "Feb "); break;
data/tokyocabinet-1.4.48/tcutil.c:5455:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 3: wp += sprintf(wp, "Mar "); break;
data/tokyocabinet-1.4.48/tcutil.c:5456:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 4: wp += sprintf(wp, "Apr "); break;
data/tokyocabinet-1.4.48/tcutil.c:5457:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 5: wp += sprintf(wp, "May "); break;
data/tokyocabinet-1.4.48/tcutil.c:5458:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 6: wp += sprintf(wp, "Jun "); break;
data/tokyocabinet-1.4.48/tcutil.c:5459:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 7: wp += sprintf(wp, "Jul "); break;
data/tokyocabinet-1.4.48/tcutil.c:5460:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 8: wp += sprintf(wp, "Aug "); break;
data/tokyocabinet-1.4.48/tcutil.c:5461:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 9: wp += sprintf(wp, "Sep "); break;
data/tokyocabinet-1.4.48/tcutil.c:5462:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 10: wp += sprintf(wp, "Oct "); break;
data/tokyocabinet-1.4.48/tcutil.c:5463:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 11: wp += sprintf(wp, "Nov "); break;
data/tokyocabinet-1.4.48/tcutil.c:5464:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    case 12: wp += sprintf(wp, "Dec "); break;
data/tokyocabinet-1.4.48/tcutil.c:5466:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "%04d %02d:%02d:%02d ", ts.tm_year, ts.tm_hour, ts.tm_min, ts.tm_sec);
data/tokyocabinet-1.4.48/tcutil.c:5468:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(wp, "GMT");
data/tokyocabinet-1.4.48/tcutil.c:5471:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(wp, "-%02d%02d", jl / 60, jl % 60);
data/tokyocabinet-1.4.48/tcutil.c:5473:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(wp, "+%02d%02d", jl / 60, jl % 60);
data/tokyocabinet-1.4.48/tcutil.c:6272:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(nary, oary, sizeof(*oary) * oanum);
data/tokyocabinet-1.4.48/tcutil.c:6508:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:6542:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:6547:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:6581:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, kbuf, ksiz);
data/tokyocabinet-1.4.48/tcutil.c:6586:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(wp, vbuf, vsiz);
data/tokyocabinet-1.4.48/tcutil.c:6606:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char swap[size];
data/tokyocabinet-1.4.48/tcutil.c:6613:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(swap, bp + cidx * size, size);
data/tokyocabinet-1.4.48/tcutil.c:6614:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(bp + cidx * size, bp + pidx * size, size);
data/tokyocabinet-1.4.48/tcutil.c:6615:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(bp + pidx * size, swap, size);
data/tokyocabinet-1.4.48/tcutil.c:6620:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(swap, bp, size);
data/tokyocabinet-1.4.48/tcutil.c:6621:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(bp, rp, size);
data/tokyocabinet-1.4.48/tcutil.c:6622:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(rp, swap, size);
data/tokyocabinet-1.4.48/tcutil.c:6629:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(swap, bp + pidx * size, size);
data/tokyocabinet-1.4.48/tcutil.c:6630:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(bp + pidx * size, bp + cidx * size, size);
data/tokyocabinet-1.4.48/tcutil.c:6631:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(bp + cidx * size, swap, size);
data/tokyocabinet-1.4.48/tcutil.c:6639:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(swap, bp, size);
data/tokyocabinet-1.4.48/tcutil.c:6640:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(bp, bp + num * size, size);
data/tokyocabinet-1.4.48/tcutil.c:6641:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(bp + num * size, swap, size);
data/tokyocabinet-1.4.48/tcutil.c:6648:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(swap, bp + pidx * size, size);
data/tokyocabinet-1.4.48/tcutil.c:6649:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(bp + pidx * size, bp + cidx * size, size);
data/tokyocabinet-1.4.48/tcutil.c:6650:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(bp + cidx * size, swap, size);
data/tokyocabinet-1.4.48/tcutil.c:6921:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[PATH_MAX+1];
data/tokyocabinet-1.4.48/tcutil.c:6962:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = path ? open(path, O_RDONLY, TCFILEMODE) : 0;
data/tokyocabinet-1.4.48/tcutil.c:6966:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[TCIOBUFSIZ];
data/tokyocabinet-1.4.48/tcutil.c:6998:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = path ? open(path, O_RDONLY, TCFILEMODE) : 0;
data/tokyocabinet-1.4.48/tcutil.c:7002:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TCIOBUFSIZ];
data/tokyocabinet-1.4.48/tcutil.c:7030:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if(path && (fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, TCFILEMODE)) == -1) return false;
data/tokyocabinet-1.4.48/tcutil.c:7040:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int ifd = open(src, O_RDONLY, TCFILEMODE);
data/tokyocabinet-1.4.48/tcutil.c:7042:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int ofd = open(dest, O_WRONLY | O_CREAT | O_TRUNC, TCFILEMODE);
data/tokyocabinet-1.4.48/tcutil.c:7049:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[TCIOBUFSIZ];
data/tokyocabinet-1.4.48/tcutil.c:7256:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    int c = ((unsigned char *)ptr)[i];
data/tokyocabinet-1.4.48/tcutil.c:7261:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "%%%02X", c);
data/tokyocabinet-1.4.48/tcutil.c:7332:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "%%%02X", *(unsigned char *)rp);
data/tokyocabinet-1.4.48/tcutil.c:7494:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcutil.c:7496:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(numbuf, ":%d", num);
data/tokyocabinet-1.4.48/tcutil.c:7698:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "=%02X", rp[i]);
data/tokyocabinet-1.4.48/tcutil.c:7771:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  if(enp) sprintf(enp, "US-ASCII");
data/tokyocabinet-1.4.48/tcutil.c:7782:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(enp, pv, ep - pv);
data/tokyocabinet-1.4.48/tcutil.c:7992:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wp += sprintf(wp, "%02x", rp[i]);
data/tokyocabinet-1.4.48/tcutil.c:8099:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf + wi, ptr, step);
data/tokyocabinet-1.4.48/tcutil.c:8254:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(wp, "&amp;", 5);
data/tokyocabinet-1.4.48/tcutil.c:8258:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(wp, "&lt;", 4);
data/tokyocabinet-1.4.48/tcutil.c:8262:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(wp, "&gt;", 4);
data/tokyocabinet-1.4.48/tcutil.c:8266:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(wp, "&quot;", 6);
data/tokyocabinet-1.4.48/tcutil.c:8373:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcutil.c:8375:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          nsiz = sprintf(numbuf, "part:%d", i + 1);
data/tokyocabinet-1.4.48/tcutil.c:8400:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char key[nsiz+10];
data/tokyocabinet-1.4.48/tcutil.c:8415:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stack[TCIOBUFSIZ];
data/tokyocabinet-1.4.48/tcutil.c:8429:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(rbuf, pv, len);
data/tokyocabinet-1.4.48/tcutil.c:8464:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(rbuf, pv, len);
data/tokyocabinet-1.4.48/tcutil.c:8624:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        case '\t': wi += sprintf(buf + wi, "\\t"); break;
data/tokyocabinet-1.4.48/tcutil.c:8625:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        case '\n': wi += sprintf(buf + wi, "\\n"); break;
data/tokyocabinet-1.4.48/tcutil.c:8626:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        case '\r': wi += sprintf(buf + wi, "\\r"); break;
data/tokyocabinet-1.4.48/tcutil.c:8627:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        case '\\': wi += sprintf(buf + wi, "\\\\"); break;
data/tokyocabinet-1.4.48/tcutil.c:8629:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          wi += sprintf(buf + wi, "\\x%02X", c);
data/tokyocabinet-1.4.48/tcutil.c:8635:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        wi += sprintf(buf + wi, "\\x%02X", c);
data/tokyocabinet-1.4.48/tcutil.c:8757:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        case '\t': wi += sprintf(buf + wi, "\\t"); break;
data/tokyocabinet-1.4.48/tcutil.c:8758:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        case '\n': wi += sprintf(buf + wi, "\\n"); break;
data/tokyocabinet-1.4.48/tcutil.c:8759:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        case '\r': wi += sprintf(buf + wi, "\\r"); break;
data/tokyocabinet-1.4.48/tcutil.c:8760:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        case '\\': wi += sprintf(buf + wi, "\\\\"); break;
data/tokyocabinet-1.4.48/tcutil.c:8761:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        default: wi += sprintf(buf + wi, "\\u%04X", c); break;
data/tokyocabinet-1.4.48/tcutil.c:8883:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            while(ep > pv && ((unsigned char *)ep)[-1] <= ' '){
data/tokyocabinet-1.4.48/tcutil.c:8890:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buf + 1, pv, len);
data/tokyocabinet-1.4.48/tcutil.c:8975:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char vbuf[sizeof(TCTYPRFXLIST) - 1 + sizeof(obj)];
data/tokyocabinet-1.4.48/tcutil.c:8976:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(vbuf, TCTYPRFXLIST, sizeof(TCTYPRFXLIST) - 1);
data/tokyocabinet-1.4.48/tcutil.c:8977:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(vbuf + sizeof(TCTYPRFXLIST) - 1, &obj, sizeof(obj));
data/tokyocabinet-1.4.48/tcutil.c:8985:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char vbuf[sizeof(TCTYPRFXMAP) - 1 + sizeof(obj)];
data/tokyocabinet-1.4.48/tcutil.c:8986:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(vbuf, TCTYPRFXMAP, sizeof(TCTYPRFXMAP) - 1);
data/tokyocabinet-1.4.48/tcutil.c:8987:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(vbuf + sizeof(TCTYPRFXMAP) - 1, &obj, sizeof(obj));
data/tokyocabinet-1.4.48/tcutil.c:8995:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char vbuf[sizeof(TCTYPRFXLIST) - 1 + sizeof(obj)];
data/tokyocabinet-1.4.48/tcutil.c:8996:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(vbuf, TCTYPRFXLIST, sizeof(TCTYPRFXLIST) - 1);
data/tokyocabinet-1.4.48/tcutil.c:8997:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(vbuf + sizeof(TCTYPRFXLIST) - 1, &obj, sizeof(obj));
data/tokyocabinet-1.4.48/tcutil.c:9005:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char vbuf[sizeof(TCTYPRFXMAP) - 1 + sizeof(obj)];
data/tokyocabinet-1.4.48/tcutil.c:9006:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(vbuf, TCTYPRFXMAP, sizeof(TCTYPRFXMAP) - 1);
data/tokyocabinet-1.4.48/tcutil.c:9007:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(vbuf + sizeof(TCTYPRFXMAP) - 1, &obj, sizeof(obj));
data/tokyocabinet-1.4.48/tcutil.c:9092:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcutil.c:9094:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          vsiz = sprintf(numbuf, "%d", vnum);
data/tokyocabinet-1.4.48/tcutil.c:9206:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char numbuf[TCNUMBUFSIZ];
data/tokyocabinet-1.4.48/tcutil.c:9208:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        vsiz = sprintf(numbuf, "%d", vnum);
data/tokyocabinet-1.4.48/tcutil.c:9255:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char ebuf[48];
data/tokyocabinet-1.4.48/tcutil.c:9304:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy(&vars, vbuf + sizeof(TCTYPRFXMAP) - 1, sizeof(TCMAP *));
data/tokyocabinet-1.4.48/tcutil.c:9373:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(narray, array, sizeof(*narray) * num);
data/tokyocabinet-1.4.48/tcutil.c:9804:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&anum, aptr, sizeof(int32_t));
data/tokyocabinet-1.4.48/tcutil.c:9807:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&anum, aptr, asiz);
data/tokyocabinet-1.4.48/tcutil.c:9809:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&anum, aptr, sizeof(int32_t));
data/tokyocabinet-1.4.48/tcutil.c:9812:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&bnum, bptr, sizeof(int32_t));
data/tokyocabinet-1.4.48/tcutil.c:9815:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&bnum, bptr, bsiz);
data/tokyocabinet-1.4.48/tcutil.c:9817:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&bnum, bptr, sizeof(int32_t));
data/tokyocabinet-1.4.48/tcutil.c:9828:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&anum, aptr, sizeof(int64_t));
data/tokyocabinet-1.4.48/tcutil.c:9831:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&anum, aptr, asiz);
data/tokyocabinet-1.4.48/tcutil.c:9833:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&anum, aptr, sizeof(int64_t));
data/tokyocabinet-1.4.48/tcutil.c:9836:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&bnum, bptr, sizeof(int64_t));
data/tokyocabinet-1.4.48/tcutil.c:9839:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&bnum, bptr, bsiz);
data/tokyocabinet-1.4.48/tcutil.c:9841:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&bnum, bptr, sizeof(int64_t));
data/tokyocabinet-1.4.48/tcutil.c:9859:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tp, ptr, usiz);
data/tokyocabinet-1.4.48/tcutil.c:9860:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tp + usiz, ptr, usiz);
data/tokyocabinet-1.4.48/tcutil.c:9864:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *arrays[usiz+1];
data/tokyocabinet-1.4.48/tcutil.c:9884:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sp, &idx, sizeof(idx));
data/tokyocabinet-1.4.48/tcutil.c:9912:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rbuf[usiz+1];
data/tokyocabinet-1.4.48/tcutil.c:9913:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(rbuf, ptr, usiz);
data/tokyocabinet-1.4.48/tcutil.c:9967:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(tp, ptr, size);
data/tokyocabinet-1.4.48/tcutil.c:9968:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(tp + size, ptr, size);
data/tokyocabinet-1.4.48/tcutil.c:9969:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *abuf[TCBWTBUFNUM];
data/tokyocabinet-1.4.48/tcutil.c:10007:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(result, ptr, size);
data/tokyocabinet-1.4.48/tcutil.c:10105:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *nbuf[TCBWTBUFNUM];
data/tokyocabinet-1.4.48/tcutil.c:10112:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    count[((unsigned char *)arrays[i])[skip]]++;
data/tokyocabinet-1.4.48/tcutil.c:10114:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(accum, count, sizeof(count));
data/tokyocabinet-1.4.48/tcutil.c:10119:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    narrays[--accum[((unsigned char *)arrays[i])[skip]]] = arrays[i];
data/tokyocabinet-1.4.48/tcutil.c:10147:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(arrays, narrays, anum * sizeof(*narrays));
data/tokyocabinet-1.4.48/tcutil.c:10161:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const unsigned char *ap = (unsigned char *)arrays[i-1];
data/tokyocabinet-1.4.48/tcutil.c:10162:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const unsigned char *bp = (unsigned char *)arrays[i];
data/tokyocabinet-1.4.48/tcutil.c:10174:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const unsigned char *ap = (unsigned char *)arrays[j-1];
data/tokyocabinet-1.4.48/tcutil.c:10208:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const unsigned char *ap = (unsigned char *)arrays[i+1];
data/tokyocabinet-1.4.48/tcutil.c:10209:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const unsigned char *bp = (unsigned char *)arrays[i];
data/tokyocabinet-1.4.48/tcutil.c:10219:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const unsigned char *ap = (unsigned char *)arrays[mybot];
data/tokyocabinet-1.4.48/tcutil.c:10220:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const unsigned char *bp = (unsigned char *)arrays[i];
data/tokyocabinet-1.4.48/tcutil.c:10245:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const unsigned char *ap = (unsigned char *)arrays[i+1];
data/tokyocabinet-1.4.48/tcutil.c:10246:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const unsigned char *bp = (unsigned char *)arrays[i];
data/tokyocabinet-1.4.48/tcutil.c:10256:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const unsigned char *ap = (unsigned char *)arrays[mybot];
data/tokyocabinet-1.4.48/tcutil.c:10257:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const unsigned char *bp = (unsigned char *)arrays[i];
data/tokyocabinet-1.4.48/tcutil.c:10325:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(accum, count, sizeof(count));
data/tokyocabinet-1.4.48/tcutil.c:10335:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(array, narray, anum * sizeof(*narray));
data/tokyocabinet-1.4.48/tcutil.c:10408:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char table1[0x100], table2[0x100], *table, *another;
data/tokyocabinet-1.4.48/tcutil.c:10410:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(table1, tcmtftable, sizeof(tcmtftable));
data/tokyocabinet-1.4.48/tcutil.c:10425:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(another, &c, 1);
data/tokyocabinet-1.4.48/tcutil.c:10426:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(another + 1, table, idx);
data/tokyocabinet-1.4.48/tcutil.c:10427:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(another + 1 + idx, table + idx + 1, 255 - idx);
data/tokyocabinet-1.4.48/tcutil.c:10442:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char table1[0x100], table2[0x100], *table, *another;
data/tokyocabinet-1.4.48/tcutil.c:10444:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(table1, tcmtftable, sizeof(tcmtftable));
data/tokyocabinet-1.4.48/tcutil.c:10454:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(another, &c, 1);
data/tokyocabinet-1.4.48/tcutil.c:10455:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(another + 1, table, idx);
data/tokyocabinet-1.4.48/tcutil.c:10456:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(another + 1 + idx, table + idx + 1, 255 - idx);
data/tokyocabinet-1.4.48/tcutil.h:3897:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      printf("%02X", ((unsigned char *)(TC_ptr))[TC_i]); \
data/tokyocabinet-1.4.48/tcutil.h:3991:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((TC_res), (TC_ptr), (TC_size)); \
data/tokyocabinet-1.4.48/tcutil.h:4026:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((TC_xstr)->ptr + (TC_xstr)->size, (TC_ptr), TC_mysize); \
data/tokyocabinet-1.4.48/tcutil.h:4077:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(array[TC_index].ptr, (TC_ptr), TC_mysize); \
data/tokyocabinet-1.4.48/tcutil.h:4097:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((TC_list)->array[TC_myindex].ptr, (TC_ptr), (TC_size)); \
data/tokyocabinet-1.4.48/example/tctchat.c:47:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     strlen(author) <= 32 && strlen(text) <= 1024){
data/tokyocabinet-1.4.48/example/tctchat.c:47:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     strlen(author) <= 32 && strlen(text) <= 1024){
data/tokyocabinet-1.4.48/example/tctchat.c:80:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tcmapprintf(cols, "c", "c%02u", tcgetcrc(astr, strlen(astr)) % 12 + 1);
data/tokyocabinet-1.4.48/example/tctchat.c:96:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  fwrite(str, 1, strlen(str), stdout);
data/tokyocabinet-1.4.48/example/tctsearch.c:94:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  fwrite(str, 1, strlen(str), stdout);
data/tokyocabinet-1.4.48/myconf.h:433:42:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define sched_yield()                    usleep(1000 * 20)
data/tokyocabinet-1.4.48/tcadb.c:209:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      TCLISTPUSH(idxs, pv, strlen(pv));
data/tokyocabinet-1.4.48/tcadb.c:473:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbput(adb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcadb.c:473:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbput(adb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcadb.c:549:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbputkeep(adb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcadb.c:549:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbputkeep(adb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcadb.c:621:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbputcat(adb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcadb.c:621:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbputcat(adb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcadb.c:668:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbout(adb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcadb.c:716:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbget(adb, kstr, strlen(kstr), &vsiz);
data/tokyocabinet-1.4.48/tcadb.c:763:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbvsiz(adb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcadb.c:903:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcadbfwmkeys(adb, pstr, strlen(pstr), max);
data/tokyocabinet-1.4.48/tcadb.c:3223:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          TCXSTRCAT(hbuf, hint, strlen(hint));
data/tokyocabinet-1.4.48/tcamgr.c:123:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int size = strlen(str);
data/tokyocabinet-1.4.48/tcamgr.c:292:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcamgr.c:294:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    vsiz = strlen(value);
data/tokyocabinet-1.4.48/tcamgr.c:336:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcamgr.c:383:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcatest.c:700:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int ksiz = strlen(kbuf);
data/tokyocabinet-1.4.48/tcatest.c:702:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int vsiz = strlen(vbuf);
data/tokyocabinet-1.4.48/tcatest.c:1372:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(path, "+");
data/tokyocabinet-1.4.48/tcatest.c:1375:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(path, "*");
data/tokyocabinet-1.4.48/tcawmgr.c:124:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char path[strlen(DBNAME)+16];
data/tokyocabinet-1.4.48/tcawmgr.c:175:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/tokyocabinet-1.4.48/tcbdb.c:355:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbput(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:355:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbput(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:377:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbputkeep(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:377:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbputkeep(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:399:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbputcat(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:399:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbputcat(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:421:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbputdup(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:421:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbputdup(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:465:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbout(bdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcbdb.c:517:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbget(bdb, kstr, strlen(kstr), &vsiz);
data/tokyocabinet-1.4.48/tcbdb.c:587:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbvnum(bdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcbdb.c:603:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbvsiz(bdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcbdb.c:633:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbrange(bdb, bkstr, bkstr ? strlen(bkstr) : 0, binc,
data/tokyocabinet-1.4.48/tcbdb.c:634:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    ekstr, ekstr ? strlen(ekstr) : 0, einc, max);
data/tokyocabinet-1.4.48/tcbdb.c:662:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbfwmkeys(bdb, pstr, strlen(pstr), max);
data/tokyocabinet-1.4.48/tcbdb.c:1031:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbcurjump(cur, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcbdb.c:1111:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbcurput(cur, vstr, strlen(vstr), cpmode);
data/tokyocabinet-1.4.48/tcbdb.c:1668:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbputdupback(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:1668:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbputdupback(bdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcbdb.c:1691:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcbdbcurjumpback(cur, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcbmgr.c:147:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = fgetc(ifp)) != EOF){
data/tokyocabinet-1.4.48/tcbmgr.c:311:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcbmgr.c:313:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    vsiz = strlen(value);
data/tokyocabinet-1.4.48/tcbmgr.c:361:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcbmgr.c:414:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcbmgr.c:834:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tcbdbrange(bdb, bstr, strlen(bstr), true, estr, strlen(estr), true, max);
data/tokyocabinet-1.4.48/tcbmgr.c:834:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tcbdbrange(bdb, bstr, strlen(bstr), true, estr, strlen(estr), true, max);
data/tokyocabinet-1.4.48/tcbmgr.c:868:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(!tcbdbcurjumpback(cur, jstr, strlen(jstr)) && tcbdbecode(bdb) != TCENOREC){
data/tokyocabinet-1.4.48/tcbmgr.c:880:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(!tcbdbcurjump(cur, jstr, strlen(jstr)) && tcbdbecode(bdb) != TCENOREC){
data/tokyocabinet-1.4.48/tcbmttest.c:1350:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          vsiz = strlen(rbuf);
data/tokyocabinet-1.4.48/tcbtest.c:1487:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int ksiz = strlen(kbuf);
data/tokyocabinet-1.4.48/tcbtest.c:1489:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int vsiz = strlen(vbuf);
data/tokyocabinet-1.4.48/tcbtest.c:1719:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int ksiz = strlen(kbuf);
data/tokyocabinet-1.4.48/tcbtest.c:1721:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int vsiz = strlen(vbuf);
data/tokyocabinet-1.4.48/tcbtest.c:2321:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          vsiz = strlen(rbuf);
data/tokyocabinet-1.4.48/tcfdb.c:335:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbput(fdb, tcfdbkeytoid(kstr, strlen(kstr)), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcfdb.c:335:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbput(fdb, tcfdbkeytoid(kstr, strlen(kstr)), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcfdb.c:383:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbputkeep(fdb, tcfdbkeytoid(kstr, strlen(kstr)), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcfdb.c:383:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbputkeep(fdb, tcfdbkeytoid(kstr, strlen(kstr)), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcfdb.c:431:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbputcat(fdb, tcfdbkeytoid(kstr, strlen(kstr)), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcfdb.c:431:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbputcat(fdb, tcfdbkeytoid(kstr, strlen(kstr)), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcfdb.c:475:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbout(fdb, tcfdbkeytoid(kstr, strlen(kstr)));
data/tokyocabinet-1.4.48/tcfdb.c:521:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbget(fdb, tcfdbkeytoid(kstr, strlen(kstr)), &vsiz);
data/tokyocabinet-1.4.48/tcfdb.c:604:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbvsiz(fdb, tcfdbkeytoid(kstr, strlen(kstr)));
data/tokyocabinet-1.4.48/tcfdb.c:701:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbrange2(fdb, lstr, strlen(lstr), ustr, strlen(ustr), max);
data/tokyocabinet-1.4.48/tcfdb.c:701:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbrange2(fdb, lstr, strlen(lstr), ustr, strlen(ustr), max);
data/tokyocabinet-1.4.48/tcfdb.c:731:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int64_t lower = tcfdbkeytoid(pv, strlen(pv));
data/tokyocabinet-1.4.48/tcfdb.c:745:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int64_t upper = tcfdbkeytoid(pv, strlen(pv));
data/tokyocabinet-1.4.48/tcfdb.c:783:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbrange4(fdb, istr, strlen(istr), max);
data/tokyocabinet-1.4.48/tcfdb.c:1361:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcfdbiterinit2(fdb, tcfdbkeytoid(kstr, strlen(kstr)));
data/tokyocabinet-1.4.48/tcfdb.c:1822:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(memcmp(hbuf, FDBMAGICDATA, strlen(FDBMAGICDATA)) || fdb->type != type ||
data/tokyocabinet-1.4.48/tcfmgr.c:140:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = fgetc(ifp)) != EOF){
data/tokyocabinet-1.4.48/tcfmgr.c:255:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcfmgr.c:257:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    vsiz = strlen(value);
data/tokyocabinet-1.4.48/tcfmgr.c:298:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcfmgr.c:344:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcfmttest.c:994:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          vsiz = strlen(rbuf);
data/tokyocabinet-1.4.48/tcftest.c:1485:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          vsiz = strlen(rbuf);
data/tokyocabinet-1.4.48/tchdb.c:462:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbput(hdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tchdb.c:462:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbput(hdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tchdb.c:521:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbputkeep(hdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tchdb.c:521:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbputkeep(hdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tchdb.c:598:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbputcat(hdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tchdb.c:598:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbputcat(hdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tchdb.c:644:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbputasync(hdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tchdb.c:644:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbputasync(hdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tchdb.c:679:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbout(hdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tchdb.c:713:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbget(hdb, kstr, strlen(kstr), &vsiz);
data/tokyocabinet-1.4.48/tchdb.c:772:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbvsiz(hdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tchdb.c:876:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbfwmkeys(hdb, pstr, strlen(pstr), max);
data/tokyocabinet-1.4.48/tchdb.c:1722:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbgetnext(hdb, kstr, strlen(kstr), &vsiz);
data/tokyocabinet-1.4.48/tchdb.c:1767:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tchdbiterinit2(hdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tchdb.c:3436:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(memcmp(hbuf, HDBMAGICDATA, strlen(HDBMAGICDATA)) || hdb->type != type ||
data/tokyocabinet-1.4.48/tchmgr.c:140:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = fgetc(ifp)) != EOF){
data/tokyocabinet-1.4.48/tchmgr.c:272:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tchmgr.c:274:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    vsiz = strlen(value);
data/tokyocabinet-1.4.48/tchmgr.c:315:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tchmgr.c:361:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tchmttest.c:1387:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          vsiz = strlen(rbuf);
data/tokyocabinet-1.4.48/tchtest.c:1077:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int ksiz = strlen(kbuf);
data/tokyocabinet-1.4.48/tchtest.c:1079:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int vsiz = strlen(vbuf);
data/tokyocabinet-1.4.48/tchtest.c:1289:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int ksiz = strlen(kbuf);
data/tokyocabinet-1.4.48/tchtest.c:1291:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int vsiz = strlen(vbuf);
data/tokyocabinet-1.4.48/tchtest.c:1844:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          vsiz = strlen(rbuf);
data/tokyocabinet-1.4.48/tctdb.c:351:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  bool rv = tctdbput(tdb, pkstr, strlen(pkstr), cols);
data/tokyocabinet-1.4.48/tctdb.c:391:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  bool rv = tctdbputkeep(tdb, pkstr, strlen(pkstr), cols);
data/tokyocabinet-1.4.48/tctdb.c:431:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  bool rv = tctdbputcat(tdb, pkstr, strlen(pkstr), cols);
data/tokyocabinet-1.4.48/tctdb.c:455:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tctdbout(tdb, pkstr, strlen(pkstr));
data/tokyocabinet-1.4.48/tctdb.c:488:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  TCMAP *cols = tctdbget(tdb, pkstr, strlen(pkstr));
data/tokyocabinet-1.4.48/tctdb.c:514:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tctdbvsiz(tdb, pkstr, strlen(pkstr));
data/tokyocabinet-1.4.48/tctdb.c:590:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tctdbfwmkeys(tdb, pstr, strlen(pstr), max);
data/tokyocabinet-1.4.48/tctdb.c:893:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int nsiz = strlen(name);
data/tokyocabinet-1.4.48/tctdb.c:894:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int esiz = strlen(expr);
data/tokyocabinet-1.4.48/tctdb.c:1040:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int onsiz = oname ? strlen(oname) : 0;
data/tokyocabinet-1.4.48/tctdb.c:1595:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tctdbiterinit2(tdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tctdb.c:1990:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *rp = ipath + strlen(path);
data/tokyocabinet-1.4.48/tctdb.c:1994:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rp += strlen(TDBIDXSUFFIX);
data/tokyocabinet-1.4.48/tctdb.c:2460:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char *tpath = tcsprintf("%s%s", path, ipath + strlen(opath));
data/tokyocabinet-1.4.48/tctdb.c:2777:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int nsiz = strlen(name);
data/tokyocabinet-1.4.48/tctdb.c:3277:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        esiz = strlen(expr);
data/tokyocabinet-1.4.48/tctdb.c:3724:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int onsiz = strlen(oname);
data/tokyocabinet-1.4.48/tctdb.c:3955:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      esiz = strlen(expr);
data/tokyocabinet-1.4.48/tctdb.c:4796:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tcmapputcat3(cc, token, strlen(token), rbuf, rsiz + step);
data/tokyocabinet-1.4.48/tctdb.c:5087:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int tsiz = strlen(token);
data/tokyocabinet-1.4.48/tctdb.c:5205:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int ksiz = strlen(kbuf);
data/tokyocabinet-1.4.48/tctdb.c:5431:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int tsiz = strlen(token);
data/tokyocabinet-1.4.48/tctmgr.c:158:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = fgetc(ifp)) != EOF){
data/tokyocabinet-1.4.48/tctmgr.c:299:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pksiz = strlen(pkey);
data/tokyocabinet-1.4.48/tctmgr.c:345:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pksiz = strlen(pkey);
data/tokyocabinet-1.4.48/tctmgr.c:391:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pksiz = strlen(pkey);
data/tokyocabinet-1.4.48/tcucodec.c:178:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:214:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:250:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:306:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:343:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:382:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:418:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:457:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:493:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:532:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:571:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:614:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:654:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:690:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:760:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    isiz = strlen(path) - 1;
data/tokyocabinet-1.4.48/tcucodec.c:827:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fwrite(obuf, 1, strlen(obuf), stdout);
data/tokyocabinet-1.4.48/tcucodec.c:843:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fwrite(obuf, 1, strlen(obuf), stdout);
data/tokyocabinet-1.4.48/tcucodec.c:859:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fwrite(obuf, 1, strlen(obuf), stdout);
data/tokyocabinet-1.4.48/tcucodec.c:909:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      fwrite(ebuf, 1, strlen(ebuf), stdout);
data/tokyocabinet-1.4.48/tcucodec.c:911:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      fwrite(obuf, 1, strlen(obuf), stdout);
data/tokyocabinet-1.4.48/tcucodec.c:916:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fwrite(obuf, 1, strlen(obuf), stdout);
data/tokyocabinet-1.4.48/tcucodec.c:932:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fwrite(obuf, 1, strlen(obuf), stdout);
data/tokyocabinet-1.4.48/tcucodec.c:1097:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fwrite(obuf, 1, strlen(obuf), stdout);
data/tokyocabinet-1.4.48/tcucodec.c:1101:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fwrite(obuf, 1, strlen(obuf), stdout);
data/tokyocabinet-1.4.48/tcucodec.c:1205:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ksiz = strlen(key);
data/tokyocabinet-1.4.48/tcutest.c:824:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int slen = strlen(str);
data/tokyocabinet-1.4.48/tcutest.c:1095:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *buf = tcmimebreak(mstr, strlen(mstr), map, &bsiz);
data/tokyocabinet-1.4.48/tcutest.c:1403:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        tclistpushmalloc(list, tmp, strlen(tmp));
data/tokyocabinet-1.4.48/tcutil.c:77:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int size = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:122:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int size = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:188:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int size = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:532:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int size = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:595:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int size = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:667:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int size = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:721:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int size = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:1148:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmapput(map, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:1148:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmapput(map, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:1212:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmapputkeep(map, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:1212:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmapputkeep(map, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:1297:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmapputcat(map, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:1297:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmapputcat(map, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:1364:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmapout(map, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:1404:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int ksiz = strlen(kstr);
data/tokyocabinet-1.4.48/tcutil.c:1488:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmapmove(map, kstr, strlen(kstr), head);
data/tokyocabinet-1.4.48/tcutil.c:2184:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const char *vbuf = tcmapget(map, kstr, strlen(kstr), &vsiz);
data/tokyocabinet-1.4.48/tcutil.c:2224:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmapiterinit2(map, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:2315:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmapput(map, kstr, strlen(kstr), TCXSTRPTR(xstr), TCXSTRSIZE(xstr));
data/tokyocabinet-1.4.48/tcutil.c:2486:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tctreeput(tree, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:2486:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tctreeput(tree, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:2559:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tctreeputkeep(tree, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:2559:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tctreeputkeep(tree, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:2644:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tctreeputcat(tree, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:2644:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tctreeputcat(tree, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:2808:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tctreeout(tree, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:2833:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tctreeget(tree, kstr, strlen(kstr), &vsiz);
data/tokyocabinet-1.4.48/tcutil.c:3496:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const char *vbuf = tctreeget(tree, kstr, strlen(kstr), &vsiz);
data/tokyocabinet-1.4.48/tcutil.c:3524:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tctreeiterinit2(tree, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:3648:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tctreeput(tree, kstr, strlen(kstr), TCXSTRPTR(xstr), TCXSTRSIZE(xstr));
data/tokyocabinet-1.4.48/tcutil.c:3729:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmdbput(mdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:3729:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmdbput(mdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:3748:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmdbputkeep(mdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:3748:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmdbputkeep(mdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:3766:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmdbputcat(mdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:3766:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmdbputcat(mdb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:3785:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmdbout(mdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:3813:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmdbget(mdb, kstr, strlen(kstr), &vsiz);
data/tokyocabinet-1.4.48/tcutil.c:3834:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmdbvsiz(mdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:3922:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcmdbfwmkeys(mdb, pstr, strlen(pstr), max);
data/tokyocabinet-1.4.48/tcutil.c:4095:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmdbiterinit2(mdb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:4177:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcndbput(ndb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:4177:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcndbput(ndb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:4194:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcndbputkeep(ndb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:4194:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcndbputkeep(ndb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:4210:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcndbputcat(ndb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:4210:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcndbputcat(ndb, kstr, strlen(kstr), vstr, strlen(vstr));
data/tokyocabinet-1.4.48/tcutil.c:4227:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcndbout(ndb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:4253:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcndbget(ndb, kstr, strlen(kstr), &vsiz);
data/tokyocabinet-1.4.48/tcutil.c:4272:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcndbvsiz(ndb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:4342:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return tcndbfwmkeys(ndb, pstr, strlen(pstr), max);
data/tokyocabinet-1.4.48/tcutil.c:4473:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcndbiterinit2(ndb, kstr, strlen(kstr));
data/tokyocabinet-1.4.48/tcutil.c:4731:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(tcrandomdevfd == -1 || read(tcrandomdevfd, &mask, sizeof(mask)) != sizeof(mask)){
data/tokyocabinet-1.4.48/tcutil.c:4806:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int slen = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:4807:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int klen = strlen(key);
data/tokyocabinet-1.4.48/tcutil.c:4818:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int slen = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:4819:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int klen = strlen(key);
data/tokyocabinet-1.4.48/tcutil.c:4835:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int alen = tclmin(strlen(astr), TCDISTMAXLEN);
data/tokyocabinet-1.4.48/tcutil.c:4836:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int blen = tclmin(strlen(bstr), TCDISTMAXLEN);
data/tokyocabinet-1.4.48/tcutil.c:4871:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int alen = strlen(astr);
data/tokyocabinet-1.4.48/tcutil.c:4880:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int blen = strlen(bstr);
data/tokyocabinet-1.4.48/tcutil.c:5004:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int slen = strlen(sstr);
data/tokyocabinet-1.4.48/tcutil.c:5418:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf(tzone, "Z");
data/tokyocabinet-1.4.48/tcutil.c:5495:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:5537:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if((*pv == '+' || *pv == '-') && strlen(pv) >= 6 && pv[3] == ':')
data/tokyocabinet-1.4.48/tcutil.c:5568:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if((*pv == '+' || *pv == '-') && strlen(pv) >= 6 && pv[3] == ':')
data/tokyocabinet-1.4.48/tcutil.c:5624:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int clen = strlen(crp);
data/tokyocabinet-1.4.48/tcutil.c:5795:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:6263:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:6940:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    TCMALLOC(str, strlen(buf) + strlen(pv) + 2);
data/tokyocabinet-1.4.48/tcutil.c:6940:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    TCMALLOC(str, strlen(buf) + strlen(pv) + 2);
data/tokyocabinet-1.4.48/tcutil.c:6969:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while((rsiz = read(fd, buf, tclmin(TCIOBUFSIZ, limit))) > 0){
data/tokyocabinet-1.4.48/tcutil.c:6986:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((rsiz = read(fd, wp, limit - (wp - buf))) > 0){
data/tokyocabinet-1.4.48/tcutil.c:7004:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((rsiz = read(fd, buf, TCIOBUFSIZ)) > 0){
data/tokyocabinet-1.4.48/tcutil.c:7050:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int size = read(ifd, buf, TCIOBUFSIZ);
data/tokyocabinet-1.4.48/tcutil.c:7080:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    TCLISTPUSH(list, dp->d_name, strlen(dp->d_name));
data/tokyocabinet-1.4.48/tcutil.c:7111:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  bool tail = path[0] != '\0' && path[strlen(path)-1] == MYPATHCHR;
data/tokyocabinet-1.4.48/tcutil.c:7153:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int rb = read(fd, wp, size);
data/tokyocabinet-1.4.48/tcutil.c:7207:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(rp);
data/tokyocabinet-1.4.48/tcutil.c:7326:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  TCMALLOC(norm, strlen(trim) * 3 + 1);
data/tokyocabinet-1.4.48/tcutil.c:7538:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    enc = tcurlencode(tmp, strlen(tmp));
data/tokyocabinet-1.4.48/tcutil.c:7563:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        enc = tcurlencode(tmp, strlen(tmp));
data/tokyocabinet-1.4.48/tcutil.c:7633:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:7714:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  TCMALLOC(buf, strlen(str) + 1);
data/tokyocabinet-1.4.48/tcutil.c:7756:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:7758:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  TCMALLOC(buf, len * 3 + strlen(encname) + 16);
data/tokyocabinet-1.4.48/tcutil.c:7773:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  TCMALLOC(buf, strlen(str) + 1);
data/tokyocabinet-1.4.48/tcutil.c:7907:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        tcmapput(headers, "TYPE", 4, pv, strlen(pv));
data/tokyocabinet-1.4.48/tcutil.c:7938:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        tcmapput(headers, "DISPOSITION", 11, pv, strlen(pv));
data/tokyocabinet-1.4.48/tcutil.c:7953:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int blen = strlen(boundary);
data/tokyocabinet-1.4.48/tcutil.c:8002:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(str);
data/tokyocabinet-1.4.48/tcutil.c:8284:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  TCMALLOC(buf, strlen(str) + 1);
data/tokyocabinet-1.4.48/tcutil.c:8346:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcwwwformdecode2(str, strlen(str), NULL, params);
data/tokyocabinet-1.4.48/tcutil.c:8599:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tcmapputkeep(map, (char *)key, ksiz, raw, strlen(raw));
data/tokyocabinet-1.4.48/tcutil.c:8842:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int beglen = strlen(begsep);
data/tokyocabinet-1.4.48/tcutil.c:8843:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int endlen = strlen(endsep);
data/tokyocabinet-1.4.48/tcutil.c:8998:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmapput(map, kstr, strlen(kstr), vbuf, sizeof(vbuf));
data/tokyocabinet-1.4.48/tcutil.c:9008:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tcmapput(map, kstr, strlen(kstr), vbuf, sizeof(vbuf));
data/tokyocabinet-1.4.48/tcutil.c:9223:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        vsiz = strlen(def);

ANALYSIS SUMMARY:

Hits = 1952
Lines analyzed = 74254 in approximately 2.33 seconds (31853 lines/second)
Physical Source Lines of Code (SLOC) = 59530
Hits@level = [0] 843 [1] 266 [2] 1561 [3]  73 [4]  52 [5]   0
Hits@level+ = [0+] 2795 [1+] 1952 [2+] 1686 [3+] 125 [4+]  52 [5+]   0
Hits/KSLOC@level+ = [0+] 46.9511 [1+] 32.7902 [2+] 28.3219 [3+] 2.09978 [4+] 0.873509 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.