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/i3status-2.13/include/queue.h
Examining data/i3status-2.13/include/i3status.h
Examining data/i3status-2.13/i3status.c
Examining data/i3status-2.13/src/print_cpu_usage.c
Examining data/i3status-2.13/src/print_ipv6_addr.c
Examining data/i3status-2.13/src/print_volume.c
Examining data/i3status-2.13/src/print_mem.c
Examining data/i3status-2.13/src/first_network_device.c
Examining data/i3status-2.13/src/output.c
Examining data/i3status-2.13/src/print_eth_info.c
Examining data/i3status-2.13/src/general.c
Examining data/i3status-2.13/src/print_ip_addr.c
Examining data/i3status-2.13/src/print_battery_info.c
Examining data/i3status-2.13/src/print_path_exists.c
Examining data/i3status-2.13/src/print_file_contents.c
Examining data/i3status-2.13/src/print_wireless_info.c
Examining data/i3status-2.13/src/print_run_watch.c
Examining data/i3status-2.13/src/process_runs.c
Examining data/i3status-2.13/src/print_cpu_temperature.c
Examining data/i3status-2.13/src/print_ddate.c
Examining data/i3status-2.13/src/print_disk_info.c
Examining data/i3status-2.13/src/print_time.c
Examining data/i3status-2.13/src/print_load.c
Examining data/i3status-2.13/src/auto_detect_format.c
Examining data/i3status-2.13/src/pulse.c

FINAL RESULTS:

data/i3status-2.13/i3status.c:231: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(result, head);
data/i3status-2.13/i3status.c:233:13:  [4] (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).
            strcat(result, tail);
