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/activemq-5.16.0/assembly/src/release/examples/openwire/cpp/Listener.cpp
Examining data/activemq-5.16.0/assembly/src/release/examples/openwire/cpp/Publisher.cpp
Examining data/activemq-5.16.0/assembly/src/release/examples/stomp/cpp/Listener.cpp
Examining data/activemq-5.16.0/assembly/src/release/examples/stomp/cpp/Publisher.cpp

FINAL RESULTS:

data/activemq-5.16.0/assembly/src/release/examples/openwire/cpp/Listener.cpp:43:24:  [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.
        return System::getenv(key);
data/activemq-5.16.0/assembly/src/release/examples/openwire/cpp/Publisher.cpp:45:24:  [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.
        return System::getenv(key);
data/activemq-5.16.0/assembly/src/release/examples/stomp/cpp/Listener.cpp:43:24:  [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.
        return System::getenv(key);
data/activemq-5.16.0/assembly/src/release/examples/stomp/cpp/Publisher.cpp:45:24:  [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.
        return System::getenv(key);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 492 in approximately 0.52 seconds (945 lines/second)
Physical Source Lines of Code (SLOC) = 316
Hits@level = [0]   0 [1]   0 [2]   0 [3]   4 [4]   0 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   4 [3+]   4 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 12.6582 [1+] 12.6582 [2+] 12.6582 [3+] 12.6582 [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.