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/rudecgi-5.0.0/src/ClientData.cpp
Examining data/rudecgi-5.0.0/src/cgi.h
Examining data/rudecgi-5.0.0/src/PathMap.h
Examining data/rudecgi-5.0.0/src/UnknownParser.cpp
Examining data/rudecgi-5.0.0/src/Interactive.cpp
Examining data/rudecgi-5.0.0/src/CaseMatch.h
Examining data/rudecgi-5.0.0/src/AbstractFactory.cpp
Examining data/rudecgi-5.0.0/src/CookieData.h
Examining data/rudecgi-5.0.0/src/UnknownParser.h
Examining data/rudecgi-5.0.0/src/PathParser.cpp
Examining data/rudecgi-5.0.0/src/DataRepos.h
Examining data/rudecgi-5.0.0/src/PathParser.h
Examining data/rudecgi-5.0.0/src/CookieData.cpp
Examining data/rudecgi-5.0.0/src/PathData.h
Examining data/rudecgi-5.0.0/src/UnknownExtractor.cpp
Examining data/rudecgi-5.0.0/src/Factory.h
Examining data/rudecgi-5.0.0/src/URLEncodeParser.h
Examining data/rudecgi-5.0.0/src/GETExtractor.h
Examining data/rudecgi-5.0.0/src/POSTExtractor.h
Examining data/rudecgi-5.0.0/src/WordMatch.h
Examining data/rudecgi-5.0.0/src/CookieParser.h
Examining data/rudecgi-5.0.0/src/NewMultipartParser.h
Examining data/rudecgi-5.0.0/src/POSTExtractor.cpp
Examining data/rudecgi-5.0.0/src/FileData.h
Examining data/rudecgi-5.0.0/src/PathMapParser.h
Examining data/rudecgi-5.0.0/src/TestExtractor.h
Examining data/rudecgi-5.0.0/src/Implementation.h
Examining data/rudecgi-5.0.0/src/GETExtractor.cpp
Examining data/rudecgi-5.0.0/src/NewMultipartParser.cpp
Examining data/rudecgi-5.0.0/src/CommandLineExtractor.cpp
Examining data/rudecgi-5.0.0/src/Factory.cpp
Examining data/rudecgi-5.0.0/src/SimpleXMLParser.cpp
Examining data/rudecgi-5.0.0/src/URLEncodeParser.cpp
Examining data/rudecgi-5.0.0/src/SimpleData.cpp
Examining data/rudecgi-5.0.0/src/FileData.cpp
Examining data/rudecgi-5.0.0/src/AbstractParserFactory.h
Examining data/rudecgi-5.0.0/src/WordMatch.cpp
Examining data/rudecgi-5.0.0/src/ClientData.h
Examining data/rudecgi-5.0.0/src/PathMapParser.cpp
Examining data/rudecgi-5.0.0/src/CookieParser.cpp
Examining data/rudecgi-5.0.0/src/SimpleXMLParser.h
Examining data/rudecgi-5.0.0/src/CommandLineExtractor.h
Examining data/rudecgi-5.0.0/src/DataObject.h
Examining data/rudecgi-5.0.0/src/Interactive.h
Examining data/rudecgi-5.0.0/src/UnknownExtractor.h
Examining data/rudecgi-5.0.0/src/CaseMatch.cpp
Examining data/rudecgi-5.0.0/src/AbstractImplementation.cpp
Examining data/rudecgi-5.0.0/src/Implementation.cpp
Examining data/rudecgi-5.0.0/src/CaselessMatch.h
Examining data/rudecgi-5.0.0/src/CaselessMatch.cpp
Examining data/rudecgi-5.0.0/src/PathMap.cpp
Examining data/rudecgi-5.0.0/src/SimpleData.h
Examining data/rudecgi-5.0.0/src/FormdataExtractor.cpp
Examining data/rudecgi-5.0.0/src/AbstractParser.h
Examining data/rudecgi-5.0.0/src/ParserFactory.cpp
Examining data/rudecgi-5.0.0/src/cgi.cpp
Examining data/rudecgi-5.0.0/src/DataRepos.cpp
Examining data/rudecgi-5.0.0/src/PathData.cpp
Examining data/rudecgi-5.0.0/src/ParserFactory.h
Examining data/rudecgi-5.0.0/src/AbstractFactory.h
Examining data/rudecgi-5.0.0/src/AbstractParserFactory.cpp
Examining data/rudecgi-5.0.0/src/AbstractImplementation.h
Examining data/rudecgi-5.0.0/src/AbstractParser.cpp
Examining data/rudecgi-5.0.0/src/DataObject.cpp
Examining data/rudecgi-5.0.0/src/FormdataExtractor.h

FINAL RESULTS:

data/rudecgi-5.0.0/src/CommandLineExtractor.cpp:75: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, command.c_str());
data/rudecgi-5.0.0/src/CookieParser.cpp:60:2:  [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, fieldstuff);
data/rudecgi-5.0.0/src/FileData.cpp:157: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(newname, name);
data/rudecgi-5.0.0/src/GETExtractor.cpp:84: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, querystring);
data/rudecgi-5.0.0/src/GETExtractor.cpp:105:4:  [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, pathstring);
data/rudecgi-5.0.0/src/GETExtractor.cpp:112:4:  [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, pathstring);
data/rudecgi-5.0.0/src/GETExtractor.cpp:130: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, cookiestring);
data/rudecgi-5.0.0/src/Interactive.cpp:120:2:  [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, inputstring.c_str());
data/rudecgi-5.0.0/src/Interactive.cpp:136:2:  [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, inputstring.c_str());
data/rudecgi-5.0.0/src/PathParser.cpp:72:2:  [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, fieldstuff);
data/rudecgi-5.0.0/src/URLEncodeParser.cpp:54:2:  [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, fieldstuff);
data/rudecgi-5.0.0/src/GETExtractor.cpp:74: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.
	char  *querystring=getenv("QUERY_STRING");
data/rudecgi-5.0.0/src/GETExtractor.cpp:94:20:  [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.
	char  *pathstring=getenv("PATH_INFO");
data/rudecgi-5.0.0/src/GETExtractor.cpp:120:22:  [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.
	char  *cookiestring=getenv("HTTP_COOKIE");
data/rudecgi-5.0.0/src/Implementation.cpp:56:57:  [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.
	FormdataExtractor *extractor = factory->buildExtractor(getenv("REQUEST_METHOD"));
data/rudecgi-5.0.0/src/POSTExtractor.cpp:91:20:  [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.
	int length = atoi(getenv("CONTENT_LENGTH"));
data/rudecgi-5.0.0/src/POSTExtractor.cpp:100:51:  [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.
		AbstractParser *parser = d_factory->buildParser(getenv("CONTENT_TYPE"));
data/rudecgi-5.0.0/src/Interactive.cpp:69: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).
		int retval = atoi(inputstring.c_str());
data/rudecgi-5.0.0/src/Interactive.cpp:103: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).
		int retval = atoi(inputstring.c_str());
data/rudecgi-5.0.0/src/Interactive.cpp:232: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).
		int retval = atoi(inputstring.c_str());
data/rudecgi-5.0.0/src/Interactive.cpp:245: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).
		int retval = atoi(inputstring.c_str());
data/rudecgi-5.0.0/src/POSTExtractor.cpp:91:15:  [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).
	int length = atoi(getenv("CONTENT_LENGTH"));
data/rudecgi-5.0.0/src/CaselessMatch.cpp:46:29:  [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 length1=strlen(string1);
data/rudecgi-5.0.0/src/CaselessMatch.cpp:47:29:  [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 length2=strlen(string2);
data/rudecgi-5.0.0/src/CookieParser.cpp:54: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).
	int len=strlen(fieldstuff);
data/rudecgi-5.0.0/src/FileData.cpp:150: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).
		int length = strlen(name);
data/rudecgi-5.0.0/src/FileData.cpp:168: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).
			length = strlen(begin);
data/rudecgi-5.0.0/src/FileData.cpp:177: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).
				length=strlen(begin);
data/rudecgi-5.0.0/src/GETExtractor.cpp:79: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).
		int length = strlen(querystring);
data/rudecgi-5.0.0/src/GETExtractor.cpp:99: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).
		int length = strlen(pathstring);
data/rudecgi-5.0.0/src/GETExtractor.cpp:125: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).
		int length = strlen(cookiestring);
data/rudecgi-5.0.0/src/POSTExtractor.cpp:133:55:  [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).
			parser->parse(repository, "searchfor=binaryerror", strlen("searchfor=binaryerror"));
data/rudecgi-5.0.0/src/PathParser.cpp:66: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).
	int len=strlen(fieldstuff);
data/rudecgi-5.0.0/src/URLEncodeParser.cpp:48: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).
	int len=strlen(fieldstuff);

ANALYSIS SUMMARY:

Hits = 34
Lines analyzed = 6589 in approximately 0.13 seconds (49265 lines/second)
Physical Source Lines of Code (SLOC) = 3007
Hits@level = [0]   1 [1]  12 [2]   5 [3]   6 [4]  11 [5]   0
Hits@level+ = [0+]  35 [1+]  34 [2+]  22 [3+]  17 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 11.6395 [1+] 11.307 [2+] 7.31626 [3+] 5.65348 [4+] 3.65813 [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.