data/i3status-2.13/include/i3status.h:158:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                outwalk += sprintf(outwalk, "%s", color(colorstr));                         \
data/i3status-2.13/include/i3status.h:166:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", endcolor());                    \
data/i3status-2.13/include/i3status.h:191:54:  [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.
void die(const char *fmt, ...) __attribute__((format(printf, 1, 2), noreturn));
data/i3status-2.13/src/general.c:57:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void)vfprintf(stderr, fmt, ap);
data/i3status-2.13/src/output.c:92:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        *buffer += sprintf(*buffer, "%s", text);
data/i3status-2.13/src/output.c:98:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                *buffer += sprintf(*buffer, "%s", "&");
data/i3status-2.13/src/output.c:101:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                *buffer += sprintf(*buffer, "%s", "<");
data/i3status-2.13/src/output.c:104:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                *buffer += sprintf(*buffer, "%s", ">");
data/i3status-2.13/src/output.c:107:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                *buffer += sprintf(*buffer, "%s", "'");
data/i3status-2.13/src/output.c:110:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                *buffer += sprintf(*buffer, "%s", """);
data/i3status-2.13/src/print_battery_info.c:142:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(batpath, path, number);
data/i3status-2.13/src/print_battery_info.c:482: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(globplaceholder + 1, placeholder + 2);
data/i3status-2.13/src/print_battery_info.c:643:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", statusstr);
data/i3status-2.13/src/print_battery_info.c:648:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                outwalk += sprintf(outwalk, "%.00f%s", batt_info.percentage_remaining, pct_mark);
data/i3status-2.13/src/print_battery_info.c:650:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                outwalk += sprintf(outwalk, "%.02f%s", batt_info.percentage_remaining, pct_mark);
data/i3status-2.13/src/print_cpu_temperature.c:256:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", temperature.formatted_value);
data/i3status-2.13/src/print_cpu_usage.c:43:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int system;
data/i3status-2.13/src/print_cpu_usage.c:89:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        int cpu_idx, user, nice, system, idle;
data/i3status-2.13/src/print_cpu_usage.c:90:87:  [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 (!buf_itr || sscanf(buf_itr, "cpu%d %d %d %d %d", &cpu_idx, &user, &nice, &system, &idle) != 5) {
data/i3status-2.13/src/print_cpu_usage.c:97:37:  [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.
        curr_cpus[cpu_idx].system = system;
data/i3status-2.13/src/print_cpu_usage.c:104:47:  [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.
        curr_all.system += curr_cpus[cpu_idx].system;
data/i3status-2.13/src/print_cpu_usage.c:164:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%02d%s", diff_usage, pct_mark);
data/i3status-2.13/src/print_cpu_usage.c:179:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                outwalk += sprintf(outwalk, "%02d%s", cpu_diff_usage, pct_mark);
data/i3status-2.13/src/print_ddate.c:76:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                outwalk += sprintf(outwalk, "%s", day_long[dt->week_day]);
data/i3status-2.13/src/print_ddate.c:79:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                outwalk += sprintf(outwalk, "%s", day_short[dt->week_day]);
data/i3status-2.13/src/print_ddate.c:83:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                outwalk += sprintf(outwalk, "%s", season_long[dt->season]);
data/i3status-2.13/src/print_ddate.c:86:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                outwalk += sprintf(outwalk, "%s", season_short[dt->season]);
data/i3status-2.13/src/print_ddate.c:121:32:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    outwalk += sprintf(outwalk, "%s", holidays[dt->season]);
data/i3status-2.13/src/print_ddate.c:124:32:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    outwalk += sprintf(outwalk, "%s", holidays[dt->season + 5]);
data/i3status-2.13/src/print_ddate.c:215: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(form, format);
data/i3status-2.13/src/print_disk_info.c:43:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    return sprintf(outwalk, "%.1f %sB", size, symbols[exponent]);
data/i3status-2.13/src/print_disk_info.c:201:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%.01f%s", 100.0 * (double)buf.f_bfree / (double)buf.f_blocks, pct_mark);
data/i3status-2.13/src/print_disk_info.c:205:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%.01f%s", 100.0 * (double)(buf.f_blocks - buf.f_bavail) / (double)buf.f_blocks, pct_mark);
data/i3status-2.13/src/print_disk_info.c:209:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%.01f%s", 100.0 * (double)(buf.f_blocks - buf.f_bfree) / (double)buf.f_blocks, pct_mark);
data/i3status-2.13/src/print_disk_info.c:213:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%.01f%s", 100.0 * (double)buf.f_bavail / (double)buf.f_blocks, pct_mark);
data/i3status-2.13/src/print_eth_info.c:44:11:  [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).
    (void)strcpy(ifr.ifr_name, interface);
data/i3status-2.13/src/print_eth_info.c:81:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    return sprintf(outwalk, "%s", ethspeed);
data/i3status-2.13/src/print_eth_info.c:112:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    return sprintf(outwalk, "%s", ethspeed);
data/i3status-2.13/src/print_eth_info.c:186:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", ip_address);
data/i3status-2.13/src/print_eth_info.c:194:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", interface);
data/i3status-2.13/src/print_file_contents.c:49:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", title);
data/i3status-2.13/src/print_file_contents.c:62:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", strerror(errno));
data/i3status-2.13/src/print_ipv6_addr.c:127:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        outwalk += sprintf(outwalk, "%s", format_down);
data/i3status-2.13/src/print_ipv6_addr.c:139:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", addr_string);
data/i3status-2.13/src/print_mem.c:29:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    return sprintf(outwalk, "%.1f %sB", size, iec_symbols[exponent]);
data/i3status-2.13/src/print_mem.c:185:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%.01f%s", 100.0 * ram_free / ram_total, pct_mark);
data/i3status-2.13/src/print_mem.c:189:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%.01f%s", 100.0 * ram_available / ram_total, pct_mark);
data/i3status-2.13/src/print_mem.c:193:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%.01f%s", 100.0 * ram_used / ram_total, pct_mark);
data/i3status-2.13/src/print_mem.c:197:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%.01f%s", 100.0 * ram_shared / ram_total, pct_mark);
data/i3status-2.13/src/print_path_exists.c:31:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", title);
data/i3status-2.13/src/print_path_exists.c:35:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", (exists ? "yes" : "no"));
data/i3status-2.13/src/print_run_watch.c:29:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", title);
data/i3status-2.13/src/print_run_watch.c:33:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", (running ? "yes" : "no"));
data/i3status-2.13/src/print_volume.c:59:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", pct_mark);
data/i3status-2.13/src/print_volume.c:63:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%d%s", ivolume, pct_mark);
data/i3status-2.13/src/print_volume.c:67:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", devicename);
data/i3status-2.13/src/print_wireless_info.c:508:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", format_down);
data/i3status-2.13/src/print_wireless_info.c:541:32:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                    outwalk += sprintf(outwalk, format_quality, PERCENT_VALUE(info.quality, info.quality_max), pct_mark);
data/i3status-2.13/src/print_wireless_info.c:552:32:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    outwalk += sprintf(outwalk, "%3d%s", PERCENT_VALUE(info.signal_level, info.signal_level_max), pct_mark);
data/i3status-2.13/src/print_wireless_info.c:563:32:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    outwalk += sprintf(outwalk, "%3d%s", PERCENT_VALUE(info.noise_level, info.noise_level_max), pct_mark);
data/i3status-2.13/src/print_wireless_info.c:588:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", ip_address);
data/i3status-2.13/src/print_wireless_info.c:597:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            outwalk += sprintf(outwalk, "%s", br_buffer);
data/i3status-2.13/src/pulse.c:99: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(entry->name, name);
data/i3status-2.13/i3status.c:245:28:  [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 ((xdg_config_home = getenv("XDG_CONFIG_HOME")) == NULL)
data/i3status-2.13/i3status.c:258:28:  [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 ((xdg_config_dirs = getenv("XDG_CONFIG_DIRS")) == NULL)
data/i3status-2.13/i3status.c:556:19:  [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.
    while ((opt = getopt_long(argc, argv, "c:hv", long_options, &option_index)) != -1) {
data/i3status-2.13/src/first_network_device.c:64:19:  [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 ((target = realpath(path, NULL))) {
data/i3status-2.13/src/print_time.c:20:26:  [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.
        local_timezone = getenv("TZ");
data/i3status-2.13/i3status.c:677: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[4096];
data/i3status-2.13/i3status.c:730:92:  [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).
                print_battery_info(json_gen, buffer, (strcasecmp(title, "all") == 0 ? -1 : atoi(title)), cfg_getstr(sec, "path"), cfg_getstr(sec, "format"), cfg_getstr(sec, "format_down"), cfg_getstr(sec, "status_chr"), cfg_getstr(sec, "status_bat"), cfg_getstr(sec, "status_unk"), cfg_getstr(sec, "status_full"), cfg_getint(sec, "low_threshold"), cfg_getstr(sec, "threshold_type"), cfg_getbool(sec, "last_full_capacity"), cfg_getbool(sec, "integer_battery_capacity"), cfg_getbool(sec, "hide_seconds"));
data/i3status-2.13/i3status.c:794:62:  [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).
                print_cpu_temperature_info(json_gen, buffer, atoi(title), cfg_getstr(sec, "path"), cfg_getstr(sec, "format"), cfg_getstr(sec, "format_above_threshold"), cfg_getint(sec, "max_threshold"));
data/i3status-2.13/include/i3status.h:232:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
bool description_pulseaudio(uint32_t sink_idx, const char *sink_name, char buffer[MAX_SINK_DESCRIPTION_LEN]);
data/i3status-2.13/include/i3status.h:232:71:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
bool description_pulseaudio(uint32_t sink_idx, const char *sink_name, char buffer[MAX_SINK_DESCRIPTION_LEN]);
data/i3status-2.13/src/auto_detect_format.c:26: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 path[255];
data/i3status-2.13/src/auto_detect_format.c:30: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[4096];
data/i3status-2.13/src/auto_detect_format.c:111: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).
        pid_t pid = (pid_t)atoi(entry->d_name);
data/i3status-2.13/src/first_network_device.c:30: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[1024];
data/i3status-2.13/src/first_network_device.c:33: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 ((fp = fopen(buf, "r")) == NULL)
data/i3status-2.13/src/first_network_device.c:59: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 path[1024];
data/i3status-2.13/src/first_network_device.c:135: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 devtype[32];
data/i3status-2.13/src/general.c:21:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(filename, O_RDONLY)) == -1)
data/i3status-2.13/src/output.c:20:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char colorbuf[32];
data/i3status-2.13/src/output.c:116:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    *buffer += sprintf(*buffer, "&#x%x;", *text);
data/i3status-2.13/src/print_battery_info.c:69:18:  [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).
        acpifd = open(ACPIDEV, O_RDWR);
data/i3status-2.13/src/print_battery_info.c:71:22:  [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).
            acpifd = open(ACPIDEV, O_RDONLY);
data/i3status-2.13/src/print_battery_info.c:137: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[1024];
data/i3status-2.13/src/print_battery_info.c:141: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 batpath[512];
data/i3status-2.13/src/print_battery_info.c:161:36:  [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).
            batt_info->remaining = atoi(walk + 1);
data/i3status-2.13/src/print_battery_info.c:165:36:  [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).
            batt_info->remaining = atoi(walk + 1);
data/i3status-2.13/src/print_battery_info.c:168:47:  [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).
            batt_info->percentage_remaining = atoi(walk + 1);
data/i3status-2.13/src/print_battery_info.c:170: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).
            batt_info->present_rate = abs(atoi(walk + 1));
data/i3status-2.13/src/print_battery_info.c:172: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).
            voltage = abs(atoi(walk + 1));
data/i3status-2.13/src/print_battery_info.c:178: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).
            batt_info->present_rate = abs(atoi(walk + 1));
data/i3status-2.13/src/print_battery_info.c:189:38:  [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).
            batt_info->full_design = atoi(walk + 1);
data/i3status-2.13/src/print_battery_info.c:192:36:  [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).
            batt_info->full_last = atoi(walk + 1);
data/i3status-2.13/src/print_battery_info.c:278: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).
    apm_fd = open("/dev/apm", O_RDONLY);
data/i3status-2.13/src/print_battery_info.c:320: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 sensor_desc[16];
data/i3status-2.13/src/print_battery_info.c:331: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("/dev/sysmon", O_RDONLY);
data/i3status-2.13/src/print_battery_info.c:664:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    outwalk += sprintf(outwalk, "%02d:%02d",
data/i3status-2.13/src/print_battery_info.c:667:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    outwalk += sprintf(outwalk, "%02d:%02d:%02d",
data/i3status-2.13/src/print_battery_info.c:680:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    outwalk += sprintf(outwalk, "%02d:%02d",
data/i3status-2.13/src/print_battery_info.c:683:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    outwalk += sprintf(outwalk, "%02d:%02d:%02d",
data/i3status-2.13/src/print_battery_info.c:691:28:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                outwalk += sprintf(outwalk, "%1.2fW", batt_info.present_rate / 1e6);
data/i3status-2.13/src/print_cpu_temperature.c:50: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 formatted_value[20];
data/i3status-2.13/src/print_cpu_temperature.c:57:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[16];
data/i3status-2.13/src/print_cpu_temperature.c:69:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(temperature->formatted_value, "%ld", (temp / 1000));
data/i3status-2.13/src/print_cpu_temperature.c:83:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temperature->formatted_value, "%.2f", MUKTOC(th_sensor.value));
data/i3status-2.13/src/print_cpu_temperature.c:93:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temperature->formatted_value, "%d.%d", TZ_KELVTOC(sysctl_rslt));
data/i3status-2.13/src/print_cpu_temperature.c:126:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(temperature->formatted_value, "%.2f", MUKTOC(sensor.value));
data/i3status-2.13/src/print_cpu_temperature.c:139: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("/dev/sysmon", O_RDONLY);
data/i3status-2.13/src/print_cpu_temperature.c:188:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temperature->formatted_value, "%.2f", temp);
data/i3status-2.13/src/print_cpu_temperature.c:221:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temperature.formatted_value, "%.2f", 0.0);
data/i3status-2.13/src/print_cpu_usage.c:78: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(curr_cpus, prev_cpus, cpu_count * sizeof(struct cpu_usage));
data/i3status-2.13/src/print_cpu_usage.c:79: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[4096];
data/i3status-2.13/src/print_ddate.c:13: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 *season_long[5] = {
data/i3status-2.13/src/print_ddate.c:20: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 *season_short[5] = {
data/i3status-2.13/src/print_ddate.c:27: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 *day_long[5] = {
data/i3status-2.13/src/print_ddate.c:34: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 *day_short[5] = {
data/i3status-2.13/src/print_ddate.c:41: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 *holidays[10] = {
data/i3status-2.13/src/print_ddate.c:90:28:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                outwalk += sprintf(outwalk, "%d", dt->season_day + 1);
data/i3status-2.13/src/print_ddate.c:93:28:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                outwalk += sprintf(outwalk, "%d", dt->season_day + 1);
data/i3status-2.13/src/print_ddate.c:95:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    outwalk += sprintf(outwalk, "th");
data/i3status-2.13/src/print_ddate.c:101:36:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        outwalk += sprintf(outwalk, "st");
data/i3status-2.13/src/print_ddate.c:104:36:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        outwalk += sprintf(outwalk, "nd");
data/i3status-2.13/src/print_ddate.c:107:36:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        outwalk += sprintf(outwalk, "rd");
data/i3status-2.13/src/print_ddate.c:110:36:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        outwalk += sprintf(outwalk, "th");
data/i3status-2.13/src/print_ddate.c:116:28:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                outwalk += sprintf(outwalk, "%d", dt->year);
data/i3status-2.13/src/print_ddate.c:149:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    outwalk += sprintf(outwalk, "St. Tib's Day");
data/i3status-2.13/src/print_ddate.c:164:28:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                outwalk += sprintf(outwalk, "%%%c", *(i + 1));
data/i3status-2.13/src/print_disk_info.c:28: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.
static const char *const iec_symbols[MAX_EXPONENT + 1] = {"", "Ki", "Mi", "Gi", "Ti"};
data/i3status-2.13/src/print_disk_info.c:29: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.
static const char *const si_symbols[MAX_EXPONENT + 1] = {"", "k", "M", "G", "T"};
data/i3status-2.13/src/print_disk_info.c:30: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.
static const char *const custom_symbols[MAX_EXPONENT + 1] = {"", "K", "M", "G", "T"};
data/i3status-2.13/src/print_eth_info.c:47:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        return sprintf(outwalk, "%d Mbit/s", ethspeed);
data/i3status-2.13/src/print_eth_info.c:73:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        return sprintf(outwalk, "no carrier");
data/i3status-2.13/src/print_file_contents.c:29: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).
    int fd = open(path, O_RDONLY);
data/i3status-2.13/src/print_file_contents.c:59:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            outwalk += sprintf(outwalk, "%d", errno);
data/i3status-2.13/src/print_ip_addr.c:47:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char part[512];
data/i3status-2.13/src/print_ipv6_addr.c:20:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[INET6_ADDRSTRLEN + 1];
data/i3status-2.13/src/print_ipv6_addr.c:106: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(cached, resp, sizeof(struct addrinfo));
data/i3status-2.13/src/print_ipv6_addr.c:111: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(cached->ai_addr, resp->ai_addr, resp->ai_addrlen);
data/i3status-2.13/src/print_load.c:35:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            outwalk += sprintf(outwalk, "%1.2f", loadavg[0]);
data/i3status-2.13/src/print_load.c:39:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            outwalk += sprintf(outwalk, "%1.2f", loadavg[1]);
data/i3status-2.13/src/print_load.c:43:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            outwalk += sprintf(outwalk, "%1.2f", loadavg[2]);
data/i3status-2.13/src/print_mem.c:13: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.
static const char *const iec_symbols[MAX_EXPONENT + 1] = {"", "Ki", "Mi", "Gi", "Ti"};
data/i3status-2.13/src/print_mem.c:92: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).
    FILE *file = fopen(memoryfile_linux, "r");
data/i3status-2.13/src/print_mem.c:96: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 line[128];
data/i3status-2.13/src/print_time.c:42: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 timebuf[1024];
data/i3status-2.13/src/print_volume.c:96:72:  [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).
        uint32_t sink_idx = device[strlen("pulse")] == ':' ? (uint32_t)atoi(device + strlen("pulse:")) : DEFAULT_SINK_INDEX;
data/i3status-2.13/src/print_volume.c:102: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 description[MAX_SINK_DESCRIPTION_LEN] = {'\0'};
data/i3status-2.13/src/print_volume.c:129: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 description[MAX_SINK_DESCRIPTION_LEN];
data/i3status-2.13/src/print_volume.c:263:18:  [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 ((mixfd = open(mixerpath, O_RDWR)) < 0) {
data/i3status-2.13/src/print_wireless_info.c:81: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 essid[IW_ESSID_MAX_SIZE + 1];
data/i3status-2.13/src/print_wireless_info.c:229: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(info->bssid, nla_data(bss[NL80211_BSS_BSSID]), ETH_ALEN);
data/i3status-2.13/src/print_wireless_info.c:337: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 bssid[IEEE80211_ADDR_LEN];
data/i3status-2.13/src/print_wireless_info.c:375: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(u.req.is_u.macaddr, bssid, sizeof(bssid));
data/i3status-2.13/src/print_wireless_info.c:449:13:  [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/i3status-2.13/src/print_wireless_info.c:543:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    outwalk += sprintf(outwalk, "%d", info.quality);
data/i3status-2.13/src/print_wireless_info.c:554:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    outwalk += sprintf(outwalk, "%d dBm", info.signal_level);
data/i3status-2.13/src/print_wireless_info.c:565:32:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    outwalk += sprintf(outwalk, "%d dBm", info.noise_level);
data/i3status-2.13/src/print_wireless_info.c:582:28:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                outwalk += sprintf(outwalk, "%1.1f GHz", info.frequency / 1e9);
data/i3status-2.13/src/print_wireless_info.c:593: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 br_buffer[128];
data/i3status-2.13/src/process_runs.c:24:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char pidbuf[16];
data/i3status-2.13/src/pulse.c:18: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 description[MAX_SINK_DESCRIPTION_LEN];
data/i3status-2.13/src/pulse.c:262:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
bool description_pulseaudio(uint32_t sink_idx, const char *sink_name, char buffer[MAX_SINK_DESCRIPTION_LEN]) {
data/i3status-2.13/src/pulse.c:262:71:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
bool description_pulseaudio(uint32_t sink_idx, const char *sink_name, char buffer[MAX_SINK_DESCRIPTION_LEN]) {
data/i3status-2.13/i3status.c:153: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(value) == 0)
data/i3status-2.13/i3status.c:182: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).
    const int len = strlen(value);
data/i3status-2.13/i3status.c:186: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 (len != strlen("#rrggbb") && len != strlen("#aarrggbb")) {
data/i3status-2.13/i3status.c:186: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).
        if (len != strlen("#rrggbb") && len != strlen("#aarrggbb")) {
data/i3status-2.13/i3status.c:190: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 (len != strlen("#rrggbb")) {
data/i3status-2.13/i3status.c:219:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    head = strndup(path, tail ? (size_t)(tail - path) : strlen(path));
data/i3status-2.13/i3status.c:230: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).
        result = scalloc(strlen(head) + (tail ? strlen(tail) : 0) + 1);
data/i3status-2.13/i3status.c:230: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).
        result = scalloc(strlen(head) + (tail ? strlen(tail) : 0) + 1);
data/i3status-2.13/include/i3status.h:32: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).
#define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0)
data/i3status-2.13/include/i3status.h:80: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).
    with(const char *, title, current + strlen(name) + 1) \
data/i3status-2.13/include/i3status.h:92:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            yajl_gen_string(json_gen, (const unsigned char *)"markup", strlen("markup"));       \
data/i3status-2.13/include/i3status.h:93:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            yajl_gen_string(json_gen, (const unsigned char *)_markup, strlen(_markup));         \
data/i3status-2.13/include/i3status.h:94:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            yajl_gen_string(json_gen, (const unsigned char *)"full_text", strlen("full_text")); \
data/i3status-2.13/include/i3status.h:95:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            yajl_gen_string(json_gen, (const unsigned char *)text, strlen(text));               \
data/i3status-2.13/include/i3status.h:105:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            yajl_gen_string(json_gen, (const unsigned char *)"name", strlen("name")); \
data/i3status-2.13/include/i3status.h:106:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            yajl_gen_string(json_gen, (const unsigned char *)name, strlen(name));     \
data/i3status-2.13/include/i3status.h:115:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yajl_gen_string(json_gen, (const unsigned char *)"align", strlen("align"));                                 \
data/i3status-2.13/include/i3status.h:116:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yajl_gen_string(json_gen, (const unsigned char *)_align, strlen(_align));                                   \
data/i3status-2.13/include/i3status.h:122:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    yajl_gen_string(json_gen, (const unsigned char *)"min_width", strlen("min_width"));                     \
data/i3status-2.13/include/i3status.h:125:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    yajl_gen_string(json_gen, (const unsigned char *)"min_width", strlen("min_width"));                     \
data/i3status-2.13/include/i3status.h:126:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    yajl_gen_string(json_gen, (const unsigned char *)_width->str, strlen(_width->str));                     \
data/i3status-2.13/include/i3status.h:130:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yajl_gen_string(json_gen, (const unsigned char *)"separator", strlen("separator"));                         \
data/i3status-2.13/include/i3status.h:134:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yajl_gen_string(json_gen, (const unsigned char *)"separator_block_width", strlen("separator_block_width")); \
data/i3status-2.13/include/i3status.h:138: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(_sep) == 0) {                                                                                        \
data/i3status-2.13/include/i3status.h:139:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yajl_gen_string(json_gen, (const unsigned char *)"separator", strlen("separator"));                         \
data/i3status-2.13/include/i3status.h:155:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yajl_gen_string(json_gen, (const unsigned char *)"color", strlen("color")); \
data/i3status-2.13/include/i3status.h:156:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                yajl_gen_string(json_gen, (const unsigned char *)_val, strlen(_val));       \
data/i3status-2.13/include/i3status.h:173:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            yajl_gen_string(json_gen, (const unsigned char *)"instance", strlen("instance")); \
data/i3status-2.13/include/i3status.h:174:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            yajl_gen_string(json_gen, (const unsigned char *)instance, strlen(instance));     \
data/i3status-2.13/src/auto_detect_format.c:129:17:  [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(50);
data/i3status-2.13/src/first_network_device.c:42: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).
        slen = strlen(buf);
data/i3status-2.13/src/first_network_device.c:50:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(dest, ++s, n);
data/i3status-2.13/src/first_network_device.c:170: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 (strncasecmp(LOOPBACK_DEV, addrp->ifa_name, strlen(LOOPBACK_DEV)) == 0)
data/i3status-2.13/src/general.c:25:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = read(fd, destination, size - 1);
data/i3status-2.13/src/general.c:40: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).
    size_t len = strlen(input);
data/i3status-2.13/src/output.c:61: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 (output_format == O_I3BAR || strlen(separator) == 0)
data/i3status-2.13/src/print_battery_info.c:644: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).
            walk += strlen("status");
data/i3status-2.13/src/print_battery_info.c:652: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).
            walk += strlen("percentage");
data/i3status-2.13/src/print_battery_info.c:670: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).
            walk += strlen("remaining");
data/i3status-2.13/src/print_battery_info.c:686: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).
            walk += strlen("emptytime");
data/i3status-2.13/src/print_battery_info.c:693: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).
            walk += strlen("consumption");
data/i3status-2.13/src/print_cpu_temperature.c:67:9:  [1] (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). Risk is low because the source is a constant character.
        strcpy(temperature->formatted_value, "?");
data/i3status-2.13/src/print_cpu_temperature.c:164: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 ((strlen(prop_dictionary_keysym_cstring_nocopy(obj)) != strlen(thermal_zone)) ||
data/i3status-2.13/src/print_cpu_temperature.c:164:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((strlen(prop_dictionary_keysym_cstring_nocopy(obj)) != strlen(thermal_zone)) ||
data/i3status-2.13/src/print_cpu_temperature.c:167: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).
                     strlen(thermal_zone)) != 0))
data/i3status-2.13/src/print_cpu_temperature.c:257: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).
            walk += strlen("degrees");
data/i3status-2.13/src/print_cpu_usage.c:165: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).
            walk += strlen("usage");
data/i3status-2.13/src/print_cpu_usage.c:187: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).
            walk += strlen("cpu") + padding;
data/i3status-2.13/src/print_ddate.c:135:28:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
                outwalk += sprintf(outwalk, "\n");
data/i3status-2.13/src/print_ddate.c:138:28:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
                outwalk += sprintf(outwalk, "\t");
data/i3status-2.13/src/print_ddate.c:213: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 ((form = malloc(strlen(format) + 1)) == NULL)
data/i3status-2.13/src/print_disk_info.c:77:87:  [1] (buffer) strlen:
  Does not handle 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 (threshold_type[0] != '\0' && strncasecmp(threshold_type + 1, "bytes_", strlen("bytes_")) == 0) {
data/i3status-2.13/src/print_disk_info.c:146: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(sanitized) > 1 && sanitized[strlen(sanitized) - 1] == '/')
data/i3status-2.13/src/print_disk_info.c:146: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).
        if (strlen(sanitized) > 1 && sanitized[strlen(sanitized) - 1] == '/')
data/i3status-2.13/src/print_disk_info.c:147: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).
            sanitized[strlen(sanitized) - 1] = '\0';
data/i3status-2.13/src/print_disk_info.c:186: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).
            walk += strlen("free");
data/i3status-2.13/src/print_disk_info.c:190: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).
            walk += strlen("used");
data/i3status-2.13/src/print_disk_info.c:194: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).
            walk += strlen("total");
data/i3status-2.13/src/print_disk_info.c:198: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).
            walk += strlen("avail");
data/i3status-2.13/src/print_disk_info.c:202: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).
            walk += strlen("percentage_free");
data/i3status-2.13/src/print_disk_info.c:206: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).
            walk += strlen("percentage_used_of_avail");
data/i3status-2.13/src/print_disk_info.c:210: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).
            walk += strlen("percentage_used");
data/i3status-2.13/src/print_disk_info.c:214: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).
            walk += strlen("percentage_avail");
data/i3status-2.13/src/print_eth_info.c:49:16:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        return sprintf(outwalk, "?");
data/i3status-2.13/src/print_eth_info.c:54:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void)strncpy(ifm.ifm_name, interface, sizeof(ifm.ifm_name));
data/i3status-2.13/src/print_eth_info.c:62:16:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        return sprintf(outwalk, "?");
data/i3status-2.13/src/print_eth_info.c:71:16:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        return sprintf(outwalk, "?");
data/i3status-2.13/src/print_eth_info.c:91:20:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            return sprintf(outwalk, "?");
data/i3status-2.13/src/print_eth_info.c:115:12:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    return sprintf(outwalk, "?");
data/i3status-2.13/src/print_eth_info.c:187: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).
            walk += strlen("ip");
data/i3status-2.13/src/print_eth_info.c:191: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).
            walk += strlen("speed");
data/i3status-2.13/src/print_eth_info.c:195: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).
            walk += strlen("interface");
data/i3status-2.13/src/print_file_contents.c:34:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(fd, buf, max_chars);
data/i3status-2.13/src/print_file_contents.c:50: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).
            walk += strlen("title");
data/i3status-2.13/src/print_file_contents.c:57: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).
            walk += strlen("content");
data/i3status-2.13/src/print_file_contents.c:60: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).
            walk += strlen("errno");
data/i3status-2.13/src/print_file_contents.c:63: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).
            walk += strlen("error");
data/i3status-2.13/src/print_ipv6_addr.c:140: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).
            walk += strlen("ip");
data/i3status-2.13/src/print_load.c:36: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).
            walk += strlen("1min");
data/i3status-2.13/src/print_load.c:40: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).
            walk += strlen("5min");
data/i3status-2.13/src/print_load.c:44: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).
            walk += strlen("15min");
data/i3status-2.13/src/print_mem.c:99: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).
            ram_total = strtol(line + strlen("MemTotal:"), NULL, 10);
data/i3status-2.13/src/print_mem.c:102: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).
            ram_free = strtol(line + strlen("MemFree:"), NULL, 10);
data/i3status-2.13/src/print_mem.c:105: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).
            ram_available = strtol(line + strlen("MemAvailable:"), NULL, 10);
data/i3status-2.13/src/print_mem.c:108: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).
            ram_buffers = strtol(line + strlen("Buffers:"), NULL, 10);
data/i3status-2.13/src/print_mem.c:111: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).
            ram_cached = strtol(line + strlen("Cached:"), NULL, 10);
data/i3status-2.13/src/print_mem.c:114: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).
            ram_shared = strtol(line + strlen("Shmem:"), NULL, 10);
data/i3status-2.13/src/print_mem.c:166: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).
            walk += strlen("total");
data/i3status-2.13/src/print_mem.c:170: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).
            walk += strlen("used");
data/i3status-2.13/src/print_mem.c:174: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).
            walk += strlen("free");
data/i3status-2.13/src/print_mem.c:178: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).
            walk += strlen("available");
data/i3status-2.13/src/print_mem.c:182: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).
            walk += strlen("shared");
data/i3status-2.13/src/print_mem.c:186: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).
            walk += strlen("percentage_free");
data/i3status-2.13/src/print_mem.c:190: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).
            walk += strlen("percentage_available");
data/i3status-2.13/src/print_mem.c:194: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).
            walk += strlen("percentage_used");
data/i3status-2.13/src/print_mem.c:198: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).
            walk += strlen("percentage_shared");
data/i3status-2.13/src/print_path_exists.c:32: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).
            walk += strlen("title");
data/i3status-2.13/src/print_path_exists.c:36: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).
            walk += strlen("status");
data/i3status-2.13/src/print_run_watch.c:30: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).
            walk += strlen("title");
data/i3status-2.13/src/print_run_watch.c:34: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).
            walk += strlen("status");
data/i3status-2.13/src/print_time.c:75: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).
                walk += strlen("time");
data/i3status-2.13/src/print_volume.c:60: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).
            walk += strlen("%");
data/i3status-2.13/src/print_volume.c:64: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).
            walk += strlen("volume");
data/i3status-2.13/src/print_volume.c:68: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).
            walk += strlen("devicename");
data/i3status-2.13/src/print_volume.c:95: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 (!strncasecmp(device, "pulse", strlen("pulse"))) {
data/i3status-2.13/src/print_volume.c:96: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).
        uint32_t sink_idx = device[strlen("pulse")] == ':' ? (uint32_t)atoi(device + strlen("pulse:")) : DEFAULT_SINK_INDEX;
data/i3status-2.13/src/print_volume.c:96:86:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        uint32_t sink_idx = device[strlen("pulse")] == ':' ? (uint32_t)atoi(device + strlen("pulse:")) : DEFAULT_SINK_INDEX;
data/i3status-2.13/src/print_volume.c:97: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).
        const char *sink_name = device[strlen("pulse")] == ':' &&
data/i3status-2.13/src/print_volume.c:98:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        !isdigit(device[strlen("pulse:")])
data/i3status-2.13/src/print_volume.c:99: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).
                                    ? device + strlen("pulse:")
data/i3status-2.13/src/print_volume.c:206: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 (!strncasecmp(mixer, "capture", strlen("capture"))) {
data/i3status-2.13/src/print_wireless_info.c:437:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(&info->essid[0], (char *)nwid.i_nwid, len);
data/i3status-2.13/src/print_wireless_info.c:547: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).
            walk += strlen("quality");
data/i3status-2.13/src/print_wireless_info.c:558: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).
            walk += strlen("signal");
data/i3status-2.13/src/print_wireless_info.c:569: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).
            walk += strlen("noise");
data/i3status-2.13/src/print_wireless_info.c:578: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).
            walk += strlen("essid");
data/i3status-2.13/src/print_wireless_info.c:585: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).
            walk += strlen("frequency");
data/i3status-2.13/src/print_wireless_info.c:589: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).
            walk += strlen("ip");
data/i3status-2.13/src/print_wireless_info.c:598: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).
            walk += strlen("bitrate");
data/i3status-2.13/src/pulse.c:82:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(entry->description, new_description, sizeof(entry->description) - 1);
data/i3status-2.13/src/pulse.c:95:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(entry->description, new_description, sizeof(entry->description) - 1);
data/i3status-2.13/src/pulse.c:98: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).
        entry->name = malloc(strlen(name) + 1);
data/i3status-2.13/src/pulse.c:279:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, entry->description, sizeof(entry->description) - 1);

ANALYSIS SUMMARY:

Hits = 290
Lines analyzed = 6166 in approximately 0.66 seconds (9330 lines/second)
Physical Source Lines of Code (SLOC) = 4698
Hits@level = [0]  47 [1] 123 [2]  97 [3]   5 [4]  65 [5]   0
Hits@level+ = [0+] 337 [1+] 290 [2+] 167 [3+]  70 [4+]  65 [5+]   0
Hits/KSLOC@level+ = [0+] 71.7327 [1+] 61.7284 [2+] 35.547 [3+] 14.9 [4+] 13.8357 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.