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/process-cpp-3.0.1/src/core/testing/fork_and_run.cpp
Examining data/process-cpp-3.0.1/src/core/testing/cross_process_sync.cpp
Examining data/process-cpp-3.0.1/src/core/posix/signalable.cpp
Examining data/process-cpp-3.0.1/src/core/posix/backtrace.cpp
Examining data/process-cpp-3.0.1/src/core/posix/standard_stream.cpp
Examining data/process-cpp-3.0.1/src/core/posix/process_group.cpp
Examining data/process-cpp-3.0.1/src/core/posix/signal.cpp
Examining data/process-cpp-3.0.1/src/core/posix/fork.cpp
Examining data/process-cpp-3.0.1/src/core/posix/exec.cpp
Examining data/process-cpp-3.0.1/src/core/posix/process.cpp
Examining data/process-cpp-3.0.1/src/core/posix/child_process.cpp
Examining data/process-cpp-3.0.1/src/core/posix/this_process.cpp
Examining data/process-cpp-3.0.1/src/core/posix/backtrace.h
Examining data/process-cpp-3.0.1/src/core/posix/wait.cpp
Examining data/process-cpp-3.0.1/src/core/posix/linux/proc/process/oom_score.cpp
Examining data/process-cpp-3.0.1/src/core/posix/linux/proc/process/oom_adj.cpp
Examining data/process-cpp-3.0.1/src/core/posix/linux/proc/process/oom_score_adj.cpp
Examining data/process-cpp-3.0.1/src/core/posix/linux/proc/process/state.cpp
Examining data/process-cpp-3.0.1/src/core/posix/linux/proc/process/stat.cpp
Examining data/process-cpp-3.0.1/tests/posix_process_test.cpp
Examining data/process-cpp-3.0.1/tests/death_observer_test.cpp
Examining data/process-cpp-3.0.1/tests/linux_process_test.cpp
Examining data/process-cpp-3.0.1/tests/fork_and_run_test.cpp
Examining data/process-cpp-3.0.1/tests/cross_process_sync_test.cpp
Examining data/process-cpp-3.0.1/include/core/testing/cross_process_sync.h
Examining data/process-cpp-3.0.1/include/core/testing/fork_and_run.h
Examining data/process-cpp-3.0.1/include/core/posix/signal.h
Examining data/process-cpp-3.0.1/include/core/posix/process_group.h
Examining data/process-cpp-3.0.1/include/core/posix/visibility.h
Examining data/process-cpp-3.0.1/include/core/posix/exec.h
Examining data/process-cpp-3.0.1/include/core/posix/exit.h
Examining data/process-cpp-3.0.1/include/core/posix/this_process.h
Examining data/process-cpp-3.0.1/include/core/posix/standard_stream.h
Examining data/process-cpp-3.0.1/include/core/posix/wait.h
Examining data/process-cpp-3.0.1/include/core/posix/signalable.h
Examining data/process-cpp-3.0.1/include/core/posix/linux/proc/process/oom_adj.h
Examining data/process-cpp-3.0.1/include/core/posix/linux/proc/process/oom_score_adj.h
Examining data/process-cpp-3.0.1/include/core/posix/linux/proc/process/oom_score.h
Examining data/process-cpp-3.0.1/include/core/posix/linux/proc/process/stat.h
Examining data/process-cpp-3.0.1/include/core/posix/linux/proc/process/state.h
Examining data/process-cpp-3.0.1/include/core/posix/fork.h
Examining data/process-cpp-3.0.1/include/core/posix/child_process.h
Examining data/process-cpp-3.0.1/include/core/posix/process.h

FINAL RESULTS:

data/process-cpp-3.0.1/src/core/posix/linux/proc/process/stat.cpp:59:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
       >> stat.time.system
data/process-cpp-3.0.1/src/core/posix/this_process.cpp:72: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.
    auto result = ::getenv(key.c_str());
data/process-cpp-3.0.1/src/core/posix/this_process.cpp:89: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.
    auto result = ::getenv(key.c_str());
data/process-cpp-3.0.1/tests/posix_process_test.cpp:151:15:  [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.
    EXPECT_EQ(getenv("HOME"), core::posix::this_process::env::get(home));
data/process-cpp-3.0.1/include/core/posix/child_process.h:134:25:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
    friend ChildProcess vfork(const std::function<posix::exit::Status()>&, const StandardStream&);
data/process-cpp-3.0.1/include/core/posix/fork.h:49:36:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
CORE_POSIX_DLL_PUBLIC ChildProcess vfork(const std::function<posix::exit::Status()>& main,
data/process-cpp-3.0.1/src/core/posix/fork.cpp:122:14:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
ChildProcess vfork(const std::function<posix::exit::Status()>& main,
data/process-cpp-3.0.1/src/core/posix/fork.cpp:127:19:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
    pid_t pid = ::vfork();
data/process-cpp-3.0.1/src/core/posix/signal.cpp:152:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                auto result = ::read(scope.signal_fd, signal_info, sizeof(signal_info));
data/process-cpp-3.0.1/src/core/posix/signal.cpp:170:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                auto result = ::read(event_fd, &value, sizeof(value));
data/process-cpp-3.0.1/src/core/testing/cross_process_sync.cpp:90:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (sizeof(value) != read(fds[read_fd], std::addressof(value), sizeof(value)))

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 4739 in approximately 0.18 seconds (25688 lines/second)
Physical Source Lines of Code (SLOC) = 2771
Hits@level = [0]   0 [1]   3 [2]   4 [3]   3 [4]   1 [5]   0
Hits@level+ = [0+]  11 [1+]  11 [2+]   8 [3+]   4 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 3.96969 [1+] 3.96969 [2+] 2.88704 [3+] 1.44352 [4+] 0.360881 [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.