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/spectools-201601r1/spectool_gtk_hw_registry.h Examining data/spectools-201601r1/spectool_net_client.h Examining data/spectools-201601r1/spectool_container.h Examining data/spectools-201601r1/spectool_net.h Examining data/spectools-201601r1/spectool_gtk.h Examining data/spectools-201601r1/spectool_gtk_channel.h Examining data/spectools-201601r1/spectool_gtk_spectral.h Examining data/spectools-201601r1/spectool_gtk_planar.h Examining data/spectools-201601r1/wispy_hw_dbx.h Examining data/spectools-201601r1/maemo_usb_helper.c Examining data/spectools-201601r1/spectool_gtk_topo.h Examining data/spectools-201601r1/wispy_hw_24x.h Examining data/spectools-201601r1/ubertooth_hw_u1.h Examining data/spectools-201601r1/spectool_container.c Examining data/spectools-201601r1/spectool_net_client.c Examining data/spectools-201601r1/wispy_hw_gen1.h Examining data/spectools-201601r1/spectool_net_server.c Examining data/spectools-201601r1/ubertooth_hw_u1.c Examining data/spectools-201601r1/wispy_hw_24x.c Examining data/spectools-201601r1/wispy_hw_dbx.c Examining data/spectools-201601r1/wispy_hw_gen1.c Examining data/spectools-201601r1/spectool_gtk_widget.h Examining data/spectools-201601r1/spectool_curses.c Examining data/spectools-201601r1/spectool_gtk.c Examining data/spectools-201601r1/spectool_gtk_channel.c Examining data/spectools-201601r1/spectool_gtk_hw_registry.c Examining data/spectools-201601r1/spectool_gtk_planar.c Examining data/spectools-201601r1/spectool_gtk_spectral.c Examining data/spectools-201601r1/spectool_gtk_topo.c Examining data/spectools-201601r1/spectool_gtk_widget.c Examining data/spectools-201601r1/spectool_raw.c FINAL RESULTS: data/spectools-201601r1/spectool_curses.c:42:2: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(format, args); data/spectools-201601r1/spectool_curses.c:85:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int o = getopt_long(argc, argv, "n:ld:r:h", data/spectools-201601r1/spectool_net_server.c:790:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int o = getopt_long(argc, argv, "p:a:b:lr:h", data/spectools-201601r1/spectool_raw.c:96:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int o = getopt_long(argc, argv, "n:bhr:l", data/spectools-201601r1/maemo_usb_helper.c:20:19: [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 ((controlf = fopen("/sys/devices/platform/musb_hdrc/mode", "w")) != NULL) { data/spectools-201601r1/maemo_usb_helper.c:35:19: [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 ((controlf = fopen("/sys/devices/platform/musb_hdrc/mode", "w")) != NULL) { data/spectools-201601r1/spectool_container.c:194:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(c->sweeplist[c->pos], s, SPECTOOL_SWEEP_SIZE(s->num_samples)); data/spectools-201601r1/spectool_container.c:200: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(c->avg, s, SPECTOOL_SWEEP_SIZE(s->num_samples)); data/spectools-201601r1/spectool_container.c:261: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(c->peak, s, SPECTOOL_SWEEP_SIZE(s->num_samples)); data/spectools-201601r1/spectool_container.c:265: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(c->roll_peak, s, SPECTOOL_SWEEP_SIZE(s->num_samples)); data/spectools-201601r1/spectool_container.c:274: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(c->roll_peak, s, SPECTOOL_SWEEP_SIZE(s->num_samples)); data/spectools-201601r1/spectool_container.h:116: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 device_name[SPECTOOL_PHY_NAME_MAX]; data/spectools-201601r1/spectool_container.h:171: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 errstr[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_container.h:220: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[SPECTOOL_PHY_NAME_MAX]; data/spectools-201601r1/spectool_curses.c:53: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 errstr[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk.c:394: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 errstr[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_channel.c:86: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 mtext[128]; data/spectools-201601r1/spectool_gtk_hw_registry.c:308: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 bcasturl[SPECTOOL_NETCLI_URL_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:309: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 errstr[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:310: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 reperr[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:469: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 err[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:523: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 err[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:619: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 err[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:658: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[64]; data/spectools-201601r1/spectool_gtk_hw_registry.c:744:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:1138:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:1199: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 url[1024]; data/spectools-201601r1/spectool_gtk_hw_registry.c:1200: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 err[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:1323:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_gtk_hw_registry.c:1324:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[1024]; data/spectools-201601r1/spectool_gtk_hw_registry.c:1349: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 port[16]; data/spectools-201601r1/spectool_gtk_planar.c:57: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 mtext[128]; data/spectools-201601r1/spectool_gtk_planar.c:444: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 freqt[6], curt[6], avgt[6], maxt[6]; data/spectools-201601r1/spectool_gtk_topo.c:197: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 perct[6]; data/spectools-201601r1/spectool_gtk_widget.c:151: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 ltxt[256]; data/spectools-201601r1/spectool_gtk_widget.c:191: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 alt_title_text[32]; data/spectools-201601r1/spectool_gtk_widget.c:491: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 mtext[128]; data/spectools-201601r1/spectool_gtk_widget.c:677: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 mtext[128]; data/spectools-201601r1/spectool_net_client.c:62:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *) &(sr->conaddr), sr->host->h_addr_list[0], data/spectools-201601r1/spectool_net_client.c:78:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *) &servaddr.sin_addr.s_addr, data/spectools-201601r1/spectool_net_client.c:449:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(sr->wbuf[sr->write_fill]), data, len); data/spectools-201601r1/spectool_net_client.c:573: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 errstr[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_net_client.c:632: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 junk[8]; data/spectools-201601r1/spectool_net_client.h: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 device_name[256]; data/spectools-201601r1/spectool_net_client.h:90: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 hostname[256]; data/spectools-201601r1/spectool_net_server.c:149:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(tci->wbuf[tci->write_fill]), data, len); data/spectools-201601r1/spectool_net_server.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 inhost[16]; data/spectools-201601r1/spectool_net_server.c:752: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 errstr[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_raw.c:65: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 errstr[SPECTOOL_ERROR_MAX]; data/spectools-201601r1/spectool_raw.c:81: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 bcasturl[SPECTOOL_NETCLI_URL_MAX]; data/spectools-201601r1/ubertooth_hw_u1.c: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 combopath[128]; data/spectools-201601r1/ubertooth_hw_u1.c:324: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 combopath[128]; data/spectools-201601r1/ubertooth_hw_u1.c:447: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[64]; data/spectools-201601r1/ubertooth_hw_u1.c:653: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 lbuf[64]; data/spectools-201601r1/ubertooth_hw_u1.h:23: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 bus[64]; data/spectools-201601r1/ubertooth_hw_u1.h:24: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 dev[64]; data/spectools-201601r1/wispy_hw_24x.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 combopath[128]; data/spectools-201601r1/wispy_hw_24x.c:339: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 combopath[128]; data/spectools-201601r1/wispy_hw_24x.c:456: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[64]; data/spectools-201601r1/wispy_hw_24x.c:661: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 lbuf[64]; data/spectools-201601r1/wispy_hw_24x.h:31: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 bus[64]; data/spectools-201601r1/wispy_hw_24x.h:32: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 dev[64]; data/spectools-201601r1/wispy_hw_dbx.c:450: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 combopath[128]; data/spectools-201601r1/wispy_hw_dbx.c:576: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 combopath[128]; data/spectools-201601r1/wispy_hw_dbx.c:779: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[sizeof(wispydbx_report_v2)]; data/spectools-201601r1/wispy_hw_dbx.c:1071: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 lbuf[sizeof(wispydbx_report_v2)]; data/spectools-201601r1/wispy_hw_dbx.h:31: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 bus[64]; data/spectools-201601r1/wispy_hw_dbx.h:32: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 dev[64]; data/spectools-201601r1/wispy_hw_gen1.c:206: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 combopath[128]; data/spectools-201601r1/wispy_hw_gen1.c:286: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 combopath[128]; data/spectools-201601r1/wispy_hw_gen1.c:417: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[8]; data/spectools-201601r1/wispy_hw_gen1.c:659:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char lbuf[8]; data/spectools-201601r1/wispy_hw_gen1.h:22: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 bus[64]; data/spectools-201601r1/wispy_hw_gen1.h:23: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 dev[64]; data/spectools-201601r1/maemo_usb_helper.c:23:4: [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(10000); data/spectools-201601r1/maemo_usb_helper.c:38:4: [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(10000); data/spectools-201601r1/spectool_net_client.c:221:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((res = read(sr->sock, &(sr->rbuf[sr->read_fill]), data/spectools-201601r1/spectool_net_client.c:634:2: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(((spectool_net_dev_aux *) phydev->auxptr)->spipe[0], junk, 8); data/spectools-201601r1/spectool_net_server.c:191: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). dev->device_name_len = strlen(spectool_phy_getname(&(d->phydev))); data/spectools-201601r1/spectool_net_server.c:567:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((res = read(tcb->fd, ANALYSIS SUMMARY: Hits = 80 Lines analyzed = 14304 in approximately 0.35 seconds (41211 lines/second) Physical Source Lines of Code (SLOC) = 9965 Hits@level = [0] 313 [1] 6 [2] 70 [3] 3 [4] 1 [5] 0 Hits@level+ = [0+] 393 [1+] 80 [2+] 74 [3+] 4 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 39.438 [1+] 8.0281 [2+] 7.42599 [3+] 0.401405 [4+] 0.100351 [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.