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/conky-1.11.6/3rdparty/toluapp/include/tolua++.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/bin/tolua.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/bin/toluabind.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/bin/toluabind.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/bin/toluabind_default.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/bin/toluabind_default.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_event.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_event.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_is.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_map.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_push.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_to.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tarray.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tarray.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tarraybind.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tclass.cpp
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tclass.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tconstant.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tdirectivebind.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tfunction.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tmodule.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tmodule.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tmodulebind.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tnamespace.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariable.c
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariable.h
Examining data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariablebind.c
Examining data/conky-1.11.6/lua/libcairo-helper.h
Examining data/conky-1.11.6/lua/libcairo_imlib2_helper.h
Examining data/conky-1.11.6/lua/librsvg-helper.h
Examining data/conky-1.11.6/src/algebra.cc
Examining data/conky-1.11.6/src/algebra.h
Examining data/conky-1.11.6/src/apcupsd.cc
Examining data/conky-1.11.6/src/apcupsd.h
Examining data/conky-1.11.6/src/audacious.cc
Examining data/conky-1.11.6/src/audacious.h
Examining data/conky-1.11.6/src/bsdapm.cc
Examining data/conky-1.11.6/src/bsdapm.h
Examining data/conky-1.11.6/src/c++wrap.cc
Examining data/conky-1.11.6/src/ccurl_thread.cc
Examining data/conky-1.11.6/src/ccurl_thread.h
Examining data/conky-1.11.6/src/cmus.cc
Examining data/conky-1.11.6/src/cmus.h
Examining data/conky-1.11.6/src/colours.cc
Examining data/conky-1.11.6/src/colours.h
Examining data/conky-1.11.6/src/combine.cc
Examining data/conky-1.11.6/src/combine.h
Examining data/conky-1.11.6/src/common.cc
Examining data/conky-1.11.6/src/common.h
Examining data/conky-1.11.6/src/conky.cc
Examining data/conky-1.11.6/src/conky.h
Examining data/conky-1.11.6/src/core.cc
Examining data/conky-1.11.6/src/core.h
Examining data/conky-1.11.6/src/cpu.cc
Examining data/conky-1.11.6/src/cpu.h
Examining data/conky-1.11.6/src/darwin.h
Examining data/conky-1.11.6/src/darwin_sip.h
Examining data/conky-1.11.6/src/data-source.cc
Examining data/conky-1.11.6/src/diskio.cc
Examining data/conky-1.11.6/src/diskio.h
Examining data/conky-1.11.6/src/dragonfly.cc
Examining data/conky-1.11.6/src/dragonfly.h
Examining data/conky-1.11.6/src/entropy.cc
Examining data/conky-1.11.6/src/entropy.h
Examining data/conky-1.11.6/src/exec.cc
Examining data/conky-1.11.6/src/exec.h
Examining data/conky-1.11.6/src/fonts.cc
Examining data/conky-1.11.6/src/fonts.h
Examining data/conky-1.11.6/src/freebsd.cc
Examining data/conky-1.11.6/src/freebsd.h
Examining data/conky-1.11.6/src/fs.cc
Examining data/conky-1.11.6/src/fs.h
Examining data/conky-1.11.6/src/haiku.cc
Examining data/conky-1.11.6/src/haiku.h
Examining data/conky-1.11.6/src/hddtemp.cc
Examining data/conky-1.11.6/src/hddtemp.h
Examining data/conky-1.11.6/src/i18n.h
Examining data/conky-1.11.6/src/i8k.cc
Examining data/conky-1.11.6/src/i8k.h
Examining data/conky-1.11.6/src/ibm.cc
Examining data/conky-1.11.6/src/ibm.h
Examining data/conky-1.11.6/src/ical.cc
Examining data/conky-1.11.6/src/ical.h
Examining data/conky-1.11.6/src/iconv_tools.cc
Examining data/conky-1.11.6/src/iconv_tools.h
Examining data/conky-1.11.6/src/imlib2.cc
Examining data/conky-1.11.6/src/imlib2.h
Examining data/conky-1.11.6/src/irc.cc
Examining data/conky-1.11.6/src/irc.h
Examining data/conky-1.11.6/src/journal.cc
Examining data/conky-1.11.6/src/journal.h
Examining data/conky-1.11.6/src/libmpdclient.cc
Examining data/conky-1.11.6/src/libmpdclient.h
Examining data/conky-1.11.6/src/libtcp-portmon.cc
Examining data/conky-1.11.6/src/libtcp-portmon.h
Examining data/conky-1.11.6/src/linux.cc
Examining data/conky-1.11.6/src/linux.h
Examining data/conky-1.11.6/src/llua.cc
Examining data/conky-1.11.6/src/llua.h
Examining data/conky-1.11.6/src/logging.h
Examining data/conky-1.11.6/src/lua-config.cc
Examining data/conky-1.11.6/src/luamm.cc
Examining data/conky-1.11.6/src/mail.cc
Examining data/conky-1.11.6/src/mail.h
Examining data/conky-1.11.6/src/main.cc
Examining data/conky-1.11.6/src/main.h
Examining data/conky-1.11.6/src/mboxscan.cc
Examining data/conky-1.11.6/src/mboxscan.h
Examining data/conky-1.11.6/src/misc.cc
Examining data/conky-1.11.6/src/misc.h
Examining data/conky-1.11.6/src/mixer.cc
Examining data/conky-1.11.6/src/mixer.h
Examining data/conky-1.11.6/src/moc.cc
Examining data/conky-1.11.6/src/moc.h
Examining data/conky-1.11.6/src/mpd.cc
Examining data/conky-1.11.6/src/mpd.h
Examining data/conky-1.11.6/src/mysql.cc
Examining data/conky-1.11.6/src/mysql.h
Examining data/conky-1.11.6/src/nc.cc
Examining data/conky-1.11.6/src/nc.h
Examining data/conky-1.11.6/src/net_stat.cc
Examining data/conky-1.11.6/src/net_stat.h
Examining data/conky-1.11.6/src/netbsd.cc
Examining data/conky-1.11.6/src/netbsd.h
Examining data/conky-1.11.6/src/nvidia.cc
Examining data/conky-1.11.6/src/nvidia.h
Examining data/conky-1.11.6/src/openbsd.cc
Examining data/conky-1.11.6/src/openbsd.h
Examining data/conky-1.11.6/src/prioqueue.cc
Examining data/conky-1.11.6/src/prioqueue.h
Examining data/conky-1.11.6/src/proc.cc
Examining data/conky-1.11.6/src/proc.h
Examining data/conky-1.11.6/src/prss.cc
Examining data/conky-1.11.6/src/prss.h
Examining data/conky-1.11.6/src/pulseaudio.cc
Examining data/conky-1.11.6/src/pulseaudio.h
Examining data/conky-1.11.6/src/read_tcpip.cc
Examining data/conky-1.11.6/src/read_tcpip.h
Examining data/conky-1.11.6/src/rss.cc
Examining data/conky-1.11.6/src/rss.h
Examining data/conky-1.11.6/src/scroll.cc
Examining data/conky-1.11.6/src/scroll.h
Examining data/conky-1.11.6/src/setting.cc
Examining data/conky-1.11.6/src/smapi.cc
Examining data/conky-1.11.6/src/smapi.h
Examining data/conky-1.11.6/src/solaris.cc
Examining data/conky-1.11.6/src/solaris.h
Examining data/conky-1.11.6/src/sony.cc
Examining data/conky-1.11.6/src/sony.h
Examining data/conky-1.11.6/src/specials.cc
Examining data/conky-1.11.6/src/specials.h
Examining data/conky-1.11.6/src/tailhead.cc
Examining data/conky-1.11.6/src/tailhead.h
Examining data/conky-1.11.6/src/tcp-portmon.cc
Examining data/conky-1.11.6/src/tcp-portmon.h
Examining data/conky-1.11.6/src/temphelper.cc
Examining data/conky-1.11.6/src/temphelper.h
Examining data/conky-1.11.6/src/template.cc
Examining data/conky-1.11.6/src/template.h
Examining data/conky-1.11.6/src/text_object.cc
Examining data/conky-1.11.6/src/text_object.h
Examining data/conky-1.11.6/src/timeinfo.cc
Examining data/conky-1.11.6/src/timeinfo.h
Examining data/conky-1.11.6/src/top.cc
Examining data/conky-1.11.6/src/top.h
Examining data/conky-1.11.6/src/update-cb.cc
Examining data/conky-1.11.6/src/user.cc
Examining data/conky-1.11.6/src/user.h
Examining data/conky-1.11.6/src/users.cc
Examining data/conky-1.11.6/src/users.h
Examining data/conky-1.11.6/src/weather.cc
Examining data/conky-1.11.6/src/weather.h
Examining data/conky-1.11.6/src/x11.cc
Examining data/conky-1.11.6/src/x11.h
Examining data/conky-1.11.6/src/xmms2.cc
Examining data/conky-1.11.6/src/xmms2.h
Examining data/conky-1.11.6/tests/catch2/catch.hpp
Examining data/conky-1.11.6/tests/test-common.cc
Examining data/conky-1.11.6/tests/test-conky.cc
Examining data/conky-1.11.6/tests/test-core.cc
Examining data/conky-1.11.6/tests/test-darwin.cc
Examining data/conky-1.11.6/tests/test-diskio.cc
Examining data/conky-1.11.6/tests/test-fs.cc
Examining data/conky-1.11.6/tests/test-linux.cc

FINAL RESULTS:

