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/network-manager-strongswan-1.5.2/properties/nm-strongswan.c
Examining data/network-manager-strongswan-1.5.2/properties/nm-strongswan.h
Examining data/network-manager-strongswan-1.5.2/auth-dialog/main.c

FINAL RESULTS:

data/network-manager-strongswan-1.5.2/auth-dialog/main.c:317:12:  [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.
			agent = getenv("SSH_AUTH_SOCK");
data/network-manager-strongswan-1.5.2/auth-dialog/main.c:198:27:  [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 (new_pw && minlen && strlen(new_pw) < minlen)
data/network-manager-strongswan-1.5.2/auth-dialog/main.c:236:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read (0, &c, 1);
data/network-manager-strongswan-1.5.2/properties/nm-strongswan.c:123: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).
	if (!str || !strlen (str)) {
data/network-manager-strongswan-1.5.2/properties/nm-strongswan.c:141: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).
					if (str && strlen (str) < 20) {
data/network-manager-strongswan-1.5.2/properties/nm-strongswan.c:517:20:  [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 (password && strlen (password))
data/network-manager-strongswan-1.5.2/properties/nm-strongswan.c:554:13:  [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 (str && strlen (str)) {
data/network-manager-strongswan-1.5.2/properties/nm-strongswan.c:664:13:  [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 (str && strlen (str)) {
data/network-manager-strongswan-1.5.2/properties/nm-strongswan.c:672:13:  [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 (str && strlen (str)) {

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 1307 in approximately 0.05 seconds (25242 lines/second)
Physical Source Lines of Code (SLOC) = 1043
Hits@level = [0]   6 [1]   8 [2]   0 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  15 [1+]   9 [2+]   1 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 14.3816 [1+] 8.62895 [2+] 0.958773 [3+] 0.958773 [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.