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/confget-2.3.4/confget.c
Examining data/confget-2.3.4/confget.h
Examining data/confget-2.3.4/confget_common.c
Examining data/confget-2.3.4/confget_common.h
Examining data/confget-2.3.4/confget_http_get.c
Examining data/confget-2.3.4/confget_http_get.h
Examining data/confget-2.3.4/confget_ini.c
Examining data/confget-2.3.4/confget_ini.h
Examining data/confget-2.3.4/test-fgetln.c
Examining data/confget-2.3.4/test-getline.c

FINAL RESULTS:

data/confget-2.3.4/confget.c:214:15:  [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 ((ch = getopt(argc, argv, "cf:hLlm:NnOP:p:q:Ss:Tt:xV-:")) != EOF) {
data/confget-2.3.4/confget_http_get.c:64: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.
	const char *qstr = getenv(section);
data/confget-2.3.4/confget_common.c:61:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE * const ifp = fopen(filename, "r");
data/confget-2.3.4/confget_common.c:146: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(q, p, n);
data/confget-2.3.4/confget_http_get.c:118: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 h[3];
data/confget-2.3.4/confget_http_get.c:130: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(q, p, len);
data/confget-2.3.4/confget_http_get.c:136: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(q, p, v - p);
data/confget-2.3.4/confget_ini.c:81: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(vvalue + vlen, p, plen);
data/confget-2.3.4/confget.c:444: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).
	const size_t len = strlen(name);
data/confget-2.3.4/confget.c:547: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).
					    strlen(name), 0, 0, NULL, 0);
data/confget-2.3.4/confget.c:575:8:  [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(value), 0, 0, NULL, 0);
data/confget-2.3.4/confget_ini.c:76: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).
			size_t vlen = strlen(vvalue);
data/confget-2.3.4/confget_ini.c:77:24:  [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).
			const size_t plen = strlen(p);
data/confget-2.3.4/confget_ini.c:177: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).
			size_t vlen = strlen(vvalue);

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 1482 in approximately 0.11 seconds (13779 lines/second)
Physical Source Lines of Code (SLOC) = 907
Hits@level = [0]  13 [1]   6 [2]   6 [3]   2 [4]   0 [5]   0
Hits@level+ = [0+]  27 [1+]  14 [2+]   8 [3+]   2 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 29.7685 [1+] 15.4355 [2+] 8.82029 [3+] 2.20507 [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.