data/conky-1.11.6/src/proc.cc:65:7:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  if (readlink(file, buf.get(), p_max_size) >= 0) {
data/conky-1.11.6/src/proc.cc:145:16:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  bytes_read = readlink(pathstream.str().c_str(), buf.get(), p_max_size);
data/conky-1.11.6/src/proc.cc:265:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        length = readlink(buf.get(), buf.get(), p_max_size);
data/conky-1.11.6/src/users.cc:44:9:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
        strncat(ptr, usr->ut_name, UT_NAMESIZE);
data/conky-1.11.6/src/users.cc:66:9:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
        strncat(ptr, usr->ut_line, UT_LINESIZE);
data/conky-1.11.6/3rdparty/toluapp/src/bin/tolua.c:193:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(full_path, pkg_path);
data/conky-1.11.6/src/cmus.cc:69:8:  [4] (shell) popen:
  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.
  fp = popen("cmus-remote -Q 2>/dev/null", "r");
data/conky-1.11.6/src/common.cc:112:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(info.uname_v, strsep(&start, " "));
data/conky-1.11.6/src/common.cc:567:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(obj->data.s, F_OK) == 0) {
data/conky-1.11.6/src/common.cc:580:38:  [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.
  if (((obj->data.s) != nullptr) && (system(obj->data.s) != 0)) {
data/conky-1.11.6/src/common.cc:813:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(&(buf[0]), "%Lf%s", &bytes, unit) == 2 && strlen(unit) < 16) {
data/conky-1.11.6/src/conky.cc:545:3:  [4] (format) vsnprintf:
  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.
  vsnprintf(tempbuf, size, format, argp);
data/conky-1.11.6/src/conky.cc:2849:9:  [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, PACKAGE_NAME ": forked to background, pid is %d\n",
data/conky-1.11.6/src/conky.h:306:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 3, 5)));
data/conky-1.11.6/src/dragonfly.cc:415:9:  [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.
        snprintf(buf, n,
data/conky-1.11.6/src/dragonfly.cc:513:7:  [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.
      snprintf(p_client_buffer, client_buffer_size, p_format,
data/conky-1.11.6/src/dragonfly.cc:516:7:  [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.
      snprintf(p_client_buffer, client_buffer_size, p_format, 0.0f);
data/conky-1.11.6/src/exec.cc:125:5:  [4] (shell) execl:
  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.
    execl("/bin/sh", "sh", "-c", remove_excess_quotes(command),
data/conky-1.11.6/src/exec.cc:176:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(&(string[i - 1]), &(string[i + 1]));
data/conky-1.11.6/src/exec.cc:179:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(
data/conky-1.11.6/src/freebsd.cc:442:9:  [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.
        snprintf(buf, n,
data/conky-1.11.6/src/freebsd.cc:515:5:  [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.
    snprintf(p_client_buffer, client_buffer_size, p_format,
data/conky-1.11.6/src/freebsd.cc:518:5:  [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.
    snprintf(p_client_buffer, client_buffer_size, p_format, 0.0f);
data/conky-1.11.6/src/ibm.cc:191:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (sscanf(line, "mute: %s", mute)) { break; }
data/conky-1.11.6/src/ibm.cc:275:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (sscanf(line, "status: %s", thinklight)) { break; }
data/conky-1.11.6/src/ical.cc:111:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(arg, "%d %s", &num, filename) != 2) {
data/conky-1.11.6/src/iconv_tools.cc:117:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(arg, "%s %s", iconv_from, iconv_to) != 2) {
data/conky-1.11.6/src/irc.cc:62:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(newmsg->text, "%s: %s\n", nick, text);
data/conky-1.11.6/src/irc.cc:110:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(newnick, params[1]);
data/conky-1.11.6/src/linux.cc:377:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (fscanf(fp, RT_ENTRY_FORMAT, iface, &dest, &gate, &flags, &mask) !=
data/conky-1.11.6/src/linux.cc:415:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (fscanf(fp, RT_ENTRY_FORMAT, iface, &dest, &gate, &flags, &mask) !=
data/conky-1.11.6/src/linux.cc:1035:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      sscanf(buf, stat_template, &(cpu[idx].cpu_user), &(cpu[idx].cpu_nice),
data/conky-1.11.6/src/linux.cc:1108:16:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  returncode = vfscanf(stream, format, ap);
data/conky-1.11.6/src/linux.cc:1524:7:  [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.
      snprintf(p_client_buffer, client_buffer_size, p_format,
data/conky-1.11.6/src/linux.cc:1573:3:  [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.
  snprintf(p_client_buffer, client_buffer_size, p_format,
data/conky-1.11.6/src/linux.cc:1621: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, PACKAGE_NAME ": Failed to access '%s' at ",
data/conky-1.11.6/src/linux.cc:1643: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, PACKAGE_NAME ": Failed to access '%s' at ",
data/conky-1.11.6/src/linux.cc:1648:3:  [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.
  snprintf(p_client_buffer, client_buffer_size, p_format,
data/conky-1.11.6/src/linux.cc:1797:5:  [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.
    snprintf(path, 255, ACPI_THERMAL_FORMAT, ACPI_THERMAL_ZONE_DEFAULT);
data/conky-1.11.6/src/linux.cc:1799:5:  [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.
    snprintf(path, 255, ACPI_THERMAL_FORMAT, name);
data/conky-1.11.6/src/linux.cc:1974:3:  [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.
  snprintf(acpi_path, 127, ACPI_BATTERY_BASE_PATH "/%s/state", bat);
data/conky-1.11.6/src/linux.cc:1975:3:  [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.
  snprintf(sysfs_path, 127, SYSFS_BATTERY_BASE_PATH "/%s/uevent", bat);
data/conky-1.11.6/src/linux.cc:2140:7:  [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.
      snprintf(path, 127, ACPI_BATTERY_BASE_PATH "/%s/info", bat);
data/conky-1.11.6/src/linux.cc:2335:3:  [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.
  snprintf(acpi_path, 127, ACPI_BATTERY_BASE_PATH "/%s/state", bat);
data/conky-1.11.6/src/linux.cc:2336:3:  [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.
  snprintf(sysfs_path, 127, SYSFS_BATTERY_BASE_PATH "/%s/uevent", bat);
data/conky-1.11.6/src/linux.cc:2387:7:  [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.
      snprintf(path, 127, ACPI_BATTERY_BASE_PATH "/%s/info", bat);
data/conky-1.11.6/src/linux.cc:2630:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(path, F_OK)) {
data/conky-1.11.6/src/linux.cc:2660:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return dev_list[orig] = !(access(syspath.c_str(), F_OK));
data/conky-1.11.6/src/linux.cc:2682:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    col_count = sscanf(buf, "%u %u %s %*u %*u %u %*u %*u %*u %u", &major,
data/conky-1.11.6/src/linux.cc:2696:19:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      col_count = sscanf(buf, "%u %u %s %*u %u %*u %u", &major, &minor, devbuf,
data/conky-1.11.6/src/linux.cc:2775:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  sscanf(line, template_, &cpu, &niceval, &systemval, &idle, &iowait, &irq,
data/conky-1.11.6/src/linux.cc:2835:3:  [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.
  snprintf(filename, sizeof(filename), PROCFS_TEMPLATE, process->pid);
data/conky-1.11.6/src/linux.cc:2836:3:  [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.
  snprintf(cmdline_filename, sizeof(cmdline_filename), PROCFS_CMDLINE_TEMPLATE,
data/conky-1.11.6/src/linux.cc:2977:3:  [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.
  snprintf(filename, sizeof(filename), PROCFS_TEMPLATE_IO, process->pid);
data/conky-1.11.6/src/logging.h:69:3:  [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, _(format), args...);
data/conky-1.11.6/src/logging.h:78:3:  [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, PACKAGE_NAME ": ");
data/conky-1.11.6/src/mail.cc:130:5:  [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.
    snprintf(portbuf, 8, "%" SCNu16, get<MP_PORT>());
data/conky-1.11.6/src/mail.cc:258:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(mailflags, strrchr(dirent->d_name, ','));
data/conky-1.11.6/src/mail.cc:415:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(arg, "%s %f", mbox, &n1) != 2) {
data/conky-1.11.6/src/mail.cc:511:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    sscanf(tmp, "%" SCNu16, &mail->retries);
data/conky-1.11.6/src/mail.cc:527:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    sscanf(tmp, "%" SCNu16, &get<MP_PORT>(*mail));
data/conky-1.11.6/src/mail.cc:712:7:  [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.
      system(get<MP_COMMAND>().c_str()) == -1) {
data/conky-1.11.6/src/mail.cc:941:11:  [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.
          system(get<MP_COMMAND>().c_str()) == -1) {
data/conky-1.11.6/src/mboxscan.cc:146:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(mbox_mail_spool, current_mail_spool.get(*state).c_str());
data/conky-1.11.6/src/moc.cc:64:8:  [4] (shell) popen:
  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.
  fp = popen("mocp -i", "r");
data/conky-1.11.6/src/mpd.cc:392:5:  [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.
    snprintf(p, p_max_size, fmt, get_mpd().name acc);          \
data/conky-1.11.6/src/openbsd.cc:568:5:  [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.
    snprintf(p_client_buffer, client_buffer_size, p_format,
data/conky-1.11.6/src/openbsd.cc:571:5:  [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.
    snprintf(p_client_buffer, client_buffer_size, p_format, 0.0f);
data/conky-1.11.6/src/proc.cc:164:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(objbuf.get(), "%d %s", &pid, var) == 2) {
data/conky-1.11.6/src/read_tcpip.cc:61:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  sscanf(arg, "%s", rtd->host);
data/conky-1.11.6/src/read_tcpip.cc:86:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  switch (sscanf(arg, "%s %" SCNu16, hostname, &(addr->sin_port))) {
data/conky-1.11.6/src/smapi.cc:50:3:  [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.
  snprintf(path, 127, SYS_SMAPI_PATH "/BAT%i", idx);
data/conky-1.11.6/src/smapi.cc:52:5:  [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.
    snprintf(path, 127, SYS_SMAPI_PATH "/BAT%i/installed", idx);
data/conky-1.11.6/src/smapi.cc:70:7:  [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.
  if (snprintf(path, 127, SYS_SMAPI_PATH "/%s", fname) < 0) return nullptr;
data/conky-1.11.6/src/smapi.cc:77:7:  [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.
  if (snprintf(path, 127, SYS_SMAPI_PATH "/BAT%i/%s", idx, fname) < 0)
data/conky-1.11.6/src/smapi.cc:84:7:  [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.
  if (snprintf(path, 127, SYS_SMAPI_PATH "/BAT%i/%s", idx, fname) < 0) return 0;
data/conky-1.11.6/src/solaris.cc:463:3:  [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.
  snprintf(p_client_buffer, client_buffer_size, p_format,
data/conky-1.11.6/src/tailhead.cc:91:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  args = sscanf(arg, "%s %d %d", tmp.get(), &ht->wantedlines, &ht->max_uses);
data/conky-1.11.6/src/tailhead.cc:133:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, ht->buffer);
data/conky-1.11.6/src/template.cc:87:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(src_dup + dup_idx, "%s", templates[tmpl_num - 1]);
data/conky-1.11.6/src/top.cc:529:5:  [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.
    snprintf(p, std::min(p_max_size, width), fmt, td->list[td->num]->field); \
data/conky-1.11.6/src/x11.cc:170: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, PACKAGE_NAME ": drawing to %s buffer\n",
data/conky-1.11.6/src/x11.cc:207: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, PACKAGE_NAME ": drawing to %s buffer\n",
data/conky-1.11.6/src/x11.cc:514:7:  [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,
data/conky-1.11.6/src/x11.cc:544: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,
data/conky-1.11.6/src/x11.cc:549: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, PACKAGE_NAME ": desktop window (%lx) is root window\n",
data/conky-1.11.6/src/x11.cc:713:7:  [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, PACKAGE_NAME ": window type - override\n");
data/conky-1.11.6/src/x11.cc:811:13:  [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, PACKAGE_NAME ": window type - desktop\n");
data/conky-1.11.6/src/x11.cc:816:13:  [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, PACKAGE_NAME ": window type - dock\n");
data/conky-1.11.6/src/x11.cc:821:13:  [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, PACKAGE_NAME ": window type - panel\n");
data/conky-1.11.6/src/x11.cc:827:13:  [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, PACKAGE_NAME ": window type - normal\n");
data/conky-1.11.6/src/x11.cc:954: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, PACKAGE_NAME ": drawing to created window (0x%lx)\n",
data/conky-1.11.6/src/x11.cc:976: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, PACKAGE_NAME ": drawing to desktop window\n");
data/conky-1.11.6/src/xmms2.cc:398:5:  [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.
    snprintf(p, p_max_size, fmt, info.xmms2.name);          \
data/conky-1.11.6/src/cmus.cc:45:15:  [3] (random) random:
  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.
  std::string random;
data/conky-1.11.6/src/cmus.cc:159:22:  [3] (random) random:
  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.
CMUS_PRINT_GENERATOR(random, "")
data/conky-1.11.6/src/common.cc:136:25:  [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 *homedir = getenv("HOME") != nullptr ? getenv("HOME") : "";
data/conky-1.11.6/src/common.cc:136:53:  [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 *homedir = getenv("HOME") != nullptr ? getenv("HOME") : "";
data/conky-1.11.6/src/common.cc:204:27:  [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 *val = getenv(var.c_str());
data/conky-1.11.6/src/conky.cc:409:13:  [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 *s = getenv(envvar);
data/conky-1.11.6/src/conky.cc:2717:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long(argc, argv, getopt_string, longopts, nullptr);
data/conky-1.11.6/src/core.cc:143:7:  [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) == nullptr) { return DEV_NAME(path); }
data/conky-1.11.6/src/core.cc:2099:15:  [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.
        var = getenv(buf);
data/conky-1.11.6/src/diskio.cc:70:13:  [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.
    rpbuf = realpath(&(device_name[0]), nullptr);
data/conky-1.11.6/src/diskio.cc:74:13:  [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.
    rpbuf = realpath(&device_name[0], nullptr);
data/conky-1.11.6/src/diskio.cc:77:13:  [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.
    rpbuf = realpath(s, nullptr);
data/conky-1.11.6/src/entropy.cc:101:3:  [3] (random) srandom:
  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.
  srandom(static_cast<unsigned int>(t));
data/conky-1.11.6/src/entropy.cc:103:61:  [3] (random) random:
  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.
  for (; z < x && p_max_size - 1 > z; z++) { *p++ = letters[random() % len]; }
data/conky-1.11.6/src/irc.cc:185: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(time(nullptr));
data/conky-1.11.6/src/libmpdclient.h:163:7:  [3] (random) random:
  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.
  int random;
data/conky-1.11.6/src/main.cc:302:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long(argc, argv, getopt_string, longopts, nullptr);
data/conky-1.11.6/src/mpd.cc:59:21:  [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 *t = getenv("MPD_HOST");
data/conky-1.11.6/src/mpd.cc:94:21:  [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 *t = getenv("MPD_HOST");
data/conky-1.11.6/src/mpd.cc:129:15:  [3] (random) random:
  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.
  std::string random;
data/conky-1.11.6/src/mpd.cc:403:21:  [3] (random) random:
  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.
MPD_PRINT_GENERATOR(random, "%s", .c_str())
data/conky-1.11.6/src/timeinfo.cc:106:13:  [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.
    oldTZ = getenv("TZ");
data/conky-1.11.6/src/xmms2.cc:310: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.
    char *path = getenv("XMMS_PATH");
data/conky-1.11.6/tests/catch2/catch.hpp:3549:6:  [3] (random) random:
  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.
auto random(T const& first, T const& last) -> Generator<T> {
data/conky-1.11.6/tests/catch2/catch.hpp:3557:6:  [3] (random) random:
  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.
auto random(size_t size) -> Generator<T> {
data/conky-1.11.6/tests/catch2/catch.hpp:9528:10:  [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.
    std::srand(config.rngSeed());
data/conky-1.11.6/tests/test-common.cc:40:7:  [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("HOME") != nullptr) { return "HOME"; }
data/conky-1.11.6/tests/test-common.cc:50:9:  [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(variable_name.c_str()) != nullptr) { return variable_name; }
data/conky-1.11.6/tests/test-common.cc:61: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.
  while (getenv(variable_name.c_str()) != nullptr) {
data/conky-1.11.6/tests/test-common.cc:69: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.
  REQUIRE(to_real_path("~/test") == std::string(getenv("HOME")) + "/test");
data/conky-1.11.6/tests/test-common.cc:75:29:  [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.
  std::string valid_value = getenv(valid_name.c_str());
data/conky-1.11.6/3rdparty/toluapp/src/bin/tolua.c:192: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 full_path[1024];
data/conky-1.11.6/3rdparty/toluapp/src/bin/tolua.c:194:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(full_path, "all.lua");
data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_map.c:394: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(clone, value, size);
data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_map.c:437:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ctype[128] = "const ";
data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_map.c:579:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cname[128] = "const ";
data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_map.c:580:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cbase[128] = "const ";
data/conky-1.11.6/3rdparty/toluapp/src/tests/tfunction.h:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m_s[64];
data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariable.c:11:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char n[64] = "Hi there";
data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariable.c:22:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char mn[64] = "Hi there in module";
data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariable.h:12:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char n[64];
data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariable.h:32:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char n[64];
data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariable.h:42:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char mn[64];
data/conky-1.11.6/src/apcupsd.cc:53: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 items[_APCUPSD_COUNT]
data/conky-1.11.6/src/apcupsd.cc:55: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 host[64];
data/conky-1.11.6/src/apcupsd.cc:156: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[512];
data/conky-1.11.6/src/apcupsd.cc:185: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(apc.items[i], "N/A", 4);  // including \0
data/conky-1.11.6/src/apcupsd.cc:193: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 portbuf[8];
data/conky-1.11.6/src/apcupsd.cc:250: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 host[64];
data/conky-1.11.6/src/bsdapm.cc:76: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).
  fd = open(APMDEV, O_RDONLY);
data/conky-1.11.6/src/bsdapm.cc:126: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).
  fd = open(APMDEV, O_RDONLY);
data/conky-1.11.6/src/bsdapm.cc:169: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).
  fd = open(APMDEV, O_RDONLY);
data/conky-1.11.6/src/c++wrap.cc:69:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static thread_local char buf[100];
data/conky-1.11.6/src/cmus.cc:74: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 line[255];
data/conky-1.11.6/src/cmus.cc:103:13:  [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).
            atoi(cmus.totaltime.c_str()) - atoi(cmus.curtime.c_str());
data/conky-1.11.6/src/cmus.cc:103:44:  [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).
            atoi(cmus.totaltime.c_str()) - atoi(cmus.curtime.c_str());
data/conky-1.11.6/src/cmus.cc:105:46:  [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).
          cmus.progress = static_cast<float>(atoi(cmus.curtime.c_str())) /
data/conky-1.11.6/src/cmus.cc:106:27:  [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).
                          atoi(cmus.totaltime.c_str());
data/conky-1.11.6/src/cmus.cc:191:39:  [2] (integer) atol:
  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).
  format_seconds_short(p, p_max_size, atol(cmus.totaltime.c_str()));
data/conky-1.11.6/src/cmus.cc:212:39:  [2] (integer) atol:
  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).
  format_seconds_short(p, p_max_size, atol(cmus.curtime.c_str()));
data/conky-1.11.6/src/colours.cc:156: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 newname[DEFAULT_TEXT_BUFFER_SIZE];
data/conky-1.11.6/src/common.cc:104: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 desc[256];
data/conky-1.11.6/src/common.cc:145: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).
  fd = open(file, O_RDONLY | O_NONBLOCK | O_CLOEXEC);
data/conky-1.11.6/src/common.cc:161:8:  [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).
  fp = fopen(file, "re");
data/conky-1.11.6/src/common.cc:319:19:  [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).
    obj->data.i = atoi(arg);
data/conky-1.11.6/src/common.cc:546: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 buf1[256];
data/conky-1.11.6/src/common.cc:741: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 github_url[256] = {""};
data/conky-1.11.6/src/common.cc:742: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 user_agent[30] = {""};
data/conky-1.11.6/src/common.cc:743:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char cached_result[256] = {""};
data/conky-1.11.6/src/common.cc:810: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 unit[16];  // 16 because we can also have long names (like mega-bytes)
data/conky-1.11.6/src/conky.cc:1231: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(tmpstring1, s, tbs);
data/conky-1.11.6/src/conky.cc:1329: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 ss[2] = {tmp_s, tmp_s};
data/conky-1.11.6/src/conky.cc:1722: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 ss[2] = {stippled_borders.get(*state),
data/conky-1.11.6/src/conky.cc:1761:26:  [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).
    overwrite_fpointer = fopen(overwrite_file.get(*state).c_str(), "we");
data/conky-1.11.6/src/conky.cc:1767:23:  [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).
    append_fpointer = fopen(append_file.get(*state).c_str(), "ae");
data/conky-1.11.6/src/conky.cc:1879: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[64];
data/conky-1.11.6/src/conky.cc:1903: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 inotify_buff[INOTIFY_BUF_LEN];
data/conky-1.11.6/src/conky.cc:2811:27:  [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).
          startup_pause = atoi(optarg);
data/conky-1.11.6/src/conky.h:160: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 uname_v[256]; /* with git version */
data/conky-1.11.6/src/conky.h:163: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 freq[10];
data/conky-1.11.6/src/core.cc:136:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[PATH_MAX];
data/conky-1.11.6/src/core.cc:167: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 stock[8];
data/conky-1.11.6/src/core.cc:168: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 data[16];
data/conky-1.11.6/src/core.cc:433:27:  [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).
      strlen(arg) >= 3 || atoi(&arg[0]) == 0 ||
data/conky-1.11.6/src/core.cc:434:33:  [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).
      static_cast<unsigned int>(atoi(&arg[0])) > info.cpu_count) {
data/conky-1.11.6/src/core.cc:439:19:  [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).
    obj->data.i = atoi(&arg[0]);
data/conky-1.11.6/src/core.cc:444:27:  [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).
      strlen(arg) >= 3 || atoi(&arg[0]) == 0 ||
data/conky-1.11.6/src/core.cc:445:33:  [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).
      static_cast<unsigned int>(atoi(&arg[0])) > info.cpu_count) {
data/conky-1.11.6/src/core.cc:450:19:  [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).
    obj->data.i = atoi(&arg[0]);
data/conky-1.11.6/src/core.cc:471:7:  [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).
      atoi(&arg[0]) == 0 || (unsigned int)atoi(&arg[0]) > info.cpu_count) {
data/conky-1.11.6/src/core.cc:471:43:  [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).
      atoi(&arg[0]) == 0 || (unsigned int)atoi(&arg[0]) > info.cpu_count) {
data/conky-1.11.6/src/core.cc:476:19:  [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).
    obj->data.i = atoi(&arg[0]);
data/conky-1.11.6/src/core.cc:481:7:  [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).
      atoi(&arg[0]) == 0 || (unsigned int)atoi(&arg[0]) > info.cpu_count) {
data/conky-1.11.6/src/core.cc:481:43:  [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).
      atoi(&arg[0]) == 0 || (unsigned int)atoi(&arg[0]) > info.cpu_count) {
data/conky-1.11.6/src/core.cc:486:19:  [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).
    obj->data.i = atoi(&arg[0]);
data/conky-1.11.6/src/core.cc:528:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  END OBJ(battery, nullptr) char bat[64];
data/conky-1.11.6/src/core.cc:538:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  END OBJ(battery_short, nullptr) char bat[64];
data/conky-1.11.6/src/core.cc:553:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  END OBJ(battery_time, nullptr) char bat[64];
data/conky-1.11.6/src/core.cc:563:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  END OBJ(battery_percent, nullptr) char bat[64];
data/conky-1.11.6/src/core.cc:573: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.
  END OBJ(battery_bar, nullptr) char bat[64];
data/conky-1.11.6/src/core.cc:1004:55:  [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).
  END OBJ(hr, nullptr) obj->data.l = arg != nullptr ? atoi(arg) : 1;
data/conky-1.11.6/src/core.cc:1010:59:  [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).
  END OBJ(offset, nullptr) obj->data.l = arg != nullptr ? atoi(arg) : 1;
data/conky-1.11.6/src/core.cc:1012:60:  [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).
  END OBJ(voffset, nullptr) obj->data.l = arg != nullptr ? atoi(arg) : 1;
data/conky-1.11.6/src/core.cc:1014:68:  [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).
  END OBJ_ARG(goto, nullptr, "goto needs arguments") obj->data.l = atoi(arg);
data/conky-1.11.6/src/core.cc: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 buf[DEFAULT_TEXT_BUFFER_SIZE];
data/conky-1.11.6/src/core.cc:1465:67:  [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).
  END OBJ_IF(if_updatenr, nullptr) obj->data.i = arg != nullptr ? atoi(arg) : 0;
data/conky-1.11.6/src/core.cc:1473:59:  [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).
  END OBJ(alignr, nullptr) obj->data.l = arg != nullptr ? atoi(arg) : 1;
data/conky-1.11.6/src/core.cc:1475:59:  [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).
  END OBJ(alignc, nullptr) obj->data.l = arg != nullptr ? atoi(arg) : 0;
data/conky-1.11.6/src/diskio.cc:63: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 rpbuf2[256];
data/conky-1.11.6/src/dragonfly.cc:199: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(&(ns->addr), iftmp->ifa_addr, iftmp->ifa_addr->sa_len);
data/conky-1.11.6/src/dragonfly.cc:451: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).
  if ((acpifd = open("/dev/acpi", O_RDONLY)) < 0) {
data/conky-1.11.6/src/dragonfly.cc:583: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 device_name[DEFAULT_TEXT_BUFFER_SIZE];
data/conky-1.11.6/src/dragonfly.cc:717: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).
  fd = open(APMDEV, O_RDONLY);
data/conky-1.11.6/src/dragonfly.cc:759: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).
  fd = open(APMDEV, O_RDONLY);
data/conky-1.11.6/src/dragonfly.cc:794: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).
  fd = open(APMDEV, O_RDONLY);
data/conky-1.11.6/src/exec.cc:52:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char cmd[cmd_len];
data/conky-1.11.6/src/exec.cc:149: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 b[0x1000];
data/conky-1.11.6/src/freebsd.cc:214: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(&(ns->addr), iftmp->ifa_addr, iftmp->ifa_addr->sa_len);
data/conky-1.11.6/src/freebsd.cc:585: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 device_name[DEFAULT_TEXT_BUFFER_SIZE];
data/conky-1.11.6/src/freebsd.cc:692: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[256] = {""};
data/conky-1.11.6/src/fs.h:37: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[DEFAULT_TEXT_BUFFER_SIZE];
data/conky-1.11.6/src/fs.h:38: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 type[DEFAULT_TEXT_BUFFER_SIZE];
data/conky-1.11.6/src/haiku.cc:141: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(prev_cpuinfo, cpuinfo, malloc_cpu_size);
data/conky-1.11.6/src/i8k.cc:60:13:  [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).
  if ((fp = fopen(PROC_I8K, "r")) == nullptr) {
data/conky-1.11.6/src/i8k.cc:96:20:  [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).
  int i = status ? atoi(status) : 3;
data/conky-1.11.6/src/ibm.cc:79: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 fan[128];
data/conky-1.11.6/src/ibm.cc:87:8:  [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).
  fp = fopen(fan, "r");
data/conky-1.11.6/src/ibm.cc:90: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 line[256];
data/conky-1.11.6/src/ibm.cc:129: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 thermal[128];
data/conky-1.11.6/src/ibm.cc:132:8:  [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).
  fp = fopen(thermal, "r");
data/conky-1.11.6/src/ibm.cc:136: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 line[256];
data/conky-1.11.6/src/ibm.cc:170: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 volume[128];
data/conky-1.11.6/src/ibm.cc:172: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 mute[3] = "";
data/conky-1.11.6/src/ibm.cc:180:8:  [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).
  fp = fopen(volume, "r");
data/conky-1.11.6/src/ibm.cc:183: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 line[256];
data/conky-1.11.6/src/ibm.cc:221: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 filename[128];
data/conky-1.11.6/src/ibm.cc:229:8:  [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).
  fp = fopen(filename, "r");
data/conky-1.11.6/src/ibm.cc:232: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 line[256];
data/conky-1.11.6/src/ibm.cc:260: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 thinklight[8];
data/conky-1.11.6/src/ibm.cc:261: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 filename[128];
data/conky-1.11.6/src/ibm.cc:269:8:  [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).
  fp = fopen(filename, "r");
data/conky-1.11.6/src/ibm.cc:272: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 line[256];
data/conky-1.11.6/src/ibm.cc:289:46:  [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).
  if (!isdigit(arg[0]) || strlen(arg) > 1 || atoi(&arg[0]) >= 8) {
data/conky-1.11.6/src/ibm.cc:295:19:  [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).
    obj->data.l = atoi(arg);
data/conky-1.11.6/src/ical.cc:117:10:  [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 = fopen(filename, "r");
data/conky-1.11.6/src/iconv_tools.cc:50: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(iconv_cd[iconv_count], new_iconv, sizeof(iconv_t));
data/conky-1.11.6/src/iconv_tools.cc:109: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 iconv_from[ICONV_CODEPAGE_LENGTH];
data/conky-1.11.6/src/iconv_tools.cc:110: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 iconv_to[ICONV_CODEPAGE_LENGTH];
data/conky-1.11.6/src/imlib2.cc:40: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 name[1024];
data/conky-1.11.6/src/irc.cc:96: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 nickname[64];
data/conky-1.11.6/src/irc.cc:105: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 attachment[4] = "_00";
data/conky-1.11.6/src/journal.cc:115: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 + *read, (const char *)get + fieldlen, length - fieldlen);
data/conky-1.11.6/src/libmpdclient.cc:165: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 service[INTLEN + 1];
data/conky-1.11.6/src/libmpdclient.cc:235: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 hostbuff[2048];
data/conky-1.11.6/src/libmpdclient.cc:266: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((char *)&sin.sin_addr.s_addr, (char *)he_res->h_addr,
data/conky-1.11.6/src/libmpdclient.cc:301: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.
const char *mpdTagItemKeys[MPD_TAG_NUM_OF_ITEM_TYPES] = {
data/conky-1.11.6/src/libmpdclient.cc:736:24:  [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).
      status->volume = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:738:24:  [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).
      status->repeat = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:740:24:  [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).
      status->random = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:744:32:  [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).
      status->playlistLength = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:746:25:  [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).
      status->bitRate = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:758:22:  [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).
      status->song = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:760:24:  [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).
      status->songid = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:767:31:  [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).
        status->elapsedTime = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:768:29:  [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).
        status->totalTime = atoi(tok + 1);
data/conky-1.11.6/src/libmpdclient.cc:773:27:  [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).
      status->crossfade = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:775:28:  [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).
      status->updatingDb = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:780:30:  [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).
        status->sampleRate = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:781:24:  [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).
        status->bits = atoi(++tok);
data/conky-1.11.6/src/libmpdclient.cc:784:30:  [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).
          status->channels = atoi(tok + 1);
data/conky-1.11.6/src/libmpdclient.cc:853:32:  [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).
      stats->numberOfArtists = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:855:31:  [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).
      stats->numberOfAlbums = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:857:30:  [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).
      stats->numberOfSongs = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:908:30:  [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).
      stats->numberOfSongs = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:1157:32:  [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).
      entity->info.song->pos = atoi(connection->returnElement->value);
data/conky-1.11.6/src/libmpdclient.cc:1205:35:  [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).
        entity->info.song->time = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:1208:34:  [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).
        entity->info.song->pos = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:1211:33:  [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).
        entity->info.song->id = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:1376: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 st[7];
data/conky-1.11.6/src/libmpdclient.cc:1430:14:  [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).
    retval = atoi(string);
data/conky-1.11.6/src/libmpdclient.cc:1616:11:  [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).
    ret = atoi(jobid);
data/conky-1.11.6/src/libmpdclient.cc:1745:20:  [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).
      output->id = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.cc:1749:25:  [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).
      output->enabled = atoi(re->value);
data/conky-1.11.6/src/libmpdclient.h:93: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.
extern const char *mpdTagItemKeys[MPD_TAG_NUM_OF_ITEM_TYPES];
data/conky-1.11.6/src/libmpdclient.h:108: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 errorStr[MPD_ERRORSTR_MAX_LENGTH + 1];
data/conky-1.11.6/src/libmpdclient.h:115: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 buffer[MPD_BUFFER_MAX_LENGTH + 1];
data/conky-1.11.6/src/libtcp-portmon.cc:279:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&sa.sa4.sin_addr.s_addr, &addr->s6_addr[12], 4);
data/conky-1.11.6/src/libtcp-portmon.cc:283:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&sa.sa6.sin6_addr, addr, sizeof(struct in6_addr));
data/conky-1.11.6/src/libtcp-portmon.cc:298:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(addr->s6_addr, prefix_4on6, i);
data/conky-1.11.6/src/libtcp-portmon.cc:312: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[256];
data/conky-1.11.6/src/libtcp-portmon.cc:313: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 local_addr[40];
data/conky-1.11.6/src/libtcp-portmon.cc:314: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 remote_addr[40];
data/conky-1.11.6/src/libtcp-portmon.cc:318:18:  [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).
  if ((fp = std::fopen(file, "r")) == nullptr) { return; }
data/conky-1.11.6/src/linux.cc:96: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 devtype[256];
data/conky-1.11.6/src/linux.cc:97: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 type[64];
data/conky-1.11.6/src/linux.cc:102:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char e_iface[50];
data/conky-1.11.6/src/linux.cc:107:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char interfaces_arr[MAX_NET_INTERFACES][iface_len] = {""};
data/conky-1.11.6/src/linux.cc:156:15:  [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).
  if ((mtab = fopen("/proc/mounts", "r"))) {
data/conky-1.11.6/src/linux.cc:157: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 buf1[256], buf2[129];
data/conky-1.11.6/src/linux.cc:181: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[256];
data/conky-1.11.6/src/linux.cc:273:13:  [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).
  if ((fp = fopen("/proc/sys/vm/laptop_mode", "r")) != nullptr) {
data/conky-1.11.6/src/linux.cc:287: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[128];
data/conky-1.11.6/src/linux.cc:292:13:  [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).
  if ((fp = fopen(buf, "r")) == nullptr) goto out_fail;
data/conky-1.11.6/src/linux.cc:349:13:  [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).
  if ((fp = fopen("/proc/net/route", "r")) == nullptr) {
data/conky-1.11.6/src/linux.cc:365: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 iface[iface_len];
data/conky-1.11.6/src/linux.cc:406: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 iface[iface_len];
data/conky-1.11.6/src/linux.cc:456: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[iface_len * iface_len] = {""};
data/conky-1.11.6/src/linux.cc:500: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[256];
data/conky-1.11.6/src/linux.cc:582: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 temp_addr[18];
data/conky-1.11.6/src/linux.cc:583: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(temp_addr, "%u.%u.%u.%u, ", ns2->addr.sa_data[2] & 255,
data/conky-1.11.6/src/linux.cc:642: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(&(winfo->ap_addr), &(wrq.u.ap_addr), sizeof(sockaddr));
data/conky-1.11.6/src/linux.cc:647: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(&(winfo->bitrate), &(wrq.u.bitrate), sizeof(iwparam));
data/conky-1.11.6/src/linux.cc:700: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 v6addr[33];
data/conky-1.11.6/src/linux.cc:701: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 devname[21];
data/conky-1.11.6/src/linux.cc:716:15:  [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).
  if ((file = fopen(PROCDIR "/net/if_inet6", "r")) == nullptr) { return; }
data/conky-1.11.6/src/linux.cc:784: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[256];
data/conky-1.11.6/src/linux.cc:902: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[MAX_PROCSTAT_LINELEN + 1];
data/conky-1.11.6/src/linux.cc:918: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[256];
data/conky-1.11.6/src/linux.cc:951:23:  [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).
          subtoken1 = atoi(subtoken);
data/conky-1.11.6/src/linux.cc:953:23:  [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).
          subtoken2 = atoi(subtoken);
data/conky-1.11.6/src/linux.cc:970: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[256];
data/conky-1.11.6/src/linux.cc:1183: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[256] = {'\0'};
data/conky-1.11.6/src/linux.cc:1184: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 name[256] = {'\0'};
data/conky-1.11.6/src/linux.cc:1212: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).
    name_fd = open(path, O_RDONLY);
data/conky-1.11.6/src/linux.cc:1239: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[256];
data/conky-1.11.6/src/linux.cc:1240: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[256];
data/conky-1.11.6/src/linux.cc:1290: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).
  fd = open(path, O_RDONLY);
data/conky-1.11.6/src/linux.cc:1296: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).
    fd = open(path, O_RDONLY);
data/conky-1.11.6/src/linux.cc:1323: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).
  divfd = open(path, O_RDONLY);
data/conky-1.11.6/src/linux.cc:1326: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 divbuf[64];
data/conky-1.11.6/src/linux.cc:1336:18:  [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).
      *divisor = atoi(divbuf);
data/conky-1.11.6/src/linux.cc:1353: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[64];
data/conky-1.11.6/src/linux.cc:1362:13:  [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).
      val = atoi(buf);
data/conky-1.11.6/src/linux.cc:1368:9:  [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).
  *fd = open(devtype, O_RDONLY);
data/conky-1.11.6/src/linux.cc:1412: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 buf1[64], buf2[64];
data/conky-1.11.6/src/linux.cc:1501: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 frequency[32];
data/conky-1.11.6/src/linux.cc:1502: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 s[256];
data/conky-1.11.6/src/linux.cc:1511: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 current_freq_file[128];
data/conky-1.11.6/src/linux.cc:1515:9:  [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).
    f = fopen(current_freq_file, "r");
data/conky-1.11.6/src/linux.cc:1596: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 s[256];
data/conky-1.11.6/src/linux.cc:1599: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 current_freq_file[128];
data/conky-1.11.6/src/linux.cc:1613:7:  [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).
  f = fopen(current_freq_file, "r");
data/conky-1.11.6/src/linux.cc:1631:7:  [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).
  f = fopen(current_freq_file, "r");
data/conky-1.11.6/src/linux.cc:1635: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 line[256];
data/conky-1.11.6/src/linux.cc:1669: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[256];
data/conky-1.11.6/src/linux.cc:1670: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 buf2[256];
data/conky-1.11.6/src/linux.cc:1720: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[256];
data/conky-1.11.6/src/linux.cc:1721: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 buf2[256];
data/conky-1.11.6/src/linux.cc:1793: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[256];
data/conky-1.11.6/src/linux.cc:1802: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).
  fd = open(path, O_RDONLY);
data/conky-1.11.6/src/linux.cc:1829: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[MAXTHERMZONELEN];
data/conky-1.11.6/src/linux.cc:1927:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char batteries[MAX_BATTERY_COUNT][32];
data/conky-1.11.6/src/linux.cc:1933:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char last_battery_str[MAX_BATTERY_COUNT][64];
data/conky-1.11.6/src/linux.cc:1935:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char last_battery_time_str[MAX_BATTERY_COUNT][64];
data/conky-1.11.6/src/linux.cc:1971: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 acpi_path[128];
data/conky-1.11.6/src/linux.cc:1972: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 sysfs_path[128];
data/conky-1.11.6/src/linux.cc:2008: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 charging_state[64];
data/conky-1.11.6/src/linux.cc:2009: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 present[4];
data/conky-1.11.6/src/linux.cc:2014: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[256];
data/conky-1.11.6/src/linux.cc:2131: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 charging_state[64];
data/conky-1.11.6/src/linux.cc:2132: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 present[5];
data/conky-1.11.6/src/linux.cc:2137: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[128];
data/conky-1.11.6/src/linux.cc:2144: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 b[256];
data/conky-1.11.6/src/linux.cc:2161: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[256];
data/conky-1.11.6/src/linux.cc:2331: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 acpi_path[128];
data/conky-1.11.6/src/linux.cc:2332: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 sysfs_path[128];
data/conky-1.11.6/src/linux.cc:2362: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[256];
data/conky-1.11.6/src/linux.cc:2384: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[128];
data/conky-1.11.6/src/linux.cc:2391: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 b[256];
data/conky-1.11.6/src/linux.cc:2406: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[256];
data/conky-1.11.6/src/linux.cc:2427: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 battery[BATTERY_LEN];
data/conky-1.11.6/src/linux.cc:2481:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char pb_battery_info[3][32];
data/conky-1.11.6/src/linux.cc:2515: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[32];
data/conky-1.11.6/src/linux.cc:2534: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[32];
data/conky-1.11.6/src/linux.cc:2626: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[128];
data/conky-1.11.6/src/linux.cc:2633:13:  [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).
  if ((fp = fopen(path, "r")) == nullptr) {
data/conky-1.11.6/src/linux.cc:2666: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[512], devbuf[64];
data/conky-1.11.6/src/linux.cc:2758: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[BUFFER_LEN] = {0};
data/conky-1.11.6/src/linux.cc:2770: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).
  ps = open("/proc/stat", O_RDONLY);
data/conky-1.11.6/src/linux.cc:2820: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[BUFFER_LEN] = {0}, filename[BUFFER_LEN], procname[BUFFER_LEN];
data/conky-1.11.6/src/linux.cc:2821: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 cmdline[BUFFER_LEN] = {0}, cmdline_filename[BUFFER_LEN],
data/conky-1.11.6/src/linux.cc:2823: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 basename[BUFFER_LEN] = {0};
data/conky-1.11.6/src/linux.cc:2824: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 tmpstr[BUFFER_LEN] = {0};
data/conky-1.11.6/src/linux.cc:2825: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 state[4];
data/conky-1.11.6/src/linux.cc:2839: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).
  ps = open(filename, O_RDONLY);
data/conky-1.11.6/src/linux.cc:2859:16:  [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).
  cmdline_ps = open(cmdline_filename, O_RDONLY);
data/conky-1.11.6/src/linux.cc:2971: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[BUFFER_LEN] = {0}, filename[BUFFER_LEN];
data/conky-1.11.6/src/linux.cc:2979: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).
  ps = open(filename, O_RDONLY);
data/conky-1.11.6/src/linux.h:62:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char e_iface[50];
data/conky-1.11.6/src/linux.h:63:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char interfaces_arr[MAX_NET_INTERFACES][64];
data/conky-1.11.6/src/llua.cc:249:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char func[64];
data/conky-1.11.6/src/llua.cc:292: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.
	static char func[64];
data/conky-1.11.6/src/llua.cc:382: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 name[DEFAULT_TEXT_BUFFER_SIZE];
data/conky-1.11.6/src/mail.cc:124: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 portbuf[8];
data/conky-1.11.6/src/mail.cc:343: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[128];
data/conky-1.11.6/src/mail.cc:408: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 mbox[256];
data/conky-1.11.6/src/mail.cc:474: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 host[129];
data/conky-1.11.6/src/mail.cc:475: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 user[129];
data/conky-1.11.6/src/mail.cc:476: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 pass[129];
data/conky-1.11.6/src/mail.cc:719: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 recvbuf[MAXDATASIZE];
data/conky-1.11.6/src/mail.cc:916: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 recvbuf[MAXDATASIZE];
data/conky-1.11.6/src/mboxscan.cc:61:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char mbox_mail_spool[DEFAULT_TEXT_BUFFER_SIZE];
data/conky-1.11.6/src/mboxscan.cc:202:8:  [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).
  fp = fopen(mbox_mail_spool, "re");
data/conky-1.11.6/src/misc.cc:50:8:  [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).
  fp = fopen(data, "r");
data/conky-1.11.6/src/mixer.cc:66:16:  [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).
    mixer_fd = open(MIXER_DEV, O_RDONLY);
data/conky-1.11.6/src/mixer.cc:129: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 buf1[64];
data/conky-1.11.6/src/moc.cc:69: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 line[100];
data/conky-1.11.6/src/net_stat.cc:56:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char e_iface[50] = "empty";
data/conky-1.11.6/src/net_stat.cc:57:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char interfaces_arr[MAX_NET_INTERFACES][64] = {""};
data/conky-1.11.6/src/net_stat.cc:125: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 nextarg[21];  // longest arg possible is a devname (max 20 chars)
data/conky-1.11.6/src/net_stat.cc:131: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[64];
data/conky-1.11.6/src/net_stat.cc:286: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 tempaddress[INET6_ADDRSTRLEN];
data/conky-1.11.6/src/net_stat.cc:300: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 netmaskstr[5];  // max 5 chars (/128 + null-terminator)
data/conky-1.11.6/src/net_stat.cc:301: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(netmaskstr, "/%u", current_v6->netmask);
data/conky-1.11.6/src/net_stat.cc:306: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 scopestr[4];
data/conky-1.11.6/src/net_stat.cc:307: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(scopestr, "(%c)", current_v6->scope);
data/conky-1.11.6/src/net_stat.cc:584: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[256];
data/conky-1.11.6/src/net_stat.cc:595:13:  [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).
  if ((fp = fopen("/etc/resolv.conf", "re")) == nullptr) { return 0; }
data/conky-1.11.6/src/net_stat.cc:612:34:  [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).
  obj->data.l = arg != nullptr ? atoi(arg) : 0;
data/conky-1.11.6/src/net_stat.h:69: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 addrs[17 * MAX_NET_INTERFACES + 1];
data/conky-1.11.6/src/net_stat.h:76: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 essid[35];
data/conky-1.11.6/src/net_stat.h:78: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 freq[16];
data/conky-1.11.6/src/net_stat.h:79: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 bitrate[16];
data/conky-1.11.6/src/net_stat.h:80: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 mode[16];
data/conky-1.11.6/src/net_stat.h:83: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 ap[18];
data/conky-1.11.6/src/netbsd.cc:36:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char errbuf[_POSIX2_LINE_MAX];
data/conky-1.11.6/src/nvidia.cc:427:19:  [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).
    nvs->gpu_id = atoi(p + 1);
data/conky-1.11.6/src/openbsd.cc:218: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(&(ns->addr), iftmp->ifa_addr, iftmp->ifa_addr->sa_len);
data/conky-1.11.6/src/openbsd.cc:485:42:  [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).
  if (!isdigit((unsigned char)arg[0]) || atoi(&arg[0]) < 0 ||
data/conky-1.11.6/src/openbsd.cc:486:7:  [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).
      atoi(&arg[0]) > OBSD_MAX_SENSORS - 1) {
data/conky-1.11.6/src/openbsd.cc:490:19:  [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).
    obj->data.l = atoi(&arg[0]);
data/conky-1.11.6/src/openbsd.cc:518: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 vendor[64];
data/conky-1.11.6/src/openbsd.cc:538: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 product[64];
data/conky-1.11.6/src/openbsd.cc:617:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(bssid.i_bssid, &nr.nr_macaddr, sizeof(nr.nr_macaddr));
data/conky-1.11.6/src/proc.cc:46:10:  [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 = fopen(filename, "re");
data/conky-1.11.6/src/read_tcpip.cc:64:17:  [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).
    rtd->port = atoi(rtd->host);
data/conky-1.11.6/src/read_tcpip.cc: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(&(addr->sin_addr), he->h_addr, he->h_length);
data/conky-1.11.6/src/read_tcpip.cc:164: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 portbuf[8];
data/conky-1.11.6/src/rss.cc:37: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 uri[128];
data/conky-1.11.6/src/rss.cc:38: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 action[64];
data/conky-1.11.6/src/scroll.cc:137: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 dirarg[6];
data/conky-1.11.6/src/smapi.cc:38:13:  [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).
  if ((fp = fopen(path, "r"))) {
data/conky-1.11.6/src/smapi.cc:46: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[128];
data/conky-1.11.6/src/smapi.cc:60: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 str[256] = "failed";
data/conky-1.11.6/src/smapi.cc:61:13:  [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).
  if ((fp = fopen(path, "r")) != nullptr) {
data/conky-1.11.6/src/smapi.cc:69: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[128];
data/conky-1.11.6/src/smapi.cc:76: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[128];
data/conky-1.11.6/src/smapi.cc:83: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[128];
data/conky-1.11.6/src/smapi.cc:89: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 fname[128];
data/conky-1.11.6/src/smapi.cc:104: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 str[128];
data/conky-1.11.6/src/solaris.cc:138: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/conky-1.11.6/src/solaris.cc:216: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[1024];
data/conky-1.11.6/src/solaris.cc:245: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(&(ns->addr), &ifr->ifr_addr, sizeof(ifr->ifr_addr));
data/conky-1.11.6/src/solaris.cc:312: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 stat_name[PATH_MAX];
data/conky-1.11.6/src/solaris.cc:348: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 pfn[PATH_MAX];
data/conky-1.11.6/src/solaris.cc:352: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).
  if ((fd = open(pfn, O_RDONLY)) < 0) return;
data/conky-1.11.6/src/solaris.cc:457: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 stat_name[PATH_MAX];
data/conky-1.11.6/src/sony.cc:50: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 fan[128];
data/conky-1.11.6/src/sony.cc:58:8:  [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).
  fp = fopen(fan, "r");
data/conky-1.11.6/src/sony.cc:61: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 line[256];
data/conky-1.11.6/src/specials.cc:202: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 quoted_cmd[1024] = {'\0'}; /* double-quoted execgraph command */
data/conky-1.11.6/src/specials.cc: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 argstr[1024] = {'\0'};     /* args minus quoted_cmd */
data/conky-1.11.6/src/specials.cc:204: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[1024] = {'\0'};        /* first unquoted string argument in argstr */
data/conky-1.11.6/src/specials.cc:514: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(new_graph, original_graph, graph_width * sizeof(double));
data/conky-1.11.6/src/tailhead.cc:201: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[BUFSZ];
data/conky-1.11.6/src/tailhead.cc:222: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[BUFSZ];
data/conky-1.11.6/src/tcp-portmon.cc:38: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 itembuf[32];
data/conky-1.11.6/src/timeinfo.cc:58: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 buf1[256], buf2[256], *fmt, *tz;
data/conky-1.11.6/src/top.cc:404: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[10];
data/conky-1.11.6/src/top.cc:561: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[64];
data/conky-1.11.6/src/users.cc:74: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[BUFLEN] = "";
data/conky-1.11.6/src/users.cc:91: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[BUFLEN] = "";
data/conky-1.11.6/src/users.cc: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 temp[BUFLEN] = "";
data/conky-1.11.6/src/users.cc:143: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 temp[BUFLEN] = "";
data/conky-1.11.6/tests/catch2/catch.hpp:1759: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 timeStamp[timeStampSize];
data/conky-1.11.6/tests/catch2/catch.hpp:4437:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  alignas(alignof(T)) char storage[sizeof(T)];
data/conky-1.11.6/tests/catch2/catch.hpp:4883:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/conky-1.11.6/tests/catch2/catch.hpp:5439: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).
  void open();
data/conky-1.11.6/tests/catch2/catch.hpp:8936:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  Converter(float f) { std::memcpy(&i, &f, sizeof(f)); }
data/conky-1.11.6/tests/catch2/catch.hpp:8944:30:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  Converter(double d) { std::memcpy(&i, &d, sizeof(d)); }
data/conky-1.11.6/tests/catch2/catch.hpp:9353: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 m_buffer[L_tmpnam] = {0};
data/conky-1.11.6/tests/catch2/catch.hpp:9426: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 buffer[100];
data/conky-1.11.6/tests/catch2/catch.hpp:9436:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  m_file = std::tmpfile();
data/conky-1.11.6/tests/catch2/catch.hpp:9456: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 buffer[100] = {};
data/conky-1.11.6/tests/catch2/catch.hpp:9883:16:  [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).
      tracker->open();
data/conky-1.11.6/tests/catch2/catch.hpp:10759: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 data[bufferSize];
data/conky-1.11.6/tests/catch2/catch.hpp:10803: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).
    m_ofs.open(filename.c_str());
data/conky-1.11.6/tests/catch2/catch.hpp:11028: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(m_data, m_start, m_size);
data/conky-1.11.6/tests/catch2/catch.hpp:11528: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).
void TrackerBase::open() {
data/conky-1.11.6/tests/catch2/catch.hpp:11609:5:  [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).
    open();
data/conky-1.11.6/tests/catch2/catch.hpp:11651: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).
    tracker->open();
data/conky-1.11.6/tests/catch2/catch.hpp:11943: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 asChar[sizeof(int)];
data/conky-1.11.6/tests/catch2/catch.hpp:12554: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 buffer[maxDoubleSize];
data/conky-1.11.6/tests/catch2/catch.hpp:12561: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(buffer, "%.3f", duration);
data/conky-1.11.6/tests/catch2/catch.hpp:13124: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).
  void open() {
data/conky-1.11.6/tests/catch2/catch.hpp:13153: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).
    tp.open();
data/conky-1.11.6/tests/catch2/catch.hpp:13493: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 timeStamp[timeStampSize];
data/conky-1.11.6/tests/test-conky.cc:39: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 input[kMaxSize] = "text";
data/conky-1.11.6/tests/test-conky.cc:40: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 result[kMaxSize]{'\0'};
data/conky-1.11.6/tests/test-conky.cc:48: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 input[kMaxSize] = "${exec echo text}";
data/conky-1.11.6/tests/test-conky.cc: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 result[kMaxSize]{'\0'};
data/conky-1.11.6/tests/test-conky.cc:57: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 input[kMaxSize] = "${execp echo text}";
data/conky-1.11.6/tests/test-conky.cc:58: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 result[kMaxSize]{'\0'};
data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_map.c:438:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(ctype, type, 120);
data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_map.c:581:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(cname, name, 120);
data/conky-1.11.6/3rdparty/toluapp/src/lib/tolua_map.c:582:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(cbase, base, 120);
data/conky-1.11.6/3rdparty/toluapp/src/tests/tfunction.h:59:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(m_s,s,63);
data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariablebind.c:172:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(self->n,tolua_tostring(tolua_S,2,0),64-1);
data/conky-1.11.6/3rdparty/toluapp/src/tests/tvariablebind.c:374:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(n,tolua_tostring(tolua_S,2,0),64-1);
data/conky-1.11.6/src/algebra.cc:45: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).
  for (idx = 0; idx < strlen(expr); idx++) {
data/conky-1.11.6/src/algebra.cc:121: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).
  e = arg + strlen(arg) - 1;
data/conky-1.11.6/src/apcupsd.cc:138:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(apc->items[FIELD], line + 11, APCUPSD_MAXSTR);                     \
data/conky-1.11.6/src/apcupsd.cc:252:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf(arg, "%63s %d", host, &port) != 2) { return 1; }
data/conky-1.11.6/src/apcupsd.cc:255:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(apcupsd.host, host, sizeof(apcupsd.host));
data/conky-1.11.6/src/ccurl_thread.cc:179:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(p, cb->get_result_copy().c_str(), p_max_size);
data/conky-1.11.6/src/ccurl_thread.cc:187:7:  [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 (strlen(arg) < 1) {
data/conky-1.11.6/src/colours.cc:159:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(&newname[1], name, DEFAULT_TEXT_BUFFER_SIZE - 1);
data/conky-1.11.6/src/combine.cc:77:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cd->left, arg + startvar[0], endvar[0] - startvar[0]);
data/conky-1.11.6/src/combine.cc:80:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cd->seperation, arg + endvar[0], startvar[1] - endvar[0]);
data/conky-1.11.6/src/combine.cc:83:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cd->right, arg + startvar[1], endvar[1] - startvar[1]);
data/conky-1.11.6/src/combine.cc:135: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 (i == 0 && static_cast<long>(strlen(current[i]->row)) > longest) {
data/conky-1.11.6/src/combine.cc:136: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).
          longest = static_cast<long>(strlen(current[i]->row));
data/conky-1.11.6/src/combine.cc:146: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 (i == 0 && static_cast<long>(strlen(current[i]->row)) > longest) {
data/conky-1.11.6/src/combine.cc:147: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).
      longest = static_cast<long>(strlen(current[i]->row));
data/conky-1.11.6/src/combine.cc:154:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(p, current[0]->row, p_len_remaining);
data/conky-1.11.6/src/combine.cc:155: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).
      p_len_remaining -= strlen(current[0]->row);
data/conky-1.11.6/src/combine.cc:156: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).
      i = strlen(current[0]->row);
data/conky-1.11.6/src/combine.cc:161:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
      strncat(p, " ", p_len_remaining);
data/conky-1.11.6/src/combine.cc:166: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).
      p_len_remaining -= strlen(cd->seperation);
data/conky-1.11.6/src/combine.cc:167:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(p, cd->seperation, p_len_remaining);
data/conky-1.11.6/src/combine.cc:168: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).
      p_len_remaining -= strlen(current[1]->row);
data/conky-1.11.6/src/combine.cc:169:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(p, current[1]->row, p_len_remaining);
data/conky-1.11.6/src/combine.cc:171:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
    strncat(p, "\n", p_len_remaining);
data/conky-1.11.6/src/common.cc:87:7:  [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 (strlen(s) > n) {
data/conky-1.11.6/src/common.cc:89:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ret, s, n);
data/conky-1.11.6/src/common.cc:207: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).
          pos += strlen(val);
data/conky-1.11.6/src/common.cc:343: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).
      static_cast<char *>(realloc(obj->data.s, strlen(obj->data.s) + 1));
data/conky-1.11.6/src/common.cc:537:7:  [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 (strlen(&(buf[0])) != 0) { result = 0; }
data/conky-1.11.6/src/common.cc:673: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).
    last_len = strlen(&(buf[0]));
data/conky-1.11.6/src/common.cc:813: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).
  if (sscanf(&(buf[0]), "%Lf%s", &bytes, unit) == 2 && strlen(unit) < 16) {
data/conky-1.11.6/src/conky.cc:461: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).
  size_t slen = strlen(s);
data/conky-1.11.6/src/conky.cc:712:9:  [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).
    a = strlen(p);
data/conky-1.11.6/src/conky.cc:773: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).
        k = i + strlen(p + i) + 1;
data/conky-1.11.6/src/conky.cc:837: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).
  if (!out_to_x.get(*state)) { return strlen(s); }
data/conky-1.11.6/src/conky.cc:849: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).
      for (i = 0; i < static_cast<long>(strlen(p)); i++) {
data/conky-1.11.6/src/conky.cc:871: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).
                      strlen(&influenced_by_font[i + 1]) + 1);
data/conky-1.11.6/src/conky.cc:887: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).
                    strlen(&p[specials_skipped + 1]) + 1);
data/conky-1.11.6/src/conky.cc:900:7:  [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 (strlen(final) > 1) { width += calc_text_width(final); }
data/conky-1.11.6/src/conky.cc:1150:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(tmpstring1, s, tbs - 1);
data/conky-1.11.6/src/conky.cc:1184: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).
             strlen(tmpstring2) > 0) {
data/conky-1.11.6/src/conky.cc:1185: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).
        tmpstring2[strlen(tmpstring2) - 1] = '\0';
data/conky-1.11.6/src/conky.cc:1210:66:  [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).
                          reinterpret_cast<const XftChar8 *>(s), strlen(s));
data/conky-1.11.6/src/conky.cc:1214:63:  [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).
                       reinterpret_cast<const XftChar8 *>(s), strlen(s));
data/conky-1.11.6/src/conky.cc:1222: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).
                        s, strlen(s));
data/conky-1.11.6/src/conky.cc:1225: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).
                    text_offset_y + cur_y, s, strlen(s));
data/conky-1.11.6/src/conky.cc:1524:52:  [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).
              cur_x += (w / 2) - (font_ascent() * (strlen(tmp_str) / 2));
data/conky-1.11.6/src/conky.cc:2342:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len = read(inotify_fd, inotify_buff, INOTIFY_BUF_LEN - 1);
data/conky-1.11.6/src/conky.cc:2842:9:  [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.
        usleep(25000);
data/conky-1.11.6/src/core.cc:141:22:  [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).
  ((x) != nullptr && strlen(x) > 5 && strncmp(x, "/dev/", 5) == 0 ? (x) + 5 \
data/conky-1.11.6/src/core.cc:171:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf(arg, "%7s %15s", stock, data) != 2) {
data/conky-1.11.6/src/core.cc:176:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "a", 3);
data/conky-1.11.6/src/core.cc:178:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "a2", 3);
data/conky-1.11.6/src/core.cc:180:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "a5", 3);
data/conky-1.11.6/src/core.cc:182:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "b", 3);
data/conky-1.11.6/src/core.cc:184:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "b2", 3);
data/conky-1.11.6/src/core.cc:186:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "b3", 3);
data/conky-1.11.6/src/core.cc:188:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "b4", 3);
data/conky-1.11.6/src/core.cc:190:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "b6", 3);
data/conky-1.11.6/src/core.cc:192:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "c1", 3);
data/conky-1.11.6/src/core.cc:194:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "c3", 3);
data/conky-1.11.6/src/core.cc:196:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "c6", 3);
data/conky-1.11.6/src/core.cc:198:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "c8", 3);
data/conky-1.11.6/src/core.cc:200:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "d", 3);
data/conky-1.11.6/src/core.cc:202:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "d1", 3);
data/conky-1.11.6/src/core.cc:204:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "d2", 3);
data/conky-1.11.6/src/core.cc:206:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "e", 3);
data/conky-1.11.6/src/core.cc:208:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "e1", 3);
data/conky-1.11.6/src/core.cc:210:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "e7", 3);
data/conky-1.11.6/src/core.cc:212:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "e8", 3);
data/conky-1.11.6/src/core.cc:214:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "e9", 3);
data/conky-1.11.6/src/core.cc:216:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "f6", 3);
data/conky-1.11.6/src/core.cc:218:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "g", 3);
data/conky-1.11.6/src/core.cc:220:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "h", 3);
data/conky-1.11.6/src/core.cc:222:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "j", 3);
data/conky-1.11.6/src/core.cc:224:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "k", 3);
data/conky-1.11.6/src/core.cc:226:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "g1", 3);
data/conky-1.11.6/src/core.cc:228:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "g3", 3);
data/conky-1.11.6/src/core.cc:230:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "g4", 3);
data/conky-1.11.6/src/core.cc:232:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "g5", 3);
data/conky-1.11.6/src/core.cc:234:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "g6", 3);
data/conky-1.11.6/src/core.cc:236:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "i", 3);
data/conky-1.11.6/src/core.cc:238:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "i5", 3);
data/conky-1.11.6/src/core.cc:240:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "j1", 3);
data/conky-1.11.6/src/core.cc:242:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "j3", 3);
data/conky-1.11.6/src/core.cc:244:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "j4", 3);
data/conky-1.11.6/src/core.cc:246:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "j5", 3);
data/conky-1.11.6/src/core.cc:248:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "j6", 3);
data/conky-1.11.6/src/core.cc:250:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "k2", 3);
data/conky-1.11.6/src/core.cc:252:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "k3", 3);
data/conky-1.11.6/src/core.cc:254:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "k4", 3);
data/conky-1.11.6/src/core.cc:256:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "k5", 3);
data/conky-1.11.6/src/core.cc:258:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "l1", 3);
data/conky-1.11.6/src/core.cc:260:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "l2", 3);
data/conky-1.11.6/src/core.cc:262:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "l3", 3);
data/conky-1.11.6/src/core.cc:264:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "m", 3);
data/conky-1.11.6/src/core.cc:266:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "m2", 3);
data/conky-1.11.6/src/core.cc:268:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "m3", 3);
data/conky-1.11.6/src/core.cc:270:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "m4", 3);
data/conky-1.11.6/src/core.cc:272:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "m5", 3);
data/conky-1.11.6/src/core.cc:274:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "m6", 3);
data/conky-1.11.6/src/core.cc:276:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "m7", 3);
data/conky-1.11.6/src/core.cc:278:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "m8", 3);
data/conky-1.11.6/src/core.cc:280:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "n", 3);
data/conky-1.11.6/src/core.cc:282:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "n4", 3);
data/conky-1.11.6/src/core.cc:284:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "o", 3);
data/conky-1.11.6/src/core.cc:286:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "p", 3);
data/conky-1.11.6/src/core.cc:288:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "p1", 3);
data/conky-1.11.6/src/core.cc:290:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "p2", 3);
data/conky-1.11.6/src/core.cc:292:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "p5", 3);
data/conky-1.11.6/src/core.cc:294:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "p6", 3);
data/conky-1.11.6/src/core.cc:296:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "q", 3);
data/conky-1.11.6/src/core.cc:298:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "r", 3);
data/conky-1.11.6/src/core.cc:300:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "r1", 3);
data/conky-1.11.6/src/core.cc:302:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "r2", 3);
data/conky-1.11.6/src/core.cc:304:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "r5", 3);
data/conky-1.11.6/src/core.cc:306:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "r6", 3);
data/conky-1.11.6/src/core.cc:308:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "r7", 3);
data/conky-1.11.6/src/core.cc:310:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "s", 3);
data/conky-1.11.6/src/core.cc:312:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "s1", 3);
data/conky-1.11.6/src/core.cc:314:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "s7", 3);
data/conky-1.11.6/src/core.cc:316:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "t1", 3);
data/conky-1.11.6/src/core.cc:318:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "t6", 3);
data/conky-1.11.6/src/core.cc:320:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "t7", 3);
data/conky-1.11.6/src/core.cc:322:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "t8", 3);
data/conky-1.11.6/src/core.cc:324:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "v", 3);
data/conky-1.11.6/src/core.cc:326:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "v1", 3);
data/conky-1.11.6/src/core.cc:328:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "v7", 3);
data/conky-1.11.6/src/core.cc:330:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "w", 3);
data/conky-1.11.6/src/core.cc:332:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "w1", 3);
data/conky-1.11.6/src/core.cc:334:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(data, "w4", 3);
data/conky-1.11.6/src/core.cc:336:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "x", 3);
data/conky-1.11.6/src/core.cc:338:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(data, "y", 3);
data/conky-1.11.6/src/core.cc:433:7:  [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(arg) >= 3 || atoi(&arg[0]) == 0 ||
data/conky-1.11.6/src/core.cc:444:7:  [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(arg) >= 3 || atoi(&arg[0]) == 0 ||
data/conky-1.11.6/src/core.cc:470: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).
  if (!arg || !isdigit((unsigned char)arg[0]) || strlen(arg) >= 3 ||
data/conky-1.11.6/src/core.cc:480: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).
  if (!arg || !isdigit((unsigned char)arg[0]) || strlen(arg) >= 3 ||
data/conky-1.11.6/src/core.cc:531:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscanf(arg, "%63s", bat);
data/conky-1.11.6/src/core.cc:533:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(bat, "BAT0", 5);
data/conky-1.11.6/src/core.cc:541:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscanf(arg, "%63s", bat);
data/conky-1.11.6/src/core.cc:543:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(bat, "BAT0", 5);
data/conky-1.11.6/src/core.cc:556:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscanf(arg, "%63s", bat);
data/conky-1.11.6/src/core.cc:558:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(bat, "BAT0", 5);
data/conky-1.11.6/src/core.cc:566:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscanf(arg, "%63s", bat);
data/conky-1.11.6/src/core.cc:568:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(bat, "BAT0", 5);
data/conky-1.11.6/src/core.cc:576: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).
  if ((arg != nullptr) && strlen(arg) > 0) {
data/conky-1.11.6/src/core.cc:577:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    sscanf(arg, "%63s", bat);
data/conky-1.11.6/src/core.cc:579:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(bat, "BAT0", 5);
data/conky-1.11.6/src/core.cc:2091:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, s, len);
data/conky-1.11.6/src/diskio.cc:81:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(&device_s[0], rpbuf, text_buffer_size.get(*state));
data/conky-1.11.6/src/diskio.cc:84:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(&device_s[0], s, text_buffer_size.get(*state));
data/conky-1.11.6/src/diskio.cc:92:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(&(device_name[0]), &device_s[0], text_buffer_size.get(*state));
data/conky-1.11.6/src/dragonfly.cc:493:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(p_client_buffer, "Running on AC Power", client_buffer_size);
data/conky-1.11.6/src/dragonfly.cc:495:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(p_client_buffer, "Running on battery", client_buffer_size);
data/conky-1.11.6/src/dragonfly.cc:719:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(out, "ERR", 16);
data/conky-1.11.6/src/dragonfly.cc:725:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(out, "ERR", 16);
data/conky-1.11.6/src/dragonfly.cc:732:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(out, "off-line", 16);
data/conky-1.11.6/src/dragonfly.cc:737:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(out, "charging", 16);
data/conky-1.11.6/src/dragonfly.cc:740:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(out, "on-line", 16);
data/conky-1.11.6/src/dragonfly.cc:745:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(out, "unknown", 16);
data/conky-1.11.6/src/dragonfly.cc:761:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(out, "ERR", 16);
data/conky-1.11.6/src/dragonfly.cc:767:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(out, "ERR", 16);
data/conky-1.11.6/src/dragonfly.cc:774:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(out, "unknown", 16);
data/conky-1.11.6/src/dragonfly.cc:779:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(out, "ERR", 16);
data/conky-1.11.6/src/dragonfly.cc:796:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(out, "ERR", 16);
data/conky-1.11.6/src/dragonfly.cc:802:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(out, "ERR", 16);
data/conky-1.11.6/src/dragonfly.cc:810:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(out, "unknown", 16);
data/conky-1.11.6/src/exec.cc:60:24:  [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 ((cmd_len - 1) < (strlen(command) - 1)) {
data/conky-1.11.6/src/freebsd.cc:485:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(p_client_buffer, "Running on AC Power", client_buffer_size);
data/conky-1.11.6/src/freebsd.cc:487:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(p_client_buffer, "Running on battery", client_buffer_size);
data/conky-1.11.6/src/fs.cc:114:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(next->path, s, DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/fs.cc:136:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void)strncpy(fs->type, s.f_basetype, sizeof(fs->type));
data/conky-1.11.6/src/fs.cc:152:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(fs->type, "unknown", DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/fs.cc:163:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(result, s.f_fstypename, DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/fs.cc:180:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(result, "unknown", DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/fs.cc:197: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).
      if (strlen(slash) == 1) /* trailing slash */
data/conky-1.11.6/src/fs.cc:199: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).
      else if (strlen(slash) > 1)
data/conky-1.11.6/src/fs.cc:204: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).
  } while (strlen(search_path) > 0);
data/conky-1.11.6/src/fs.cc:210:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(result, me->mnt_type, DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/fs.cc:215:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(result, "unknown", DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/ibm.cc:289: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).
  if (!isdigit(arg[0]) || strlen(arg) > 1 || atoi(&arg[0]) >= 8) {
data/conky-1.11.6/src/iconv_tools.cc:88:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buff_in, p, p_max_size);
data/conky-1.11.6/src/imlib2.cc:120:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf(args, "%1023s", cur->name) == 0) {
data/conky-1.11.6/src/imlib2.cc:128:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(cur->name, to_real_path(cur->name).c_str(), 1024);
data/conky-1.11.6/src/irc.cc:61: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).
  newmsg->text = (char *)malloc(strlen(nick) + strlen(text) + 4);  // 4 = ": \n"
data/conky-1.11.6/src/irc.cc:61: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).
  newmsg->text = (char *)malloc(strlen(nick) + strlen(text) + 4);  // 4 = ": \n"
data/conky-1.11.6/src/irc.cc:108: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(params[1]) + 4;
data/conky-1.11.6/src/irc.cc:113:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(newnick, attachment, len - 1);
data/conky-1.11.6/src/irc.cc:203:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(p, curmsg->text, p_max_size - strlen(p) - 1);
data/conky-1.11.6/src/irc.cc:203: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).
    strncat(p, curmsg->text, p_max_size - strlen(p) - 1);
