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/ubertooth-2018.12.R1/firmware/assembly_test/assembly_test.c
Examining data/ubertooth-2018.12.R1/firmware/blinky/blinky.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_le.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_le.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/cc2400_rangetest.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/cc2400_rangetest.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/debug_uart.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/debug_uart.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ego.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ego.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/le_phy.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/queue.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/queue.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_clock.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_clock.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_cs.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_cs.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_dma.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_dma.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_rssi.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_rssi.h
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_usb.c
Examining data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/ubertooth_usb.h
Examining data/ubertooth-2018.12.R1/firmware/bootloader/bootloader.cpp
Examining data/ubertooth-2018.12.R1/firmware/bootloader/dfu.cpp
Examining data/ubertooth-2018.12.R1/firmware/bootloader/dfu.h
Examining data/ubertooth-2018.12.R1/firmware/bootloader/flash.h
Examining data/ubertooth-2018.12.R1/firmware/bootloader/iap.cpp
Examining data/ubertooth-2018.12.R1/firmware/bootloader/iap.h
Examining data/ubertooth-2018.12.R1/firmware/cc2400_test/cc2400_test.c
Examining data/ubertooth-2018.12.R1/firmware/clock_test/clock_test.c
Examining data/ubertooth-2018.12.R1/firmware/common/LPC17xx_Interrupts.c
Examining data/ubertooth-2018.12.R1/firmware/common/LPC17xx_Startup.c
Examining data/ubertooth-2018.12.R1/firmware/common/cc2400.h
Examining data/ubertooth-2018.12.R1/firmware/common/lpc17.h
Examining data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/debug.h
Examining data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/type.h
Examining data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/usbapi.h
Examining data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/usbcontrol.c
Examining data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/usbhw_lpc.c
Examining data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/usbhw_lpc.h
Examining data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/usbinit.c
Examining data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/usbstdreq.c
Examining data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/usbstruct.h
Examining data/ubertooth-2018.12.R1/firmware/common/serial_fifo.c
Examining data/ubertooth-2018.12.R1/firmware/common/serial_fifo.h
Examining data/ubertooth-2018.12.R1/firmware/common/types.h
Examining data/ubertooth-2018.12.R1/firmware/common/ubertooth.c
Examining data/ubertooth-2018.12.R1/firmware/common/ubertooth.h
Examining data/ubertooth-2018.12.R1/firmware/common/usb_serial.c
Examining data/ubertooth-2018.12.R1/firmware/common/usb_serial.h
Examining data/ubertooth-2018.12.R1/firmware/tc13badge/bitmaps.h
Examining data/ubertooth-2018.12.R1/firmware/tc13badge/cc2400.h
Examining data/ubertooth-2018.12.R1/firmware/tc13badge/tc13badge.c
Examining data/ubertooth-2018.12.R1/firmware/tc13badge/tc13badge.h
Examining data/ubertooth-2018.12.R1/firmware/tc13badge/toorcon.c
Examining data/ubertooth-2018.12.R1/firmware/usb_test/usb_test.c
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/kismet_ubertooth.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/packet_btbb.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/packet_btbb.h
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/packet_btbb_types.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/packetsource_ubertooth.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/packetsource_ubertooth.h
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/phy_btbb.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/phy_btbb.h
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/kismet_ubertooth.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/packet_btbb.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/packet_btbb.h
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/packet_btbb_types.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/packetsource_ubertooth.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/packetsource_ubertooth.h
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/tracker_btbb.cc
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/tracker_btbb.h
Examining data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/ubertooth_ui.cc
Examining data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth.h
Examining data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_callback.c
Examining data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_callback.h
Examining data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c
Examining data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.h
Examining data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_fifo.c
Examining data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_fifo.h
Examining data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_interface.h
Examining data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.h
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/arglist.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/arglist.h
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.h
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/dfu.h
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-afh.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-btle.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-debug.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dfu.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dump.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ego.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-follow.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-rx.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-specan.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-tx.c
Examining data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c

FINAL RESULTS:

