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/libxtrxll-0.0.1+git20191021.3229d65/hw/lp8758.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/mmcm_rom.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrx_defs.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_api.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_api.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_base.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_base.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_base_pcie.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_base_pcie.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_flash.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_flash.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_mmcm.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_mmcm.h
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_port.c
Examining data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_port.h

FINAL RESULTS:

data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.c:92:7:  [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.
	sz = vsnprintf(buf + stsz - 1, sizeof(buf) - stsz, fmt, list);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.h:47:52:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				const char* fmt, ...)  __attribute__ ((format (printf, 6, 7)));
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:501:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* env_dual_ep = getenv("XTRX_USB3380_DUAL_GPEP");
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:512:31:  [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* env_tx_dual_ep = getenv("XTRX_USB3380_TXDUAL_GPEP");
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:146: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 ((opt = getopt(argc, argv, "d:o:r:s:l:iO:S:w:neDIV:v:F")) != -1) {
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:704: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 ((opt = getopt(argc, argv, "EYdF:fU:C:Z:21A:a:oD:PRT:r:m:vO:I:l:p:SV:Lh")) != -1) {
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_port.c:61:11:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
		 hlib = LoadLibrary("ntdll.dll");
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_port.h:72:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(__mutex);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_port.h:82:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(__mutex);
data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.c:66: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 pcie_devname[DEV_NAME_SIZE];
data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.c:91:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static __thread char tmp_buffer[512];
data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.c:110: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((void*)&dev->mmap_xtrxll_regs[streg], to_write, count * 4);
data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.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(to_read, (void*)&dev->mmap_xtrxll_regs[streg], count * 4);
data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.c:301:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(ldev, O_RDWR);
data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.c:709: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(dev->mmap_tx_device_buf, buff, buf_szs);
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:84: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 pcie_devname[DEV_NAME_SIZE];
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:148:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static __thread char tmp_buffer[512];
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:437:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devid_s[16];
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:503: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).
		dual_ep = (atoi(env_dual_ep) > 0) ? true : false;
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:514:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		dual_ep_tx = (atoi(env_tx_dual_ep) > 0) ? true : false;
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:1064: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(buffer, dev->rx_res_buffer[i], dev->rx_gpep_buffer_res[i]);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:149:15:  [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).
			vio_read = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:152:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			vio_program = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:158:15:  [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(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:164: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).
			read_flash_off = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:167: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).
			read_file_size = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:173: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).
			write_flash_off = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:176: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).
			write_file_size = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:245:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char str[512];
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:260: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* f = fopen(read_filename, "w+b");
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:315: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* f = fopen(write_filename, "r+b");
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.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  ptr[32768];
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:144:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(filename, flags);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:719:15:  [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).
			pmic_reg = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:725:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			uart = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:728:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			crange = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:743:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			repeat_mode = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:746: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).
			xtrxll_set_loglevel(atoi(optarg));
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:749:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			rx_ant = atoi(optarg) % 4;
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:750: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).
			tx_ant = (atoi(optarg) >> 2) & 1;
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:762:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			temp_sensor = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:768: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).
			rxdma = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:771: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).
			txdma = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:774: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).
			set_dac = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:780:15:  [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).
			set_mmcm = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:789:10:  [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).
			vio = atoi(optarg);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:919: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[33] = {0,};
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:1009: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(g_out_buffs[wr_idx & (MAX_BUFFS-1)].ptr, ptr, sz);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:1097:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(addr, g_in_buffs[wr_idx & (MAX_BUFFS-1)].ptr, packetsz);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_api.c:175:26:  [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).
		res = nxt->module_ops->open(device, flags, &under_dev);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_api.c:233:45:  [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).
		res = s_initfuncs[i](XTRXLL_ABI_VERSION)->open(device, flags, &under_dev);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_api.h: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 uniqname[DEV_UNIQNAME_MAX];
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_api.h: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 proto[DEV_PROTO_MAX];
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_api.h:66: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 addr[DEV_ADDR_MAX];
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_api.h:67: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 busspeed[DEV_BUSSPEED_MAX];
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_base.h:59:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int (*open)(const char* device, unsigned flags, struct xtrxll_base_dev** dev);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.c:29: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.
						  const char sybsystem[4],
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.c:57:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				   const char sybsystem[4],
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.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 buf[MAX_LOG_LINE];
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.c:123:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				const char sybsystem[4],
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.c:139:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				 const char sybsystem[4],
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.h:43:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				const char sybsystem[4],
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.h:49:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				 const char sybsystem[4],
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_log.h:63: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.
						  const char sybsystem[4],
data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.c:256:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(buffer[count].proto, "PCIe", sizeof(buffer[count].proto));
data/libxtrxll-0.0.1+git20191021.3229d65/mod_pcie/xtrxll_pcie_linux.c:259:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(buffer[count].busspeed, "10Gbit", sizeof(buffer[count].busspeed));
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:563: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(500000);
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:849:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(buffer[found].proto, "USB", sizeof(buffer[found].proto));
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:850:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buffer[found].busspeed, speed_val, sizeof(buffer[found].busspeed));
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:1531: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(1000);
data/libxtrxll-0.0.1+git20191021.3229d65/mod_usb3380/xtrxll_libusb3380.c:1582: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(1000);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:228: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(50000);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:236: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/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:310: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/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxflash.c:346:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read != write_file_size) {
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:117:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t res = read(g_in_stream, ptr, sz);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:187: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(100); /*
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:212: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/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:237: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/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:435: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(250000);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:556: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(150000);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:594: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(5000);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:621: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(20000);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:818: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/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:847: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/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:871: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(50000);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:904:5:  [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(300);
data/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:923:5:  [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/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:1023:5:  [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/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:1026:5:  [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/libxtrxll-0.0.1+git20191021.3229d65/tests/test_xtrxll.c:1032: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(500);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_base.c:461: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);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_base.c:1205: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/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_flash.c:120: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(1);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_flash.c:359: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(1);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_flash.c:467: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/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_mmcm.c:485: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/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_mmcm.c:527: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/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_mmcm.c:542: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(100);
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_port.c:52:5:  [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.
int usleep(unsigned usec)
data/libxtrxll-0.0.1+git20191021.3229d65/xtrxll_port.h:127:5:  [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.
int usleep(unsigned usec);

ANALYSIS SUMMARY:

Hits = 101
Lines analyzed = 9306 in approximately 0.21 seconds (43675 lines/second)
Physical Source Lines of Code (SLOC) = 7030
Hits@level = [0]  71 [1]  37 [2]  55 [3]   7 [4]   2 [5]   0
Hits@level+ = [0+] 172 [1+] 101 [2+]  64 [3+]   9 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 24.4666 [1+] 14.367 [2+] 9.10384 [3+] 1.28023 [4+] 0.284495 [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.