data/conky-1.11.6/src/irc.cc:210:22:  [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 (p[0] != 0) { p[strlen(p) - 1] = 0; }
data/conky-1.11.6/src/journal.cc:70:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  args = sscanf(arg, "%d %6s", &j->wantedlines, tmp.get());
data/conky-1.11.6/src/journal.cc:105:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                       size_t *read, char *p, unsigned int p_max_size) {
data/conky-1.11.6/src/journal.cc:108: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).
  size_t fieldlen = strlen(field) + 1;
data/conky-1.11.6/src/journal.cc:113:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (ret < 0 || length + *read > p_max_size) return -1;
data/conky-1.11.6/src/journal.cc:115:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  memcpy(p + *read, (const char *)get + fieldlen, length - fieldlen);
data/conky-1.11.6/src/journal.cc:120:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (p_max_size < *read) {
data/conky-1.11.6/src/journal.cc:123:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      p[(*read)++] = spacer;
data/conky-1.11.6/src/journal.cc:129:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool read_log(size_t *read, size_t *length, time_t *time, uint64_t *timestamp,
data/conky-1.11.6/src/journal.cc:137:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
           strftime(p + *read, p_max_size - *read, "%b %d %H:%M:%S", &tm)) <= 0)
data/conky-1.11.6/src/journal.cc:137:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
           strftime(p + *read, p_max_size - *read, "%b %d %H:%M:%S", &tm)) <= 0)
