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/curlpp-0.8.1/examples/example00.cpp
Examining data/curlpp-0.8.1/examples/example01.cpp
Examining data/curlpp-0.8.1/examples/example02.cpp
Examining data/curlpp-0.8.1/examples/example03.cpp
Examining data/curlpp-0.8.1/examples/example04.cpp
Examining data/curlpp-0.8.1/examples/example05.cpp
Examining data/curlpp-0.8.1/examples/example06.cpp
Examining data/curlpp-0.8.1/examples/example07.cpp
Examining data/curlpp-0.8.1/examples/example08.cpp
Examining data/curlpp-0.8.1/examples/example09.cpp
Examining data/curlpp-0.8.1/examples/example10.cpp
Examining data/curlpp-0.8.1/examples/example11.cpp
Examining data/curlpp-0.8.1/examples/example12.cpp
Examining data/curlpp-0.8.1/examples/example13.cpp
Examining data/curlpp-0.8.1/examples/example14.cpp
Examining data/curlpp-0.8.1/examples/example15.cpp
Examining data/curlpp-0.8.1/examples/example16.cpp
Examining data/curlpp-0.8.1/examples/example17.cpp
Examining data/curlpp-0.8.1/examples/example18.cpp
Examining data/curlpp-0.8.1/examples/example19.cpp
Examining data/curlpp-0.8.1/examples/example20.cpp
Examining data/curlpp-0.8.1/examples/example21.cpp
Examining data/curlpp-0.8.1/examples/example22.cpp
Examining data/curlpp-0.8.1/examples/example23.cpp
Examining data/curlpp-0.8.1/examples/example24.cpp
Examining data/curlpp-0.8.1/include/curlpp/Easy.hpp
Examining data/curlpp-0.8.1/include/curlpp/Exception.hpp
Examining data/curlpp-0.8.1/include/curlpp/Form.hpp
Examining data/curlpp-0.8.1/include/curlpp/Info.hpp
Examining data/curlpp-0.8.1/include/curlpp/Infos.hpp
Examining data/curlpp-0.8.1/include/curlpp/Multi.hpp
Examining data/curlpp-0.8.1/include/curlpp/Option.hpp
Examining data/curlpp-0.8.1/include/curlpp/OptionBase.hpp
Examining data/curlpp-0.8.1/include/curlpp/Options.hpp
Examining data/curlpp-0.8.1/include/curlpp/Types.hpp
Examining data/curlpp-0.8.1/include/curlpp/cURLpp.hpp
Examining data/curlpp-0.8.1/include/curlpp/internal/CurlHandle.hpp
Examining data/curlpp-0.8.1/include/curlpp/internal/OptionContainer.hpp
Examining data/curlpp-0.8.1/include/curlpp/internal/OptionContainerType.hpp
Examining data/curlpp-0.8.1/include/curlpp/internal/OptionList.hpp
Examining data/curlpp-0.8.1/include/curlpp/internal/OptionSetter.hpp
Examining data/curlpp-0.8.1/include/curlpp/internal/SList.hpp
Examining data/curlpp-0.8.1/include/utilspp/EmptyType.hpp
Examining data/curlpp-0.8.1/include/utilspp/NonCopyable.hpp
Examining data/curlpp-0.8.1/include/utilspp/NullType.hpp
Examining data/curlpp-0.8.1/include/utilspp/SmartPtr.hpp
Examining data/curlpp-0.8.1/include/utilspp/ThreadingFactoryMutex.hpp
Examining data/curlpp-0.8.1/include/utilspp/ThreadingSingle.hpp
Examining data/curlpp-0.8.1/include/utilspp/TypeList.hpp
Examining data/curlpp-0.8.1/include/utilspp/TypeTrait.hpp
Examining data/curlpp-0.8.1/include/utilspp/clone_ptr.hpp
Examining data/curlpp-0.8.1/src/curlpp/Easy.cpp
Examining data/curlpp-0.8.1/src/curlpp/Exception.cpp
Examining data/curlpp-0.8.1/src/curlpp/Form.cpp
Examining data/curlpp-0.8.1/src/curlpp/Info.cpp
Examining data/curlpp-0.8.1/src/curlpp/Multi.cpp
Examining data/curlpp-0.8.1/src/curlpp/OptionBase.cpp
Examining data/curlpp-0.8.1/src/curlpp/Options.cpp
Examining data/curlpp-0.8.1/src/curlpp/cURLpp.cpp
Examining data/curlpp-0.8.1/src/curlpp/internal/CurlHandle.cpp
Examining data/curlpp-0.8.1/src/curlpp/internal/OptionList.cpp
Examining data/curlpp-0.8.1/src/curlpp/internal/OptionSetter.cpp
Examining data/curlpp-0.8.1/src/curlpp/internal/SList.cpp

FINAL RESULTS:

data/curlpp-0.8.1/include/curlpp/cURLpp.hpp:146:14:  [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.
	std::string getenv(const std::string & name);
data/curlpp-0.8.1/src/curlpp/cURLpp.cpp:80:9:  [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.
curlpp::getenv(const std::string & name)
data/curlpp-0.8.1/src/curlpp/cURLpp.cpp:83:14:  [3] (buffer) curl_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* p = curl_getenv(name.c_str());
data/curlpp-0.8.1/examples/example02.cpp:72: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 buf[50];
data/curlpp-0.8.1/examples/example02.cpp:80:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "Content-Length: %d", size); 
data/curlpp-0.8.1/examples/example05.cpp:66: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(&(m_pBuffer[m_Size]), ptr, realsize);
data/curlpp-0.8.1/examples/example06.cpp:80: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(&(m_pBuffer[m_Size]), ptr, realsize);
data/curlpp-0.8.1/examples/example10.cpp:63:16:  [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 * file = fopen(filename, "w");
data/curlpp-0.8.1/examples/example11.cpp:78:11:  [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 = fopen(filename, "wb");
data/curlpp-0.8.1/examples/example21.cpp:55:3:  [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 buf[50];
data/curlpp-0.8.1/examples/example21.cpp:63:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "Content-Length: %d", size); 
data/curlpp-0.8.1/include/curlpp/internal/CurlHandle.hpp:180:3:  [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 mErrorBuffer[CURL_ERROR_SIZE + 1];
data/curlpp-0.8.1/examples/example02.cpp:52:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buffer, data, size * nitems);
data/curlpp-0.8.1/examples/example02.cpp:70: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).
	int size = strlen(data);
data/curlpp-0.8.1/src/curlpp/Multi.cpp:89:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
curlpp::Multi::fdset(fd_set * read, fd_set * write, fd_set * exc, int * max)
data/curlpp-0.8.1/src/curlpp/Multi.cpp:91:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CURLMcode code = curl_multi_fdset(mMultiHandle, read, write, exc, max);
data/curlpp-0.8.1/src/curlpp/internal/OptionSetter.cpp:77:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream->read(buffer, static_cast<std::streamsize>(size * nitems));

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 9083 in approximately 0.45 seconds (20248 lines/second)
Physical Source Lines of Code (SLOC) = 4796
Hits@level = [0]   6 [1]   5 [2]   9 [3]   3 [4]   0 [5]   0
Hits@level+ = [0+]  23 [1+]  17 [2+]  12 [3+]   3 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.79566 [1+] 3.54462 [2+] 2.50209 [3+] 0.625521 [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.