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/wavemon-0.9.1/about_scr.c Examining data/wavemon-0.9.1/conf.c Examining data/wavemon-0.9.1/conf_scr.c Examining data/wavemon-0.9.1/error.c Examining data/wavemon-0.9.1/help_scr.c Examining data/wavemon-0.9.1/ieee80211.h Examining data/wavemon-0.9.1/info_scr.c Examining data/wavemon-0.9.1/iw_if.c Examining data/wavemon-0.9.1/iw_if.h Examining data/wavemon-0.9.1/iw_nl80211.c Examining data/wavemon-0.9.1/iw_nl80211.h Examining data/wavemon-0.9.1/iw_scan.c Examining data/wavemon-0.9.1/lhist_scr.c Examining data/wavemon-0.9.1/llist.c Examining data/wavemon-0.9.1/llist.h Examining data/wavemon-0.9.1/nl80211.h Examining data/wavemon-0.9.1/scan_scr.c Examining data/wavemon-0.9.1/ui.c Examining data/wavemon-0.9.1/utils.c Examining data/wavemon-0.9.1/wavemon.c Examining data/wavemon-0.9.1/wavemon.h FINAL RESULTS: data/wavemon-0.9.1/conf.c:129:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(full_path, "%s/%s", homedir, CFNAME); data/wavemon-0.9.1/conf.c:157:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(rv, "%s", ci->list[*ci->v.i]); data/wavemon-0.9.1/conf.c:180:7: [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(tmp, rv); data/wavemon-0.9.1/conf.c:188: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(tmp, ci->cfname); data/wavemon-0.9.1/conf.c:190:5: [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(tmp, rv); data/wavemon-0.9.1/conf.c:216:6: [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(cfname, F_OK) != 0) data/wavemon-0.9.1/conf_scr.c:80:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "- %s -", item->name); data/wavemon-0.9.1/info_scr.c:138:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%.0f dBm (%s)", signal, dbm2units(signal)); data/wavemon-0.9.1/info_scr.c:157:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%.0f dBm (%s)", noise, dbm2units(noise)); data/wavemon-0.9.1/info_scr.c:186:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s (%s)", int_counts(linkstat.data.rx_packets), data/wavemon-0.9.1/info_scr.c:223:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s (%s)", int_counts(linkstat.data.tx_packets), data/wavemon-0.9.1/info_scr.c:237:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s (%.1f%%)", int_counts(linkstat.data.tx_retries), data/wavemon-0.9.1/info_scr.c:268:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, " (%s)", info.name); data/wavemon-0.9.1/info_scr.c:280:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, " (%s)", dfs_domain_name(ir.region)); data/wavemon-0.9.1/info_scr.c:360:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, " (width: %s)", channel_width_name(ifs.chan_width)); data/wavemon-0.9.1/info_scr.c:363:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, " (%s)", channel_type_name(ifs.chan_type)); data/wavemon-0.9.1/info_scr.c:606:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s/%u", inet_ntoa(info.addr), data/wavemon-0.9.1/scan_scr.c:129:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "%-*s ", sr.max_essid_len, "<hidden ESSID>"); data/wavemon-0.9.1/scan_scr.c:133:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "%-*s ", sr.max_essid_len, cur->essid); data/wavemon-0.9.1/scan_scr.c:137:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "%-*s ", sr.max_essid_len, "<cryptic ESSID>"); data/wavemon-0.9.1/scan_scr.c:158:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "%s %ssc", sort_type[conf.scan_sort_order], conf.scan_sort_asc ? "a" : "de"); data/wavemon-0.9.1/utils.c:103:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%u day%s", d, d == 1 ? "" : "s"); data/wavemon-0.9.1/conf.c:119:30: [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 *full_path, *homedir = getenv("HOME"); data/wavemon-0.9.1/conf.c:546:16: [3] (buffer) getopt: 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 ((arg = getopt(argc, argv, "ghi:v")) >= 0) { data/wavemon-0.9.1/about_scr.c:50: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 buf[0x100]; data/wavemon-0.9.1/conf.c:27: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 *if_list[MAX_IFLIST_ENTRIES]; /* array of WiFi interface names */ data/wavemon-0.9.1/conf.c:136: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 tmp[0x100], rv[0x40]; data/wavemon-0.9.1/conf.c:142: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). FILE *fd = fopen(cfname, "w"); data/wavemon-0.9.1/conf.c:152: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(rv, "%d", *ci->v.i); data/wavemon-0.9.1/conf.c:179:7: [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(tmp, " = "); data/wavemon-0.9.1/conf.c:189: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(tmp, " = "); data/wavemon-0.9.1/conf.c:207: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 tmp[0x100], lv[0x20], rv[0x20]; data/wavemon-0.9.1/conf.c:219: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). fd = fopen(cfname, "r"); data/wavemon-0.9.1/conf_scr.c:39: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 s[0x40]; data/wavemon-0.9.1/conf_scr.c:50:4: [2] (buffer) sprintf: Does 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(s, "%d", *item->v.i); data/wavemon-0.9.1/info_scr.c:78: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 tmp[0x100]; data/wavemon-0.9.1/info_scr.c:121: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(tmp, "%0.f%% ", (1e2 * qual)/sig_qual_max); data/wavemon-0.9.1/info_scr.c:123: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(tmp, "(%0.f/%d) ", qual, sig_qual_max); data/wavemon-0.9.1/info_scr.c:169: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(tmp, "%.0f dB", ssnr); data/wavemon-0.9.1/info_scr.c:178: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 tmp[0x120]; data/wavemon-0.9.1/info_scr.c:201: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(tmp, " (expected: %.1f MB/s)", linkstat.data.expected_thru/1024.0); data/wavemon-0.9.1/info_scr.c:203: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(tmp, " (expected: %u kB/s)", linkstat.data.expected_thru); data/wavemon-0.9.1/info_scr.c:210: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(tmp, "%'llu (%.1f%%)", (unsigned long long)linkstat.data.rx_drop_misc, data/wavemon-0.9.1/info_scr.c:256: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 tmp[0x100]; data/wavemon-0.9.1/info_scr.c:273:2: [2] (buffer) sprintf: Does 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(tmp, "%d", ifs.phy); data/wavemon-0.9.1/info_scr.c:325:4: [2] (buffer) sprintf: Does 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(tmp, "%.1fs", (float)linkstat.data.inactive_time/1e3); data/wavemon-0.9.1/info_scr.c:335: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(tmp, "%d MHz", ifs.freq); data/wavemon-0.9.1/info_scr.c:340:4: [2] (buffer) sprintf: Does 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(tmp, " [survey freq: %d MHz]", linkstat.data.survey.freq); data/wavemon-0.9.1/info_scr.c:346:4: [2] (buffer) sprintf: Does 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(tmp, "%d MHz", ifs.freq_ctr1); data/wavemon-0.9.1/info_scr.c:351:4: [2] (buffer) sprintf: Does 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(tmp, "%d MHz", ifs.freq_ctr2); data/wavemon-0.9.1/info_scr.c:356: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(tmp, "%d", ieee80211_frequency_to_channel(ifs.freq)); data/wavemon-0.9.1/info_scr.c:368: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(tmp, "%d MHz", linkstat.data.survey.freq); data/wavemon-0.9.1/info_scr.c:406: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(tmp, " (exp: %.1f MB/s)", linkstat.data.expected_thru/1024.0); data/wavemon-0.9.1/info_scr.c:408: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(tmp, " (exp: %u kB/s)", linkstat.data.expected_thru); data/wavemon-0.9.1/info_scr.c:420: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(tmp, "%'llu", (unsigned long long)linkstat.data.beacons); data/wavemon-0.9.1/info_scr.c:428: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(tmp, "%d dBm", (int8_t)linkstat.data.beacon_avg_sig); data/wavemon-0.9.1/info_scr.c:432: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(tmp, "%.1fs", (linkstat.data.beacon_int * 1024.0)/1e6); data/wavemon-0.9.1/info_scr.c:436: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(tmp, "%u", linkstat.data.dtim_period); data/wavemon-0.9.1/info_scr.c:465:4: [2] (buffer) sprintf: Does 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(tmp, "%d dBm", info.sens); data/wavemon-0.9.1/info_scr.c:467:4: [2] (buffer) sprintf: Does 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(tmp, "%d/%d", info.sens, data/wavemon-0.9.1/info_scr.c:507:4: [2] (buffer) sprintf: Does 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(tmp, "off"); data/wavemon-0.9.1/info_scr.c:509:4: [2] (buffer) sprintf: Does 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(tmp, "%d B", info.rts.value); data/wavemon-0.9.1/info_scr.c:519:4: [2] (buffer) sprintf: Does 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(tmp, "off"); data/wavemon-0.9.1/info_scr.c:521:4: [2] (buffer) sprintf: Does 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(tmp, "%d B", info.frag.value); data/wavemon-0.9.1/info_scr.c:540: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 tmp[0x40]; data/wavemon-0.9.1/info_scr.c:593: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(tmp, "%u", info.txqlen); data/wavemon-0.9.1/info_scr.c:622: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(tmp, "%u", info.mtu); data/wavemon-0.9.1/iw_if.c:123: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(&info->hwaddr, &ifr.ifr_hwaddr.sa_data, 6); data/wavemon-0.9.1/iw_if.c:125: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(&info->addr, &ifr.ifr_addr.sa_data[2], 4); data/wavemon-0.9.1/iw_if.c:127:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&info->netmask, &ifr.ifr_netmask.sa_data[2], 4); data/wavemon-0.9.1/iw_if.c:129: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(&info->bcast, &ifr.ifr_broadaddr.sa_data[2], 4); data/wavemon-0.9.1/iw_if.c:142: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 *p, tmp[BUFSIZ]; data/wavemon-0.9.1/iw_if.c:151: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). fp = fopen("/proc/net/dev", "r"); data/wavemon-0.9.1/iw_if.c:258: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(&info->ap_addr, &iwr.u.ap_addr, sizeof(struct sockaddr)); data/wavemon-0.9.1/iw_if.h:122: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 name[IFNAMSIZ]; data/wavemon-0.9.1/iw_if.h:138: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 essid[IW_ESSID_MAX_SIZE+2]; data/wavemon-0.9.1/iw_if.h:140: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 nickname[IW_ESSID_MAX_SIZE+2]; data/wavemon-0.9.1/iw_if.h:196: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 essid[IW_ESSID_MAX_SIZE + 2]; data/wavemon-0.9.1/iw_if.h:239: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 msg[128]; data/wavemon-0.9.1/iw_if.h:244: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/wavemon-0.9.1/iw_if.h:287: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 txline[0x40]; data/wavemon-0.9.1/iw_if.h:304: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 buf[0x80]; data/wavemon-0.9.1/iw_if.h:391:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[128]; data/wavemon-0.9.1/iw_if.h:405:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len += sprintf(buf + len, "%c", iwk->key[i]); data/wavemon-0.9.1/iw_if.h:409:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len += sprintf(buf + len, "%02X", iwk->key[i]); data/wavemon-0.9.1/iw_if.h:415:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf + len, " (%u bits)", iwk->size * 8); data/wavemon-0.9.1/iw_if.h:423: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 buf[0x80]; data/wavemon-0.9.1/iw_nl80211.c:173: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. l += sprintf(buf + l, "%c", data[i]); data/wavemon-0.9.1/iw_nl80211.c:177: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. l += sprintf(buf + l, "\\x%.2x", data[i]); data/wavemon-0.9.1/iw_nl80211.c:375: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(&ls->bssid, nla_data(bss[NL80211_BSS_BSSID]), ETH_ALEN); data/wavemon-0.9.1/iw_nl80211.h:76: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 ssid[64]; data/wavemon-0.9.1/iw_nl80211.h:174: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 tx_bitrate[100], data/wavemon-0.9.1/iw_nl80211.h:204: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 country[3]; data/wavemon-0.9.1/lhist_scr.c:70: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 range[256]; data/wavemon-0.9.1/lhist_scr.c:272:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[LEVEL_TAG_POS + 1]; data/wavemon-0.9.1/scan_scr.c:93: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 s[IW_ESSID_MAX_SIZE << 3]; data/wavemon-0.9.1/scan_scr.c:155:2: [2] (buffer) sprintf: Does 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(s, " %d ", sr.num.entries); data/wavemon-0.9.1/scan_scr.c:162: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(s, ", %d not shown", sr.num.entries + START_LINE - line); data/wavemon-0.9.1/scan_scr.c:165: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 (sr.num.open) { data/wavemon-0.9.1/scan_scr.c:166: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(s, ", %d open", sr.num.open); data/wavemon-0.9.1/scan_scr.c:166:34: [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). sprintf(s, ", %d open", sr.num.open); data/wavemon-0.9.1/scan_scr.c:173: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(s, " %d/%d", sr.num.five_gig, sr.num.two_gig); data/wavemon-0.9.1/scan_scr.c:180:4: [2] (buffer) sprintf: Does 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(s, "bottom-%d:", (int)sr.num.ch_stats); data/wavemon-0.9.1/scan_scr.c:182:4: [2] (buffer) sprintf: Does 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(s, "top-%d:", (int)sr.num.ch_stats); data/wavemon-0.9.1/scan_scr.c:187:4: [2] (buffer) sprintf: Does 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(s, "ch#%d", sr.channel_stats[i].val); data/wavemon-0.9.1/scan_scr.c:189:4: [2] (buffer) sprintf: Does 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(s, " (%d)", sr.channel_stats[i].count); data/wavemon-0.9.1/ui.c:83: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 out_buf[128]; data/wavemon-0.9.1/utils.c:28: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 mac[MAC_ADDR_MAX]; data/wavemon-0.9.1/utils.c:42: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 hostname[BUFSIZ]; data/wavemon-0.9.1/utils.c:90: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 buf[12]; data/wavemon-0.9.1/utils.c:96: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(buf, "%u days", d); data/wavemon-0.9.1/utils.c:99:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ud %uh", d, h); data/wavemon-0.9.1/utils.c:101:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ud %dm", d, m); data/wavemon-0.9.1/utils.c:106: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(buf, "%u:%02uh", h, m); data/wavemon-0.9.1/utils.c:108: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(buf, "%u:%02um", m, sec % 60); data/wavemon-0.9.1/utils.c:110: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(buf, "%u sec", sec); data/wavemon-0.9.1/utils.c:118: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 buf[12]; data/wavemon-0.9.1/utils.c:121: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(buf, "%u ms", msec); data/wavemon-0.9.1/utils.c:145: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 with_units[0x100]; data/wavemon-0.9.1/utils.c:149: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(with_units, "%.2f pW", val * 1e9); data/wavemon-0.9.1/utils.c:151: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(with_units, "%.2f nW", val * 1e6); data/wavemon-0.9.1/utils.c:153: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(with_units, "%.2f uW", val * 1e3); data/wavemon-0.9.1/utils.c:155: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(with_units, "%.2f mW", val); data/wavemon-0.9.1/utils.c:224: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 modebuf[100]; data/wavemon-0.9.1/utils.c:225:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *ifmodes[NL80211_IFTYPE_MAX + 1] = { data/wavemon-0.9.1/utils.c:242:2: [2] (buffer) sprintf: Does 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(modebuf, "Unknown mode (%d)", iftype); data/wavemon-0.9.1/wavemon.h:373: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 result[0x100]; data/wavemon-0.9.1/wavemon.h:376: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(result, "%0.2lf GiB", bytes / (1 << 30)); data/wavemon-0.9.1/wavemon.h:378: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(result, "%0.2lf MiB", bytes / (1 << 20)); data/wavemon-0.9.1/wavemon.h:380: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(result, "%0.2lf KiB", bytes / (1 << 10)); data/wavemon-0.9.1/wavemon.h:382: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(result, "%.0lf B", bytes); data/wavemon-0.9.1/wavemon.h:390: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 result[0x10]; data/wavemon-0.9.1/wavemon.h:393: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(result, "%u", count); data/wavemon-0.9.1/wavemon.h:395: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(result, "%uk", count/1000); data/wavemon-0.9.1/wavemon.h:397: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(result, "%.lg", (double)count); data/wavemon-0.9.1/about_scr.c:42: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). linecd[i] = malloc(strlen(about_lines[i]) * sizeof(int)); data/wavemon-0.9.1/about_scr.c:43: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). for (j = 0; j < strlen(about_lines[i]); j++) data/wavemon-0.9.1/about_scr.c:53: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). for (j = 0; j < strlen(about_lines[i]); j++) { data/wavemon-0.9.1/conf.c:128: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). full_path = malloc(strlen(homedir) + strlen(CFNAME) + 3); data/wavemon-0.9.1/conf.c:128: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). full_path = malloc(strlen(homedir) + strlen(CFNAME) + 3); data/wavemon-0.9.1/conf.c:171: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). && strlen(ci->cfname) == strcspn(cp, " =")) { data/wavemon-0.9.1/conf.c:175:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp, cp, strcspn(cp, " #\n")); data/wavemon-0.9.1/conf.c:177:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp, lp, strcspn(lp, " =")); data/wavemon-0.9.1/conf.c:181:7: [1] (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 character. strcat(tmp, "\n"); data/wavemon-0.9.1/conf.c:191:5: [1] (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 character. strcat(tmp, "\n"); data/wavemon-0.9.1/conf.c:232:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(lv, lp, len); data/wavemon-0.9.1/conf.c:258:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(rv, lp, len); data/wavemon-0.9.1/conf_scr.c:54:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s, item->list[*item->v.i], sizeof(s)-1); data/wavemon-0.9.1/conf_scr.c:62: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). wmove(w, y, CONF_SCREEN_WIDTH - strlen(s)); data/wavemon-0.9.1/conf_scr.c:70: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). wmove(w, y, CONF_SCREEN_WIDTH - strlen(s) - strlen(item->unit) - 1); data/wavemon-0.9.1/conf_scr.c:70: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). wmove(w, y, CONF_SCREEN_WIDTH - strlen(s) - strlen(item->unit) - 1); data/wavemon-0.9.1/conf_scr.c:77: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). mvwaddstr(w, y, CONF_SCREEN_WIDTH - strlen(item->unit), item->unit); data/wavemon-0.9.1/conf_scr.c:81: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). mvwaddstr(w, y, (CONF_SCREEN_WIDTH - strlen(s)) / 2, s); data/wavemon-0.9.1/conf_scr.c:83: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). wmove(w, y, (CONF_SCREEN_WIDTH - strlen(item->name)) / 2); data/wavemon-0.9.1/info_scr.c:50:27: [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. } while (linkstat.run && usleep(conf.stat_iv * 1000) == 0); data/wavemon-0.9.1/iw_if.c:35:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name) - 1); data/wavemon-0.9.1/iw_if.c:65:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name) - 1); data/wavemon-0.9.1/iw_if.c:114:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, ifname, IFNAMSIZ-1); data/wavemon-0.9.1/iw_if.c:190:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(iwr.ifr_name, ifname, IFNAMSIZ-1); data/wavemon-0.9.1/iw_if.c:194:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->name, iwr.u.name, IFNAMSIZ); data/wavemon-0.9.1/iw_if.c:277:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(iwr.ifr_name, ifname, IFNAMSIZ-1); data/wavemon-0.9.1/iw_if.h:401:10: [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. len += sprintf(buf, "\""); data/wavemon-0.9.1/iw_if.h:408: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. len += sprintf(buf + len, "-"); data/wavemon-0.9.1/iw_if.h:413:10: [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. len += sprintf(buf + len, "\""); data/wavemon-0.9.1/iw_nl80211.c:175:9: [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. l += sprintf(buf + l, " "); data/wavemon-0.9.1/iw_scan.c:238: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). sr->max_essid_len = clamp(strlen(new->essid), data/wavemon-0.9.1/iw_scan.c:442:11: [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. } while (usleep(conf.stat_iv * 1000) == 0); data/wavemon-0.9.1/ui.c:70: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). mvwaddstr(win, y, (WAV_WIDTH - strlen(s)) / 2, s); data/wavemon-0.9.1/ui.c:92: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). mid = strlen(sep); data/wavemon-0.9.1/ui.c:95: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). mid = strlen(sep); data/wavemon-0.9.1/ui.c:99: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). l = strlen(str); data/wavemon-0.9.1/ui.c:106:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(out_buf, str, front); data/wavemon-0.9.1/ui.c:107:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(out_buf + front, sep, mid); data/wavemon-0.9.1/ui.c:108:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(out_buf + front + mid, str + l - back, back + 1); data/wavemon-0.9.1/wavemon.c:215:6: [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(5000); data/wavemon-0.9.1/wavemon.h:326: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). for (i = 0, len = strlen(what); i < cnt; i++) ANALYSIS SUMMARY: Hits = 176 Lines analyzed = 11578 in approximately 0.38 seconds (30772 lines/second) Physical Source Lines of Code (SLOC) = 5532 Hits@level = [0] 70 [1] 41 [2] 111 [3] 2 [4] 22 [5] 0 Hits@level+ = [0+] 246 [1+] 176 [2+] 135 [3+] 24 [4+] 22 [5+] 0 Hits/KSLOC@level+ = [0+] 44.4685 [1+] 31.8149 [2+] 24.4035 [3+] 4.33839 [4+] 3.97686 [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.