data/conky-1.11.6/src/journal.cc:141:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (p_max_size < *read) {
data/conky-1.11.6/src/journal.cc:147:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (print_field(jh, "_HOSTNAME", ' ', read, p, p_max_size) < 0) return false;
data/conky-1.11.6/src/journal.cc:149:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (print_field(jh, "SYSLOG_IDENTIFIER", '[', read, p, p_max_size) < 0)
data/conky-1.11.6/src/journal.cc:152:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (print_field(jh, "_PID", ']', read, p, p_max_size) < 0) return false;
data/conky-1.11.6/src/journal.cc:154:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (p_max_size < *read) {
data/conky-1.11.6/src/journal.cc:160:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (p_max_size < *read) {
data/conky-1.11.6/src/journal.cc:166:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (print_field(jh, "MESSAGE", '\n', read, p, p_max_size) < 0) return false;
data/conky-1.11.6/src/journal.cc:192:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (read_log(&read, &length, &time, &timestamp, jh, p, p_max_size) &&
data/conky-1.11.6/src/journal.cc:198:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  p[read] = '\0';
data/conky-1.11.6/src/libmpdclient.cc:102:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "Could not find usable WinSock DLL.",
data/conky-1.11.6/src/libmpdclient.cc:133:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(addr.sun_path, host, sizeof(addr.sun_path) - 1);
data/conky-1.11.6/src/libmpdclient.cc:272:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(connection->errorStr, "address type is not IPv4",
data/conky-1.11.6/src/libmpdclient.cc:281:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "problems creating socket",
data/conky-1.11.6/src/libmpdclient.cc:313: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).
  ret = static_cast<char *>(malloc(strlen(arg) * 2 + 1));
data/conky-1.11.6/src/libmpdclient.cc:317: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).
  for (i = strlen(arg) + 1; i != 0; --i) {
data/conky-1.11.6/src/libmpdclient.cc:355: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).
                               strlen(MPD_WELCOME_MESSAGE)) != 0) != 0) {
data/conky-1.11.6/src/libmpdclient.cc:362: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).
  tmp = &output[strlen(MPD_WELCOME_MESSAGE)];
