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/libnss-gw-name-0.3/libnss_gw_name.c

FINAL RESULTS:

data/libnss-gw-name-0.3/libnss_gw_name.c:143:3:  [4] (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).
		strcpy(buffer+idx, name); 
data/libnss-gw-name-0.3/libnss_gw_name.c:152: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+astart, nl_addr_get_binary_addr(gw), sizeof(ipv4_address_t));
data/libnss-gw-name-0.3/libnss_gw_name.c:123:4:  [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).
			strlen(name)+1+   /* main name */
data/libnss-gw-name-0.3/libnss_gw_name.c:145: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).
		idx += strlen(name)+1;

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 185 in approximately 0.04 seconds (4884 lines/second)
Physical Source Lines of Code (SLOC) = 114
Hits@level = [0]   0 [1]   2 [2]   1 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   2 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 35.0877 [1+] 35.0877 [2+] 17.5439 [3+] 8.77193 [4+] 8.77193 [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.