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/libgusb-0.3.5/gusb/gusb-autocleanups.h
Examining data/libgusb-0.3.5/gusb/gusb-context-private.h
Examining data/libgusb-0.3.5/gusb/gusb-context.c
Examining data/libgusb-0.3.5/gusb/gusb-context.h
Examining data/libgusb-0.3.5/gusb/gusb-device-list.c
Examining data/libgusb-0.3.5/gusb/gusb-device-list.h
Examining data/libgusb-0.3.5/gusb/gusb-device-private.h
Examining data/libgusb-0.3.5/gusb/gusb-device.c
Examining data/libgusb-0.3.5/gusb/gusb-device.h
Examining data/libgusb-0.3.5/gusb/gusb-endpoint-private.h
Examining data/libgusb-0.3.5/gusb/gusb-endpoint.c
Examining data/libgusb-0.3.5/gusb/gusb-endpoint.h
Examining data/libgusb-0.3.5/gusb/gusb-interface-private.h
Examining data/libgusb-0.3.5/gusb/gusb-interface.c
Examining data/libgusb-0.3.5/gusb/gusb-interface.h
Examining data/libgusb-0.3.5/gusb/gusb-private.h
Examining data/libgusb-0.3.5/gusb/gusb-self-test.c
Examining data/libgusb-0.3.5/gusb/gusb-source.c
Examining data/libgusb-0.3.5/gusb/gusb-source.h
Examining data/libgusb-0.3.5/gusb/gusb-util.c
Examining data/libgusb-0.3.5/gusb/gusb-util.h
Examining data/libgusb-0.3.5/gusb/gusb-version.c
Examining data/libgusb-0.3.5/gusb/gusb.h
Examining data/libgusb-0.3.5/tools/gusb-main.c

FINAL RESULTS:

data/libgusb-0.3.5/gusb/gusb-device.c:872: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 buf[128];
data/libgusb-0.3.5/gusb/gusb-endpoint.c:70: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 (&endpoint->endpoint_descriptor,
data/libgusb-0.3.5/gusb/gusb-interface.c:77: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 (&interface->iface,
data/libgusb-0.3.5/tools/gusb-main.c:119:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (item->name);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 5656 in approximately 0.20 seconds (28261 lines/second)
Physical Source Lines of Code (SLOC) = 3453
Hits@level = [0]   0 [1]   1 [2]   3 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   3 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 1.15841 [1+] 1.15841 [2+] 0.86881 [3+]   0 [4+]   0 [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.