data/conky-1.11.6/src/libmpdclient.cc:370:24:  [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).
               &output[strlen(MPD_WELCOME_MESSAGE)]);
data/conky-1.11.6/src/libmpdclient.cc:389:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
  strncpy(connection->buffer, "", 1);
data/conky-1.11.6/src/libmpdclient.cc:392:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
  strncpy(connection->errorStr, "", MPD_ERRORSTR_MAX_LENGTH);
data/conky-1.11.6/src/libmpdclient.cc:445:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(connection->buffer, rt + 1, MPD_BUFFER_MAX_LENGTH);
data/conky-1.11.6/src/libmpdclient.cc:446:24:  [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).
  connection->buflen = strlen(connection->buffer);
data/conky-1.11.6/src/libmpdclient.cc:478: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 commandLen = strlen(command);
data/conky-1.11.6/src/libmpdclient.cc:481:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "not done processing current command",
data/conky-1.11.6/src/libmpdclient.cc:546:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "already done processing current command",
data/conky-1.11.6/src/libmpdclient.cc:562:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(connection->errorStr, "buffer overrun", MPD_ERRORSTR_MAX_LENGTH);
data/conky-1.11.6/src/libmpdclient.cc:579:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(connection->errorStr, "connection closed",
data/conky-1.11.6/src/libmpdclient.cc:589:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(connection->errorStr, "connection timeout",
data/conky-1.11.6/src/libmpdclient.cc:604:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(connection->errorStr, "expected more list_OK's",
data/conky-1.11.6/src/libmpdclient.cc:616:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(connection->errorStr, "got an unexpected list_OK",
data/conky-1.11.6/src/libmpdclient.cc:626: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).
  if (strncmp(output, "ACK", strlen("ACK")) == 0) {
data/conky-1.11.6/src/libmpdclient.cc:631:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(connection->errorStr, output, MPD_ERRORSTR_MAX_LENGTH);
data/conky-1.11.6/src/libmpdclient.cc:801:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "state not found", MPD_ERRORSTR_MAX_LENGTH);
data/conky-1.11.6/src/libmpdclient.cc:1160:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(connection->errorStr, "problem parsing song info",
data/conky-1.11.6/src/libmpdclient.cc:1178:10:  [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(re->value) != 0u)) {
data/conky-1.11.6/src/libmpdclient.cc:1287: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("playlistinfo") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1296: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("playlistid") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1305: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("plchanges") + 2 + LONGLONGLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1315: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("plchangesposid") + 2 + LONGLONGLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1325: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("listall") + 2 + strlen(sDir) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1325: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).
  int len = strlen("listall") + 2 + strlen(sDir) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1336: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("listallinfo") + 2 + strlen(sDir) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1336: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).
  int len = strlen("listallinfo") + 2 + strlen(sDir) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1347: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("lsinfo") + 2 + strlen(sDir) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1347: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).
  int len = strlen("lsinfo") + 2 + strlen(sDir) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1381:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(st, "artist", strlen("artist") + 1);
data/conky-1.11.6/src/libmpdclient.cc:1381: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).
    strncpy(st, "artist", strlen("artist") + 1);
