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/libxtrx-0.0.1+git20191219.98458ce/examples/xtrx_fft/main.cpp Examining data/libxtrx-0.0.1+git20191219.98458ce/examples/xtrx_fft/mainwindow.cpp Examining data/libxtrx-0.0.1+git20191219.98458ce/examples/xtrx_fft/mainwindow.h Examining data/libxtrx-0.0.1+git20191219.98458ce/examples/xtrx_fft/rxthread.cpp Examining data/libxtrx-0.0.1+git20191219.98458ce/examples/xtrx_fft/rxthread.h Examining data/libxtrx-0.0.1+git20191219.98458ce/examples/xtrx_fft/waterfall.cpp Examining data/libxtrx-0.0.1+git20191219.98458ce/examples/xtrx_fft/waterfall.h Examining data/libxtrx-0.0.1+git20191219.98458ce/octo/adf4355.c Examining data/libxtrx-0.0.1+git20191219.98458ce/octo/adf4355.h Examining data/libxtrx-0.0.1+git20191219.98458ce/octo/xtrx_octo_api.h Examining data/libxtrx-0.0.1+git20191219.98458ce/soapy/Registration.cpp Examining data/libxtrx-0.0.1+git20191219.98458ce/soapy/SoapyXTRX.cpp Examining data/libxtrx-0.0.1+git20191219.98458ce/soapy/SoapyXTRX.h Examining data/libxtrx-0.0.1+git20191219.98458ce/soapy/test_xtrx_soapy.c Examining data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx_api.h Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx_debug.c Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx_debug.h Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe.c Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe.h Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.h Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octocal0.c Examining data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octorx0.c FINAL RESULTS: data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c:96:8: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = vsnprintf(logbuffer, sizeof(logbuffer) - 1, fmt, ap); data/libxtrx-0.0.1+git20191219.98458ce/soapy/SoapyXTRX.cpp:58:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* lenv = getenv("SOAPY_XTRX_LOGLEVEL"); data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:623:16: [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, data/libxtrx-0.0.1+git20191219.98458ce/soapy/SoapyXTRX.cpp:60:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). loglevel = atoi(lenv); data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:116:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename_buf[256]; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:123:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pd->out_files[p] = fopen(filename, fattr); data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:215: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 mstr[500]; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:216: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 options[256] = {0}; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:494:9: [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). *lna = atoi(fmt); data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:631:40: [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). *long_options[option_index].flag = atoi(optarg); data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:638:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'C': cycles = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:639:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'c': refclk = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:641: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). case 'p': samples_flag = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:647:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'l': loglevel = (atoi(optarg)); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:648:21: [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). case 'L': logp = (atoi(optarg)); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:652:12: [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). switch (atoi(optarg)) { data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:659:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': bufs_cnt = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:664:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'Z': tx_packet_size = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:665:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'z': rx_packet_size = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:667:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'K': tx_skip = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:668:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'k': rx_skip = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:670:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'E': tx_slice = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:671:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'e': rx_slice = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:675:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fill_hmft(atoi(optarg), &rx_sample_host_size, &rx_host_fmt); data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:678:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fill_hmft(atoi(optarg), &tx_sample_host_size, &tx_host_fmt); data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:706:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'G': txgain = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:709:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'Y': vio = atoi(optarg); break; data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:452: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 copypstr[4096]; data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:502:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). params.loglevel = atoi(val) & XTRX_O_LOGLVL_MASK; data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:1514: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(wire_buffer_ptr, data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:1769:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst_buf[0], data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:2338:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void xtrx_log_setlevel(int sevirity, const char sybsystem[4]) data/libxtrx-0.0.1+git20191219.98458ce/xtrx_api.h:40:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char sybsystem[4], data/libxtrx-0.0.1+git20191219.98458ce/xtrx_api.h:47:53: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. XTRX_API void xtrx_log_setlevel(int sevirity, const char sybsystem[4]); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_api.h:157: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 uniqname[XTRX_DEVINFO_UNIQNAME_MAX]; data/libxtrx-0.0.1+git20191219.98458ce/xtrx_api.h:158: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 proto[XTRX_PROTO_MAX]; data/libxtrx-0.0.1+git20191219.98458ce/xtrx_api.h:159: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 speed[XTRX_SPEED_MAX]; data/libxtrx-0.0.1+git20191219.98458ce/xtrx_api.h:160: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 serial[XTRX_SERIAL_MAX]; data/libxtrx-0.0.1+git20191219.98458ce/xtrx_api.h:161: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 devid[XTRX_DEVID_MAX]; data/libxtrx-0.0.1+git20191219.98458ce/xtrx_debug.c:64: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 *pptr[4] = {NULL,}; data/libxtrx-0.0.1+git20191219.98458ce/xtrx_debug.c:192:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096]; data/libxtrx-0.0.1+git20191219.98458ce/xtrx_debug.c:193: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 reply[4096]; data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c:91: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 logbuffer[1024]; data/libxtrx-0.0.1+git20191219.98458ce/examples/xtrx_fft/mainwindow.cpp:243:3: [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(1000); data/libxtrx-0.0.1+git20191219.98458ce/octo/adf4355.c:175:3: [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(1000); data/libxtrx-0.0.1+git20191219.98458ce/octo/adf4355.c:183:3: [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(1000); data/libxtrx-0.0.1+git20191219.98458ce/octo/adf4355.c:201:2: [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(1000); data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:777:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (device == NULL || strlen(device) < 1) { data/libxtrx-0.0.1+git20191219.98458ce/test_xtrx.c:995: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(450000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:302:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(devs[i].uniqname, lldevs[i].uniqname, sizeof(devs[i].uniqname)); data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:303:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(devs[i].proto, lldevs[i].proto, sizeof(lldevs[i].proto)); data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:304:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(devs[i].speed, lldevs[i].busspeed, sizeof(lldevs[i].busspeed)); data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:305:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy(devs[i].serial, "", sizeof(devs[i].serial)); // TODO data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:306:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(devs[i].devid, lldevs[i].addr, sizeof(devs[i].devid)); data/libxtrx-0.0.1+git20191219.98458ce/xtrx.c:470:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(copypstr, paramstring, sizeof(copypstr)); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_debug.c:162:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name.sun_path, fifoname, sizeof(name.sun_path) - 1); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_debug.c:197:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t res = read(data_socket, p + buffer, sizeof(buffer) - p); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe.c:79: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). if (strncmp(fename, fes[i].fename, strlen(fes[i].fename)) == 0) data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c:289:2: [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/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c:296:2: [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(100000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c:305:2: [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(100000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c:312:2: [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/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c:320:2: [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/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c:359:2: [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(1000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_nlms7.c:726:3: [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(10*1000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octocal0.c:93:2: [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/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octocal0.c:99:2: [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(100); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octocal0.c:119:2: [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(1); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octocal0.c:177:3: [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(10); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octocal0.c:231:2: [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(1000000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octocal0.c:294:3: [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(100000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octorx0.c:96:2: [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(2000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octorx0.c:153:2: [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(2000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octorx0.c:163:2: [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(1000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octorx0.c:193:2: [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(2000); data/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octorx0.c:450:3: [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/libxtrx-0.0.1+git20191219.98458ce/xtrx_fe_octorx0.c:459: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(5000); ANALYSIS SUMMARY: Hits = 77 Lines analyzed = 11069 in approximately 0.25 seconds (44732 lines/second) Physical Source Lines of Code (SLOC) = 8455 Hits@level = [0] 93 [1] 34 [2] 40 [3] 2 [4] 1 [5] 0 Hits@level+ = [0+] 170 [1+] 77 [2+] 43 [3+] 3 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 20.1064 [1+] 9.10704 [2+] 5.08575 [3+] 0.35482 [4+] 0.118273 [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.