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/skypat-3.1.1/examples/assertion/main.cpp
Examining data/skypat-3.1.1/examples/assertion/my_case.cpp
Examining data/skypat-3.1.1/examples/assertion/my_case.h
Examining data/skypat-3.1.1/examples/fail/main.cpp
Examining data/skypat-3.1.1/examples/fail/my_case.cpp
Examining data/skypat-3.1.1/examples/fail/my_case.h
Examining data/skypat-3.1.1/examples/multi_assert/main.cpp
Examining data/skypat-3.1.1/examples/multi_assert/my_case.cpp
Examining data/skypat-3.1.1/examples/multi_assert/my_case.h
Examining data/skypat-3.1.1/examples/multi_case/main.cpp
Examining data/skypat-3.1.1/examples/multi_case/my_case.cpp
Examining data/skypat-3.1.1/examples/multi_case/my_case.h
Examining data/skypat-3.1.1/examples/multi_expect/main.cpp
Examining data/skypat-3.1.1/examples/multi_expect/my_case.cpp
Examining data/skypat-3.1.1/examples/multi_expect/my_case.h
Examining data/skypat-3.1.1/examples/performance/main.cpp
Examining data/skypat-3.1.1/examples/performance/my_case.cpp
Examining data/skypat-3.1.1/examples/performance/my_case.h
Examining data/skypat-3.1.1/examples/skypat_c/main.cpp
Examining data/skypat-3.1.1/examples/skypat_c/my_case.cpp
Examining data/skypat-3.1.1/examples/skypat_c/my_case.h
Examining data/skypat-3.1.1/examples/smoke/main.cpp
Examining data/skypat-3.1.1/examples/smoke/my_case.cpp
Examining data/skypat-3.1.1/examples/smoke/my_case.h
Examining data/skypat-3.1.1/examples/thread/ThreadTest.h
Examining data/skypat-3.1.1/examples/thread/main.cpp
Examining data/skypat-3.1.1/include/skypat/ADT/Color.h
Examining data/skypat-3.1.1/include/skypat/ADT/TypeTraits.h
Examining data/skypat-3.1.1/include/skypat/ADT/Uncopyable.h
Examining data/skypat-3.1.1/include/skypat/Listeners/CSVResultPrinter.h
Examining data/skypat-3.1.1/include/skypat/Listeners/PrettyResultPrinter.h
Examining data/skypat-3.1.1/include/skypat/SkypatNamespace.h
Examining data/skypat-3.1.1/include/skypat/Support/IOSFwd.h
Examining data/skypat-3.1.1/include/skypat/Support/ManagedStatic.h
Examining data/skypat-3.1.1/include/skypat/Support/OStrStream.h
Examining data/skypat-3.1.1/include/skypat/Support/Path.h
Examining data/skypat-3.1.1/include/skypat/Support/Perf.h
Examining data/skypat-3.1.1/include/skypat/Support/Timer.h
Examining data/skypat-3.1.1/include/skypat/Thread/Mutex.h
Examining data/skypat-3.1.1/include/skypat/Thread/MutexImpl.h
Examining data/skypat-3.1.1/include/skypat/Thread/Thread.h
Examining data/skypat-3.1.1/include/skypat/Thread/ThreadImpl.h
Examining data/skypat-3.1.1/include/skypat/skypat.h
Examining data/skypat-3.1.1/lib/ADT/Color.cpp
Examining data/skypat-3.1.1/lib/Core/Repeater.cpp
Examining data/skypat-3.1.1/lib/Core/Test.cpp
Examining data/skypat-3.1.1/lib/Core/UnitTest.cpp
Examining data/skypat-3.1.1/lib/Listeners/CSVResultPrinter.cpp
Examining data/skypat-3.1.1/lib/Listeners/PrettyResultPrinter.cpp
Examining data/skypat-3.1.1/lib/Support/ManagedStatic.cpp
Examining data/skypat-3.1.1/lib/Support/Path.cpp
Examining data/skypat-3.1.1/lib/Support/Perf.cpp
Examining data/skypat-3.1.1/lib/Support/Timer.cpp
Examining data/skypat-3.1.1/lib/Thread/Mutex.cpp
Examining data/skypat-3.1.1/lib/Thread/Thread.cpp
Examining data/skypat-3.1.1/lib/Thread/ThreadImpl.cpp
Examining data/skypat-3.1.1/lib/skypat.cpp

FINAL RESULTS:

data/skypat-3.1.1/lib/Support/Path.cpp:98:5:  [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(const_cast<ValueType*>(m_PathName.data()+old_size), pPath.native().data());
data/skypat-3.1.1/lib/Core/Test.cpp:77:17:  [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 ((opt = getopt(pArgc, pArgv, "c:h")) != -1 ) {
data/skypat-3.1.1/include/skypat/Listeners/CSVResultPrinter.h:34:8:  [2] (misc) open:
  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).
  bool open(const std::string& pFileName);
data/skypat-3.1.1/lib/Core/Test.cpp:57:18:  [2] (misc) open:
  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).
    if (printer->open(pCSVResult)) {
data/skypat-3.1.1/lib/Listeners/CSVResultPrinter.cpp:28:24:  [2] (misc) open:
  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).
bool CSVResultPrinter::open(const std::string& pFileName)
data/skypat-3.1.1/lib/Listeners/CSVResultPrinter.cpp:33:13:  [2] (misc) open:
  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).
  m_OStream.open(pFileName.c_str(), std::ostream::out | std::ostream::app);
data/skypat-3.1.1/examples/performance/main.cpp:72:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1);
data/skypat-3.1.1/examples/performance/main.cpp:74:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1);
data/skypat-3.1.1/examples/performance/main.cpp:79:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1);
data/skypat-3.1.1/examples/skypat_c/my_case.cpp:51:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(sleepMs * 1000);   // usleep takes sleep time in us

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 4847 in approximately 0.10 seconds (46468 lines/second)
Physical Source Lines of Code (SLOC) = 2664
Hits@level = [0]   0 [1]   4 [2]   4 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]   6 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 3.75375 [1+] 3.75375 [2+] 2.25225 [3+] 0.750751 [4+] 0.375375 [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.