data/conky-1.11.6/src/libmpdclient.cc:1383:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(st, "album", strlen("album") + 1);
data/conky-1.11.6/src/libmpdclient.cc:1383: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).
    strncpy(st, "album", strlen("album") + 1);
data/conky-1.11.6/src/libmpdclient.cc:1386:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "unknown table for list",
data/conky-1.11.6/src/libmpdclient.cc:1393: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("list") + 1 + strlen(sanitArg1) + 2 + strlen(st) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1393: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).
    len = strlen("list") + 1 + strlen(sanitArg1) + 2 + strlen(st) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1393: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).
    len = strlen("list") + 1 + strlen(sanitArg1) + 2 + strlen(st) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1398: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("list") + 1 + strlen(st) + 2;
data/conky-1.11.6/src/libmpdclient.cc:1398: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).
    len = strlen("list") + 1 + strlen(st) + 2;
data/conky-1.11.6/src/libmpdclient.cc:1408: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("add") + 2 + strlen(sFile) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1408: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).
  int len = strlen("add") + 2 + strlen(sFile) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1420: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("addid") + 2 + strlen(sFile) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1420: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).
  int len = strlen("addid") + 2 + strlen(sFile) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1438: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("delete") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1447: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("deleteid") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1457: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("save") + 2 + strlen(sName) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1457: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).
  int len = strlen("save") + 2 + strlen(sName) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1468: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("load") + 2 + strlen(sName) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1468: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).
  int len = strlen("load") + 2 + strlen(sName) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1479: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("rm") + 2 + strlen(sName) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1479: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).
  int len = strlen("rm") + 2 + strlen(sName) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1492: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("rename") + 2 + strlen(sFrom) + 3 + strlen(sTo) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1492: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).
  int len = strlen("rename") + 2 + strlen(sFrom) + 3 + strlen(sTo) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1492: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).
  int len = strlen("rename") + 2 + strlen(sFrom) + 3 + strlen(sTo) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1511: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("play") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1520: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("playid") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1533: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("pause") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1546: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("move") + 2 + INTLEN + 3 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1555: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("moveid") + 2 + INTLEN + 3 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1564: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("swap") + 2 + INTLEN + 3 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1573: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("swapid") + 2 + INTLEN + 3 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1582: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("seek") + 2 + INTLEN + 3 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1591: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("seekid") + 2 + INTLEN + 3 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1601: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("update") + 2 + strlen(sPath) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1601: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).
  int len = strlen("update") + 2 + strlen(sPath) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1628: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("repeat") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1637: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("random") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1646: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("setvol") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1655: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("volume") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1664: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("crossfade") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1674: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("password") + 2 + strlen(sPass) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1674: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).
  int len = strlen("password") + 2 + strlen(sPass) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1685:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "already in command list mode",
data/conky-1.11.6/src/libmpdclient.cc:1696:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "already in command list mode",
data/conky-1.11.6/src/libmpdclient.cc:1708:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "not in command list mode",
data/conky-1.11.6/src/libmpdclient.cc:1763: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("enableoutput") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1772: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("disableoutput") + 2 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:1818:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "search already in progress",
data/conky-1.11.6/src/libmpdclient.cc:1833:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "search already in progress",
data/conky-1.11.6/src/libmpdclient.cc:1844:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "search already in progress",
data/conky-1.11.6/src/libmpdclient.cc:1863:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "search already in progress",
data/conky-1.11.6/src/libmpdclient.cc:1870:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "invalid type specified",
data/conky-1.11.6/src/libmpdclient.cc:1878: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).
  len = 5 + strlen(strtype) + 1;
data/conky-1.11.6/src/libmpdclient.cc:1893:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "no search in progress",
data/conky-1.11.6/src/libmpdclient.cc:1900:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "invalid type specified",
data/conky-1.11.6/src/libmpdclient.cc:1907:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "no name specified", MPD_ERRORSTR_MAX_LENGTH);
data/conky-1.11.6/src/libmpdclient.cc:1916:9:  [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(string) + 1 + strlen(strtype) + 2 + strlen(arg) + 2;
data/conky-1.11.6/src/libmpdclient.cc:1916: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).
  len = strlen(string) + 1 + strlen(strtype) + 2 + strlen(arg) + 2;