data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.h:136:28:  [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.
    __attribute__((format (printf, fmt_idx, arg1_idx)))
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.h:167:11:  [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.
#  define vsnprintf tfp_vsnprintf
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.h:168:11:  [4] (format) snprintf:
  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.
#  define snprintf tfp_snprintf
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.h:169:11:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define vsprintf tfp_vsprintf
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.h:170:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define sprintf tfp_sprintf
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.h:178:11:  [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.
#  define printf tfp_printf
data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/debug.h:29:5:  [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.
int printf(const char *format, ...);
data/ubertooth-2018.12.R1/firmware/common/lpcusb/target/debug.h:32:13:  [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.
#define DBG	printf
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:49:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (format, "%%s = 0x%%0%dX\n", s * 2);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:50:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf (fp, format, name, value);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:139:4:  [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.
			printf(duck[i], s ? "FLAT" : "UBERDUCKY");
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:210:9:  [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.
#ifndef getenv
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:215:14:  [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.
extern char *getenv ();
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:401: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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:454:1:  [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.
getopt_long (
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:1003:1:  [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.
getopt (argc, argv, optstring)
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:1033:11:  [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.
      c = getopt (argc, argv, "abc:d:0123456789");
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.h:145:12:  [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.
extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.h:147:12:  [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.
extern int getopt ();
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.h:151:12:  [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.
extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.h:164:12:  [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.
extern int getopt ();
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.h:166:12:  [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.
extern int getopt_long ();
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-afh.c:69:14:  [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,"rhVl:u:U:e:a:t:m:")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-btle.c:168:14:  [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,"a::r:hfnpU:v::A:s:t:x:c:q:jJiI")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-debug.c:76:19:  [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, "hU:r:v:")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dfu.c:423:14:  [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,"hd:u:s:rU:")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:178:14:  [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,"q::bA:a:hs")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:221:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		FILE *random;
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:235:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			fread(bd_addr, 6, 1, random);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:236:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			fclose(random);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dump.c:58:14:  [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,"bhclU:d:")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ego.c:56:14:  [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,"frijc:U:h")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-follow.c:76:14:  [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,"hl:u:U:e:d:ab:w:r:q:")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-rx.c:75:14:  [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,"hVi:l:u:U:d:e:r:sq:t:zc:")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:208:14:  [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,"hU:t:e:xsb:")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-specan.c:103:14:  [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,"vhgGd:l::u::U:")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-tx.c:59:14:  [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,"hVl:u:U:t:")) != EOF) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:99:14:  [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,"U:hnmefiIprsStvbl::a::C::c::d::q::z::9VN")) != EOF) {
data/ubertooth-2018.12.R1/firmware/assembly_test/assembly_test.c:497: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(&pbData[3], GIT_REVISION, length);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:128:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char unpacked[DMA_SIZE*8*2];
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:154: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(f->data, buf, DMA_SIZE);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:181: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(f->data, buf, DMA_SIZE);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:422: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(&data[3], GIT_REVISION, length);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:430: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(&data[1], compile_info, length);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:592:4:  [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(data, (void *)p, sizeof(usb_pkt_rx));
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:641: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(&tx_pkt, data, i);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:648: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(slave_mac_address, data, 6);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:657: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(le_adv_data, data, le_adv_len);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:1638: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(unpacked, unpacked + DMA_SIZE*8, DMA_SIZE*8);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:2067: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(&buf[1], data, len);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:2196: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 desired[4][16] = {
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:2332: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(adv_ind + 2 + 6, le_adv_data, le_adv_len);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/debug_uart.c:9:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char debug_buffer[256];
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/le_phy.c:724: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(f->data, &packet->access_address, 4);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/le_phy.c:725: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(f->data+4, packet->data, DMA_SIZE-4);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.c:257:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bf[23];  /* long = 64b on some architectures */
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/tinyprintf.c:259:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bf[12];  /* int = 32b on some architectures */
data/ubertooth-2018.12.R1/firmware/bootloader/dfu.cpp:166:13:  [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(pbData, reinterpret_cast<const void*>(flash_address_start), length);
data/ubertooth-2018.12.R1/firmware/common/usb_serial.c:199: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((U8 *)&LineCoding, *ppbData, 7);
data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/packetsource_ubertooth.cc:128: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 syms[BANK_LEN];
data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/packetsource_ubertooth.cc:165: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).
	if ((ut = ubertooth_start(atoi(usb_dev.c_str()))) == NULL) {
data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/packetsource_ubertooth.cc:128: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 syms[BANK_LEN];
data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/packetsource_ubertooth.cc:167: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).
	if ((ut = ubertooth_start(atoi(usb_dev.c_str()))) == NULL) {
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth.c:478: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 bitstream[BANK_LEN];
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_callback.c:141: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 syms[BANK_LEN];
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_callback.c:190: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 syms[BANK_LEN];
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_callback.c:236: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 syms[BANK_LEN];
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_callback.c:281: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 syms[BANK_LEN];
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_callback.c:464: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 syms[BANK_LEN*10] = {0};
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c:560:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(version, "%u", result_ver);
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c:563: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(version, &result[3], len);
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c:587: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(compile_info, &result[1], len);
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c:643: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 data[data_len];
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c:713: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 data[4];
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c:750: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 ( &buffer[LIBUSB_CONTROL_SETUP_SIZE], afh_map, 10 );
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c:776: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 data[4];
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c:965: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(cmd_buf, mac_address, 6);
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_control.c:1093: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 ( &buffer[LIBUSB_CONTROL_SETUP_SIZE], data, size );
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth_fifo.c:53: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(&(fifo->packets[fifo->write_ptr]), packet, sizeof(usb_pkt_rx));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:40: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 format[16];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:112: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:115:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "periods=%d", 1 << (((v & 0x30) >> 4) + 6));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:119:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "periods=%d", 2 + (v & 0x2));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:127: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:129:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "fc = %d MHz", v & 0xfff);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:139: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:142:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%0.3f kHz", 15.625 * ((v >> 7) & 0x3F));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:144:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%0.4f kHz", 3.9062 * (v & 0x7F));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:151: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:152:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d", (v >> 8));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:164: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:165:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d", (v & 0x7));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:174: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:176:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d dB", ((signed short) v) >> 8);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:178:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d dB", 4 * (((signed char) v) >> 2));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:180:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d bits", v & 0x3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:187: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:189:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d", ((signed short) v) >> 8);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:214: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:216:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d us", 5 * ((v >> 13) & 0x7));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:218:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d us", (v >> 10) & 0x7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:221:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d us", (v >> 3) & 0x7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:223:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d us", v & 0x7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:270: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:273:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d", (v >> 8) & 0x3F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:276:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (description, "%d", v & 0x3F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:283: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:286:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>7)&0x7F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:288:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x7F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:295: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:306:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%+d",(v&0x7)-3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:313: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:316:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d uA",((v>>11)&0x3)*4+12);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:318:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d uA",((v>>9)&0x3)*4+82);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:322:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"360");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:325:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"720");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:328:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"900");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:331:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"1260");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:334:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(description," uA");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:338:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"OFF");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:343:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
       sprintf(description,"0.%d pF",(v>>5)&0x3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:350:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"OFF");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:353:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"100 uA");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:356:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"300 uA");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:359:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"1000 uA");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:365:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"240 uA");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:368:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"480 uA");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:371:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"640 uA");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:374:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(description,"1280 uA");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:403: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:409:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d pairs",1<<((v>>8)&0x3));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:411:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0xff);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:417: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:419:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x7f);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:426: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:429:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>6)&0x3F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:431:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x3F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:437: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:440:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(description,"Disabled");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:442:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(description,"%d * 8 MHz clock cycles",(v>>13)&0x7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:444:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>11)&0x3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:446:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>7)&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:448:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>3)&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:450:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v)&0x3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:456: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:460:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(description,"Disabled");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:462:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(description,"%d * 8 MHz clock cycles",(v>>11)&7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:465:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>6)&7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:467:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>2)&7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:469:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:475: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:478:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(description,"Disabled");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:480:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(description,"%d Fixed/Variable enable",(v>>12)&3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:482:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>9)&7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:484:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>6)&7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:486:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>3)&7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:488:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:494: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:501:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>5)&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:503:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:509: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:512:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>10)&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:514:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>4)&0x3F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:517:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:524: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:528:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>6)&0x3f);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:530:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x3f);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:537: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:544:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>4)&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:546:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:552: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:553:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"0x%X",(v>>12)&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:555:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"0x%X",v&0xFFF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:561: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:562:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"0x%X",(v>>12)&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:564:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"0x%X",v&0xFFF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:574: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:576:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>13)&3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:592: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:597:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0xFF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:613: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:618:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x1F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:624: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:625:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"0x%04X",v);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:631: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:632:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"0x%04X",v);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:639: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:641:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>10)&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:643:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>7)&0x7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:645:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x3F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:651: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:653:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0xFFF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:659: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:660:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>10)&0x3F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:662:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x1FF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:668: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:669:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>8)&0xFF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:671:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>3)&0xF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:673:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:679: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:681:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>13)&3);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:683:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>7)&0x3F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:685:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x3F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:691: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:693:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",(v>>3)&0x1F);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:695:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&7);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:701: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:704:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x3FF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:710: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 description[64];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/cc2400.c:714:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(description,"%d",v&0x7FF);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-afh.c:86: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).
			timeout = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-afh.c:89: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-afh.c:92:20:  [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).
			max_ac_errors = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-afh.c:95: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).
			packet_counter_max = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-btle.c:188: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-btle.c:222: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).
				do_crc = atoi(optarg) ? 1 : 0;
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-btle.c:227: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).
			do_adv_index = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-btle.c:251:55:  [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).
			cb_opts.allowed_access_address_errors = (unsigned) atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-debug.c:82: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).
	    ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-debug.c:85:16:  [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).
	    verbose = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dfu.c:382:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(suffix, ".dfu");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dfu.c:426:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			downfile = fopen(optarg, "r+b");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dfu.c:434: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).
			upfile = fopen(optarg, "w+b");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dfu.c:442: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).
			infile = fopen(optarg, "r+b");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dfu.c:452:14:  [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).
			outfile = fopen(outfile_name, "w+b");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dfu.c:464: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:123:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *duck[DUCKLEN] = {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:191: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).
			do_adv_index = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:234: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).
			random = fopen("/dev/urandom", "r");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dump.c:70: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-dump.c:73:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			dumpfile = fopen(optarg, "w");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ego.c:69: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).
			do_channel = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ego.c:72: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-follow.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 addr[19] = { 0 };
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-follow.c:91: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-follow.c:114:20:  [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).
			max_ac_errors = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-follow.c:117:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			dumpfile = fopen(optarg, "w");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-follow.c:134: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).
			delay = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-follow.c:159:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(addr, "00:00:%02X:%02X:%02X:%02X",
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-rx.c:78: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).
			infile = fopen(optarg, "r");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-rx.c:94: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-rx.c:117:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			dumpfile = fopen(optarg, "w");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-rx.c:124:20:  [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).
			max_ac_errors = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-rx.c:130: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).
			timeout = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-rx.c:136: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).
			channel = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:70: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[249], *tmp;
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:71: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[19] = { 0 };
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:183: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[248] = { 0 };
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:186:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(name, "[unknown]");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:203: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[19] = { 0 };
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:211: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:221: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).
			timeout = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:224:20:  [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).
			max_ac_errors = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:323:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(addr, "00:00:%02X:%02X:%02X:%02X", uap,
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:327:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(addr, "??:??:%02X:%02X:%02X:%02X", uap,
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-specan.c:119:16:  [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).
				dumpfile = fopen(optarg, "w");
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-specan.c:128: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).
				lower= atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-specan.c:134: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).
				upper= atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-specan.c:139: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-tx.c:70: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-tx.c:73: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).
			timeout = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.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 version_string[MAX_VERSION_STRING_LEN];
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:102: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).
			ubertooth_device = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:116: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).
				do_leds= atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:122: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).
				do_all_leds= atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:143: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).
				do_palevel= atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:149: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).
				do_channel= atoi(optarg) +2402;
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:155: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).
				do_channel= atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:161:20:  [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).
				do_led_specan= atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:182: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).
				squelch_level = atoi(optarg);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-util.c:352: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.
		unsigned char buf[4] = { 0x55, 0x55, 0x55, 0x55 };