data/conky-1.11.6/src/libmpdclient.cc:1916:52:  [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(string) + 1 + strlen(strtype) + 2 + strlen(arg) + 2;
data/conky-1.11.6/src/libmpdclient.cc:1929:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(connection->errorStr, "no search in progress",
data/conky-1.11.6/src/libmpdclient.cc:1935:9:  [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(connection->request) + 2;
data/conky-1.11.6/src/libmpdclient.cc:1951: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("listplaylistinfo") + 2 + strlen(arg) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1951: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).
  int len = strlen("listplaylistinfo") + 2 + strlen(arg) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1967: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("listplaylist") + 2 + strlen(arg) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1967: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).
  int len = strlen("listplaylist") + 2 + strlen(arg) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1978: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("playlistclear") + 2 + strlen(sPath) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1978: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).
  int len = strlen("playlistclear") + 2 + strlen(sPath) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1992:7:  [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("playlistadd") + 2 + strlen(sPlaylist) + 3 + strlen(sPath) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1992: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).
      strlen("playlistadd") + 2 + strlen(sPlaylist) + 3 + strlen(sPath) + 3;
data/conky-1.11.6/src/libmpdclient.cc:1992: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).
      strlen("playlistadd") + 2 + strlen(sPlaylist) + 3 + strlen(sPath) + 3;
data/conky-1.11.6/src/libmpdclient.cc:2005: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("playlistmove") + 2 + strlen(sPlaylist) + 3 + INTLEN + 3 +
data/conky-1.11.6/src/libmpdclient.cc:2005: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).
  int len = strlen("playlistmove") + 2 + strlen(sPlaylist) + 3 + INTLEN + 3 +
data/conky-1.11.6/src/libmpdclient.cc:2019: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("playlistdelete") + 2 + strlen(sPlaylist) + 3 + INTLEN + 3;
data/conky-1.11.6/src/libmpdclient.cc:2019: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).
  int len = strlen("playlistdelete") + 2 + strlen(sPlaylist) + 3 + INTLEN + 3;
data/conky-1.11.6/src/libtcp-portmon.cc:296: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).
  if (std::strlen(p_buffer) < 32) {  // IPv4 address
data/conky-1.11.6/src/linux.cc:160:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      sscanf(buf1, "%*s %128s", buf2);
data/conky-1.11.6/src/linux.cc:294:10:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  while (fscanf(fp, "%127s", buf) == 1) {
data/conky-1.11.6/src/linux.cc:296: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).
      buf[strlen(buf) - 1] = '\0';
data/conky-1.11.6/src/linux.cc:587:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ns2->addrs + strlen(ns2->addrs), temp_addr, 17);
data/conky-1.11.6/src/linux.cc:587: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).
        strncpy(ns2->addrs + strlen(ns2->addrs), temp_addr, 17);
data/conky-1.11.6/src/linux.cc:718:10:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  while (fscanf(file, "%32s %*02x %02x %02x %*02x %20s\n", v6addr, &netmask,
data/conky-1.11.6/src/linux.cc:1168:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(s, namelist[0]->d_name, 255);
data/conky-1.11.6/src/linux.cc:1214:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size = read(name_fd, name, strlen(dev));
data/conky-1.11.6/src/linux.cc:1214: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).
    size = read(name_fd, name, strlen(dev));
data/conky-1.11.6/src/linux.cc:1215: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).
    if (size < strlen(dev)) {
data/conky-1.11.6/src/linux.cc:1219: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).
    ret = strncmp(dev, name, strlen(dev));
data/conky-1.11.6/src/linux.cc:1258:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
      strncat(buf, "/device", 255 - strnlen(buf, 255));
data/conky-1.11.6/src/linux.cc:1305:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(devtype, path, 255);
data/conky-1.11.6/src/linux.cc:1329:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    divn = read(divfd, divbuf, 63);
data/conky-1.11.6/src/linux.cc:1355:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(*fd, buf, 63);
data/conky-1.11.6/src/linux.cc:1419:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf(arg, "%63s %d %f %f", buf2, &n, &factor, &offset) == 4)
data/conky-1.11.6/src/linux.cc:1424:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      sscanf(arg, "%63s %63s %d %f %f", buf1, buf2, &n, &factor, &offset) == 5)
data/conky-1.11.6/src/linux.cc:1428:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (!found && sscanf(arg, "%63s %63s %d", buf1, buf2, &n) == 3)
data/conky-1.11.6/src/linux.cc:1432:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (!found && sscanf(arg, "%63s %d", buf2, &n) == 2)
data/conky-1.11.6/src/linux.cc:1447:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(sf->type, buf2, 63);
data/conky-1.11.6/src/linux.cc:1520: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).
        s[strlen(s) - 1] = '\0';
data/conky-1.11.6/src/linux.cc:1553:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(frequency, strchr(s, ':') + 2, 32);
data/conky-1.11.6/src/linux.cc:1556: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).
      frequency[strlen(frequency) - 6] = '\0';
data/conky-1.11.6/src/linux.cc:1561: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).
      frequency[strlen(frequency) - 1] = '\0';
data/conky-1.11.6/src/linux.cc:1616:9:  [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).
      s[strlen(s) - 1] = '\0';
data/conky-1.11.6/src/linux.cc:1690:7:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (fscanf(fp, "%*s %99s", buf) <= 0) perror("fscanf()");
data/conky-1.11.6/src/linux.cc:1768:9:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (fscanf(fp, "%*s %99s", buf) <= 0) perror("fscanf()");
data/conky-1.11.6/src/linux.cc:1832:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(fd, buf, MAXTHERMZONELEN - 1);
data/conky-1.11.6/src/linux.cc:1957:10:  [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 (!strlen(batteries[idx]) || !strcmp(batteries[idx], bat)) { break; }
data/conky-1.11.6/src/linux.cc:1961:8:  [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 (!strlen(batteries[idx])) { snprintf(batteries[idx], 31, "%s", bat); }
data/conky-1.11.6/src/linux.cc:2011:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(charging_state, "unknown", 64);
data/conky-1.11.6/src/linux.cc:2019:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(present, "yes", 4);
data/conky-1.11.6/src/linux.cc:2021:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(present, "no", 4);
data/conky-1.11.6/src/linux.cc:2023:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        sscanf(buf, "POWER_SUPPLY_STATUS=%63s", charging_state);
data/conky-1.11.6/src/linux.cc:2050:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(last_battery_str[idx], "not present", 64);
data/conky-1.11.6/src/linux.cc:2074:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(last_battery_str[idx], "charging",
data/conky-1.11.6/src/linux.cc:2114:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(last_battery_str[idx], "empty", 64);
data/conky-1.11.6/src/linux.cc:2116:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(last_battery_str[idx], "charged", 64);
data/conky-1.11.6/src/linux.cc:2125:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(last_battery_str[idx], "not present", 64);
data/conky-1.11.6/src/linux.cc:2158:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(charging_state, "unknown", 8);
data/conky-1.11.6/src/linux.cc:2167:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        sscanf(buf, "present: %4s", present);
data/conky-1.11.6/src/linux.cc:2169:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        sscanf(buf, "charging state: %63s", charging_state);
data/conky-1.11.6/src/linux.cc:2184:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(last_battery_str[idx], "not present", 64);
data/conky-1.11.6/src/linux.cc:2204:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(last_battery_str[idx], "charging",
data/conky-1.11.6/src/linux.cc:2238:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(last_battery_str[idx], "empty", 6);
data/conky-1.11.6/src/linux.cc:2240:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(last_battery_str[idx], "charged", 8);
data/conky-1.11.6/src/linux.cc:2245:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(last_battery_str[idx], "charged", 64);
data/conky-1.11.6/src/linux.cc:2251:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(last_battery_str[idx], "not present", 64);
data/conky-1.11.6/src/linux.cc:2550:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pb_battery_info[PB_BATT_STATUS], "AC",
data/conky-1.11.6/src/linux.cc:2553:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pb_battery_info[PB_BATT_STATUS], "charged",
data/conky-1.11.6/src/linux.cc:2556:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pb_battery_info[PB_BATT_STATUS], "charging",
data/conky-1.11.6/src/linux.cc:2559:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(pb_battery_info[PB_BATT_STATUS], "discharging",
data/conky-1.11.6/src/linux.cc:2771:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  rc = read(ps, line, BUFFER_LEN - 1);
data/conky-1.11.6/src/linux.cc:2854:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  rc = read(ps, line, BUFFER_LEN - 1);
data/conky-1.11.6/src/linux.cc:2865:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  endl = read(cmdline_ps, cmdline, BUFFER_LEN - 1);
data/conky-1.11.6/src/linux.cc:2890:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmpstr, cmdline, BUFFER_LEN);
data/conky-1.11.6/src/linux.cc:2893:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmpstr, cmdline, space_pos);
data/conky-1.11.6/src/linux.cc:2899:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cmdline_procname, cmdline, BUFFER_LEN);
data/conky-1.11.6/src/linux.cc:2902:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(cmdline_procname, cmdline + slash_pos + 1, BUFFER_LEN - slash_pos);
data/conky-1.11.6/src/linux.cc:2912:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(procname, lparen + 1, rc);
data/conky-1.11.6/src/linux.cc:2914:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(basename, procname, strlen(procname) + 1);
data/conky-1.11.6/src/linux.cc:2914: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).
  strncpy(basename, procname, strlen(procname) + 1);
data/conky-1.11.6/src/linux.cc:2916:7:  [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 (strlen(procname) < strlen(cmdline_procname))
data/conky-1.11.6/src/linux.cc:2916: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).
  if (strlen(procname) < strlen(cmdline_procname))
data/conky-1.11.6/src/linux.cc:2917:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(procname, cmdline_procname, strlen(cmdline_procname) + 1);
data/conky-1.11.6/src/linux.cc:2917: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).
    strncpy(procname, cmdline_procname, strlen(cmdline_procname) + 1);
data/conky-1.11.6/src/linux.cc:2919:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  rc = sscanf(rparen + 1,
data/conky-1.11.6/src/linux.cc:2987:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  rc = read(ps, line, BUFFER_LEN - 1);
data/conky-1.11.6/src/linux.cc:2996:10:  [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).
  pos += strlen(read_bytes_str);
data/conky-1.11.6/src/linux.cc:3002:10:  [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).
  pos += strlen(write_bytes_str);
data/conky-1.11.6/src/llua.cc:260: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).
  if (strncmp(ptr, LUAPREFIX, strlen(LUAPREFIX)) != 0) {
data/conky-1.11.6/src/llua.cc:265:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(func, ptr, std::min(len, sizeof(func) - strlen(func) - 1));
data/conky-1.11.6/src/llua.cc:265:51:  [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).
  strncat(func, ptr, std::min(len, sizeof(func) - strlen(func) - 1));
data/conky-1.11.6/src/llua.cc:391:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(ret->name, name, DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/luamm.cc:304:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
bool state::equal(int index1, int index2) {
data/conky-1.11.6/src/mail.cc:253: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).
            malloc(sizeof(char) * strlen(strrchr(dirent->d_name, ','))));
data/conky-1.11.6/src/mail.cc:413:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mbox, current_mail_spool.get(*state).c_str(), sizeof(mbox));
data/conky-1.11.6/src/mail.cc:417:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(mbox, arg, sizeof(mbox));
data/conky-1.11.6/src/mail.cc:478:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf(arg, "%128s %128s %128s", host, user, pass) != 3) {
data/conky-1.11.6/src/mail.cc:496:9:  [1] (buffer) scanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (scanf("%128s", pass) != 1) { pass[0] = 0; }
data/conky-1.11.6/src/mail.cc:693: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).
  if ((reply == nullptr) || strlen(reply) < 2) {
data/conky-1.11.6/src/mail.cc:808: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).
        if (strlen(recvbuf) > 2) {
data/conky-1.11.6/src/mail.cc:811: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).
          while ((buf != nullptr) && strlen(buf) > 1 &&
data/conky-1.11.6/src/mail.cc:831: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).
          while ((buf != nullptr) && strlen(buf) > 1 &&
data/conky-1.11.6/src/mboxscan.cc:118: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).
    if (args[strlen(args) - 1] == '"') {
data/conky-1.11.6/src/mboxscan.cc:120:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(mbox_mail_spool, args, DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/mboxscan.cc:124:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(mbox_mail_spool, start, DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/mboxscan.cc:134:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(mbox_mail_spool, start, DEFAULT_TEXT_BUFFER_SIZE);
data/conky-1.11.6/src/mboxscan.cc:137:9:  [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 (strlen(mbox_mail_spool) < 1) {
data/conky-1.11.6/src/mboxscan.cc:349:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(output, buf, max_len - strlen(output));
data/conky-1.11.6/src/mboxscan.cc:349: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).
    strncat(output, buf, max_len - strlen(output));
data/conky-1.11.6/src/mixer.cc:132:14:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (arg && sscanf(arg, "%63s %n", buf1, &n) >= 1) {
data/conky-1.11.6/src/net_stat.cc:156:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  while (sscanf(arg + i, " %20s", nextarg) == 1) {
data/conky-1.11.6/src/net_stat.cc:173:10:  [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).
    i += strlen(nextarg);  // skip this arg
data/conky-1.11.6/src/net_stat.cc:275: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).
  if (0 != ns->addrs[0] && strlen(ns->addrs) > 2) {
data/conky-1.11.6/src/net_stat.cc:276: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).
    ns->addrs[strlen(ns->addrs) - 2] = 0; /* remove ", " from end of string */
data/conky-1.11.6/src/net_stat.cc:277:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, ns->addrs, p_max_size);
data/conky-1.11.6/src/net_stat.cc:279:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(p, "0.0.0.0", p_max_size);
data/conky-1.11.6/src/net_stat.cc:297:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(p, tempaddress, p_max_size);
data/conky-1.11.6/src/net_stat.cc:302:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(p, netmaskstr, p_max_size);
data/conky-1.11.6/src/net_stat.cc:308:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(p, scopestr, p_max_size);
data/conky-1.11.6/src/net_stat.cc:312:21:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
    if (current_v6) strncat(p, ", ", p_max_size);
data/conky-1.11.6/src/net_stat.cc:525:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(ifr.ifr_name, dev, IFNAMSIZ);
data/conky-1.11.6/src/net_stat.cc:599: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).
      line[strlen(line) - 1] = '\0';  // remove trailing newline
data/conky-1.11.6/src/nvidia.cc:429: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).
      ilen = strlen(strbuf);
data/conky-1.11.6/src/nvidia.cc:430: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).
      ilen = ilen - strlen(p);
data/conky-1.11.6/src/proc.cc:171:40:  [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).
      for (i = 0; i < total_read; i += strlen(buf + i) + 1) {
data/conky-1.11.6/src/proc.cc:172: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 (strncmp(buf + i, var, strlen(var)) == 0 &&
data/conky-1.11.6/src/proc.cc:173: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).
            *(buf + i + strlen(var)) == '=') {
data/conky-1.11.6/src/proc.cc:174:51:  [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).
          snprintf(p, p_max_size, "%s", buf + i + strlen(var) + 1);
data/conky-1.11.6/src/proc.cc:203: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).
      bytes_read += strlen(buf2) + 1;
data/conky-1.11.6/src/proc.cc:206: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).
      i = strlen(buf) + 1;
data/conky-1.11.6/src/proc.cc:271: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).
          totallength += length + strlen("; ");
data/conky-1.11.6/src/proc.cc:278: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).
    p[totallength - strlen("; ")] = 0;
data/conky-1.11.6/src/proc.cc:300: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).
      begin += strlen(PARENT_ENTRY);
data/conky-1.11.6/src/proc.cc:353: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).
      begin += strlen(STATE_ENTRY) +
data/conky-1.11.6/src/proc.cc:432:7:  [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 (strlen(arg) > 0) {
data/conky-1.11.6/src/proc.cc:437: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).
                strlen(obj->data.s + i + 1) + 1);
data/conky-1.11.6/src/proc.cc:496: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).
      begin += strlen(THREADS_ENTRY);
data/conky-1.11.6/src/proc.cc:524:24:  [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).
        totallength += strlen(entry->d_name) + 1;
data/conky-1.11.6/src/proc.cc:652: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).
          begin += strlen("Gid:\t");
data/conky-1.11.6/src/proc.cc:655: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).
          begin += strlen("Uid:\t");
data/conky-1.11.6/src/proc.cc:779: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).
      begin += strlen(entry);
data/conky-1.11.6/src/read_tcpip.cc:62: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).
  sscanf(arg + strlen(rtd->host), "%u", &(rtd->port));
data/conky-1.11.6/src/read_tcpip.cc:65:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(rtd->host, "localhost", 10);
data/conky-1.11.6/src/read_tcpip.cc:85: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).
  hostname = static_cast<char *>(malloc(strlen(arg) + 1));
data/conky-1.11.6/src/rss.cc:86: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).
      if (str && strlen(str) > 0) {
data/conky-1.11.6/src/rss.cc:88: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).
        if (str[strlen(str) - 1] == '\n') { str[strlen(str) - 1] = 0; }
data/conky-1.11.6/src/rss.cc:88: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).
        if (str[strlen(str) - 1] == '\n') { str[strlen(str) - 1] = 0; }
data/conky-1.11.6/src/rss.cc:95: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).
        if (str && strlen(str) > 0) {
data/conky-1.11.6/src/rss.cc:96: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).
          if (str[strlen(str) - 1] == '\n') { str[strlen(str) - 1] = 0; }
data/conky-1.11.6/src/rss.cc:96:51:  [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 (str[strlen(str) - 1] == '\n') { str[strlen(str) - 1] = 0; }
data/conky-1.11.6/src/rss.cc:104: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).
        if (str && strlen(str) > 0) {
data/conky-1.11.6/src/rss.cc:105: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).
          if (str[strlen(str) - 1] == '\n') { str[strlen(str) - 1] = 0; }
data/conky-1.11.6/src/rss.cc:105:51:  [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 (str[strlen(str) - 1] == '\n') { str[strlen(str) - 1] = 0; }
data/conky-1.11.6/src/rss.cc:130:29:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
            if (itmp > 0) { strncat(p, "\n", p_max_size); }
data/conky-1.11.6/src/rss.cc:133: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).
            if (strlen(str) > 0 && str[strlen(str) - 1] == '\n') {
data/conky-1.11.6/src/rss.cc:133:40:  [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 (strlen(str) > 0 && str[strlen(str) - 1] == '\n') {
data/conky-1.11.6/src/rss.cc:134: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).
              str[strlen(str) - 1] = 0;
data/conky-1.11.6/src/rss.cc:136:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(p, tmpspaces, p_max_size);
data/conky-1.11.6/src/rss.cc:137:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(p, str, p_max_size);
data/conky-1.11.6/src/rss.cc:155:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  argc = sscanf(arg, "%127s %f %63s %d %u", rd->uri, &rd->interval, rd->action,
data/conky-1.11.6/src/scroll.cc:116: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).
      static_cast<unsigned int>(sd->start) > strlen(buf.data())) {
data/conky-1.11.6/src/scroll.cc:125: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).
    if (sd->start <= 0) { sd->start = static_cast<int>(strlen(&(buf[0]))); }
data/conky-1.11.6/src/scroll.cc:146:27:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if ((arg != nullptr) && sscanf(arg, "%5s %n", dirarg, &n1) == 1) {
data/conky-1.11.6/src/scroll.cc:183: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).
  sd->text = static_cast<char *>(malloc(strlen(arg + n1) + sd->show + 1));
data/conky-1.11.6/src/scroll.cc:185:7:  [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 (strlen(arg) > sd->show && sd->direction != SCROLL_WAIT) {
data/conky-1.11.6/src/scroll.cc:194:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(sd->text, arg + n1, strlen(arg + n1));
data/conky-1.11.6/src/scroll.cc:194: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).
  strncat(sd->text, arg + n1, strlen(arg + n1));
data/conky-1.11.6/src/scroll.cc:195: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).
  sd->start = sd->direction == SCROLL_WAIT ? strlen(sd->text) : 0;
data/conky-1.11.6/src/scroll.cc:227:7:  [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 (strlen(&(buf[0])) - colorchanges <= sd->show) {
data/conky-1.11.6/src/scroll.cc:234: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).
  if (static_cast<unsigned int>(sd->start) >= strlen(&(buf[0]))) {
data/conky-1.11.6/src/scroll.cc:274: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).
  int pwithcolors_len = strlen(p) + 4 + colorchanges - visibcolorchanges;
data/conky-1.11.6/src/scroll.cc:279:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(pwithcolors, p, pwithcolors_len);
data/conky-1.11.6/src/scroll.cc:280: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).
  unsigned int strend = strlen(pwithcolors);
data/conky-1.11.6/src/scroll.cc:287:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(p, pwithcolors, p_max_size);
data/conky-1.11.6/src/scroll.cc:327: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).
    new_special(p + strlen(p), FG)->arg = sd->resetcolor;
data/conky-1.11.6/src/smapi.cc:62:9:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (fscanf(fp, "%255s\n", str) < 0) perror("fscanf()");
data/conky-1.11.6/src/smapi.cc:106:16:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (!args || sscanf(args, "%127s", str) <= 0) return nullptr;
data/conky-1.11.6/src/solaris.cc:405:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned int read, written;
data/conky-1.11.6/src/solaris.cc:415:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    update_diskio_values(cur, read, written);
data/conky-1.11.6/src/specials.cc:232:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(quoted_cmd, args + 1, _size);
data/conky-1.11.6/src/specials.cc:236: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).
      if (_size + 2 < strlen(args)) { strncpy(argstr, args + _size + 2, 1023); }
data/conky-1.11.6/src/specials.cc:236:39:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      if (_size + 2 < strlen(args)) { strncpy(argstr, args + _size + 2, 1023); }
data/conky-1.11.6/src/specials.cc:239:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(argstr, args, 1023);
data/conky-1.11.6/src/specials.cc:245: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).
        strncmp(argstr, TEMPGRAD, strlen(TEMPGRAD)) == 0) {
data/conky-1.11.6/src/specials.cc:251: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).
        strncmp(argstr, LOGGRAPH, strlen(LOGGRAPH)) == 0) {
data/conky-1.11.6/src/specials.cc:277:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(argstr, "%1023s %d,%d %x %x %lf", buf, &g->height, &g->width,
data/conky-1.11.6/src/specials.cc:282:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(argstr, "%1023s %d,%d %x %x", buf, &g->height, &g->width,
data/conky-1.11.6/src/specials.cc:302:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(argstr, "%1023s %x %x %lf", buf, &g->first_colour,
data/conky-1.11.6/src/specials.cc:307:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(argstr, "%1023s %x %x", buf, &g->first_colour,
data/conky-1.11.6/src/specials.cc:326:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf(argstr, "%1023s %d,%d %lf", buf, &g->height, &g->width,
data/conky-1.11.6/src/specials.cc:330:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      sscanf(argstr, "%1023s %d,%d", buf, &g->height, &g->width);
data/conky-1.11.6/src/tailhead.cc:142:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              if (read(fd, p + i, 1) <= 0) { break; }
data/conky-1.11.6/src/tailhead.cc:147:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            i = read(fd, p, p_max_size - 1);
data/conky-1.11.6/src/tailhead.cc:165: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).
              endofstring = strlen(p);
data/conky-1.11.6/src/tcp-portmon.cc:44:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  argc = sscanf(arg, "%d %d %31s %d", &port_begin, &port_end, itembuf,
data/conky-1.11.6/src/template.cc:55: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).
  dup_len = strlen(src) + 1;
data/conky-1.11.6/src/template.cc:84:22:  [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).
          dup_len += strlen(templates[tmpl_num - 1]);
data/conky-1.11.6/src/template.cc:88:22:  [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).
          dup_idx += strlen(templates[tmpl_num - 1]);
data/conky-1.11.6/src/template.cc:168: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).
  outlen = strlen(inbuf) + 1;
data/conky-1.11.6/src/template.cc:178:51:  [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 ((static_cast<int>(strncmp(p, "$template", strlen("$template")) != 0) !=
data/conky-1.11.6/src/template.cc:180: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).
        (strncmp(p, "${template", strlen("${template")) != 0)) {
data/conky-1.11.6/src/template.cc:217: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).
      p += strlen("$template");
data/conky-1.11.6/src/template.cc:225: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).
      int len = strlen(tmpl_out);
data/conky-1.11.6/src/template.cc:229:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(outbuf, tmpl_out, len);
data/conky-1.11.6/src/template.cc:231: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).
      o = outbuf + strlen(outbuf);
data/conky-1.11.6/src/template.cc:238: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).
      static_cast<char *>(realloc(outbuf, (strlen(outbuf) + 1) * sizeof(char)));
data/conky-1.11.6/src/timeinfo.cc:63:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    int nArgs = sscanf(arg, "%255s %255[^\n]", buf1, buf2);
data/conky-1.11.6/src/timeinfo.cc:237: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).
                    while (*(temp + strlen(temp) - 1) == '0' ||
data/conky-1.11.6/src/timeinfo.cc:238: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).
                           *(temp + strlen(temp) - 1) == '.') {
data/conky-1.11.6/src/timeinfo.cc:239: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).
                      *(temp + strlen(temp) - 1) = 0;
data/conky-1.11.6/src/timeinfo.cc:290: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).
            if (output_length + strlen(temp) < p_max_size - 1) {
data/conky-1.11.6/src/timeinfo.cc:291:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(p + output_length, temp,
data/conky-1.11.6/src/timeinfo.cc:292:52:  [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).
                      p_max_size - output_length + strlen(temp));
data/conky-1.11.6/src/timeinfo.cc:293: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).
              output_length += strlen(temp);
data/conky-1.11.6/src/top.cc:599:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf(arg, "%63s %i", buf, &n) == 2) {
data/conky-1.11.6/src/users.cc:43: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).
      if (strlen(ptr) + strnlen(usr->ut_name, UT_NAMESIZE - 1) + 1 <= BUFLEN) {
data/conky-1.11.6/src/users.cc:65: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).
      if (strlen(ptr) + strnlen(usr->ut_line, UT_LINESIZE) + 1 <= BUFLEN) {
data/conky-1.11.6/src/users.cc:83: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).
      if (strlen(ptr) + strlen(buf) + 1 <= BUFLEN) {
data/conky-1.11.6/src/users.cc:83: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).
      if (strlen(ptr) + strlen(buf) + 1 <= BUFLEN) {
data/conky-1.11.6/src/users.cc:84:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(ptr, buf, BUFLEN - strlen(ptr) - 1);
data/conky-1.11.6/src/users.cc:84: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).
        strncat(ptr, buf, BUFLEN - strlen(ptr) - 1);
data/conky-1.11.6/src/users.cc:96:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(line.ut_line, tty, UT_LINESIZE);
data/conky-1.11.6/src/users.cc:105:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(ptr, buf, BUFLEN - 1);
data/conky-1.11.6/src/users.cc:133:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(current_info->users.ctime, temp, text_buffer_size.get(*state));
data/conky-1.11.6/src/users.cc:137:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(current_info->users.ctime, "broken", text_buffer_size.get(*state));
data/conky-1.11.6/src/users.cc:150:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(current_info->users.names, temp, text_buffer_size.get(*state));
data/conky-1.11.6/src/users.cc:154:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(current_info->users.names, "broken", text_buffer_size.get(*state));
data/conky-1.11.6/src/users.cc:168:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(current_info->users.terms, temp, text_buffer_size.get(*state));
data/conky-1.11.6/src/users.cc:172:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(current_info->users.terms, "broken", text_buffer_size.get(*state));
data/conky-1.11.6/src/users.cc:178:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(current_info->users.times, temp, text_buffer_size.get(*state));
data/conky-1.11.6/src/users.cc:182:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(current_info->users.times, "broken", text_buffer_size.get(*state));
data/conky-1.11.6/src/weather.cc:41:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(p, "TODO...", p_max_size);
data/conky-1.11.6/src/x11.cc:1164:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, NOT_IN_X, p_max_size);
data/conky-1.11.6/src/x11.cc:1175:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, NOT_IN_X, p_max_size);
data/conky-1.11.6/src/x11.cc:1185:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, NOT_IN_X, p_max_size);
data/conky-1.11.6/src/x11.cc:1196:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, NOT_IN_X, p_max_size);
data/conky-1.11.6/src/x11.cc:1207:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, NOT_IN_X, p_max_size);
data/conky-1.11.6/src/x11.cc:1209:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, info.x11.desktop.name.c_str(), p_max_size);
data/conky-1.11.6/src/xmms2.cc:106:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(ptr->xmms2.status, "Disconnected", text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:144:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ptr->xmms2.artist, charval, text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:148:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ptr->xmms2.title, charval, text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:152:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ptr->xmms2.album, charval, text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:156:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ptr->xmms2.genre, charval, text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:160:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ptr->xmms2.comment, charval, text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:164:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ptr->xmms2.url, charval, text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:168:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ptr->xmms2.date, charval, text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:233:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(ptr->xmms2.status, "Playing", text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:236:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(ptr->xmms2.status, "Paused", text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:239:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(ptr->xmms2.status, "Stopped", text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:243:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(ptr->xmms2.status, "Unknown", text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:264:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ptr->xmms2.playlist, c, text_buffer_size.get(*state) - 1);
data/conky-1.11.6/src/xmms2.cc:383: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 artist_len = strlen(info.xmms2.artist);
data/conky-1.11.6/src/xmms2.cc:384: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 title_len = strlen(info.xmms2.title);
data/conky-1.11.6/tests/catch2/catch.hpp:10641:28:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static_cast<void>(std::getchar());
data/conky-1.11.6/tests/catch2/catch.hpp:10647:28:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    static_cast<void>(std::getchar());
data/conky-1.11.6/tests/catch2/catch.hpp:10926:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
         std::equal(prefix.begin(), prefix.end(), s.begin());
data/conky-1.11.6/tests/catch2/catch.hpp:10933:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
         std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
data/conky-1.11.6/tests/catch2/catch.hpp:11004: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).
                static_cast<StringRef::size_type>(std::strlen(rawChars))) {}

ANALYSIS SUMMARY:

Hits = 1065
Lines analyzed = 74961 in approximately 3.15 seconds (23790 lines/second)
Physical Source Lines of Code (SLOC) = 58516
Hits@level = [0] 588 [1] 568 [2] 372 [3]  31 [4]  89 [5]   5
Hits@level+ = [0+] 1653 [1+] 1065 [2+] 497 [3+] 125 [4+]  94 [5+]   5
Hits/KSLOC@level+ = [0+] 28.2487 [1+] 18.2002 [2+] 8.4934 [3+] 2.13617 [4+] 1.6064 [5+] 0.0854467
Dot directories skipped = 2 (--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.