data/ubertooth-2018.12.R1/firmware/assembly_test/assembly_test.c:494:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		length = (u8)strlen(GIT_REVISION);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:419:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		length = (u8)strlen(GIT_REVISION);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/bluetooth_rxtx.c:428:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		length = (u8)strlen(compile_info);
data/ubertooth-2018.12.R1/firmware/bluetooth_rxtx/debug_uart.c:99:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(debug_buffer);
data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth-phyneutral/packetsource_ubertooth.cc:348:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read_size = read(fake_fd[0], &rx, 1);
data/ubertooth-2018.12.R1/host/kismet/plugin-ubertooth/packetsource_ubertooth.cc:350:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read_size = read(fake_fd[0], &rx, 1);
data/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth.c:267: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/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth.c:305: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/ubertooth-2018.12.R1/host/libubertooth/src/ubertooth.c:320: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/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:238:51:  [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 (!defined __STDC__ || !__STDC__) && !defined strlen
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:241:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
extern int strlen (const char *);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:432:44:  [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).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:687:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		== (unsigned int) strlen (p->name))
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:714:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:746:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:762:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:767:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:878:51:  [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 ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:901:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:921:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:935:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/ubertooth-2018.12.R1/host/ubertooth-tools/getopt/getopt.c:939:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-btle.c:79:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(s) != 6 * 2 + 5) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-btle.c:353: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/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-debug.c:53:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*size = strlen(cc2400_reg2name(r));
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:51:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(s) != 6 * 2 + 5) {
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ducky.c:82:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (s == NULL || strlen(s) != 36)
data/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-ego.c:119: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/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-follow.c:214: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/ubertooth-2018.12.R1/host/ubertooth-tools/src/ubertooth-scan.c:174: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);

ANALYSIS SUMMARY:

Hits = 301
Lines analyzed = 31384 in approximately 0.98 seconds (32020 lines/second)
Physical Source Lines of Code (SLOC) = 21245
Hits@level = [0] 571 [1]  30 [2] 233 [3]  27 [4]  11 [5]   0
Hits@level+ = [0+] 872 [1+] 301 [2+] 271 [3+]  38 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 41.045 [1+] 14.168 [2+] 12.7559 [3+] 1.78866 [4+] 0.517769 [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.