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/atlas-cpp-0.6.4/Atlas/Bridge.h
Examining data/atlas-cpp-0.6.4/Atlas/Codec.h
Examining data/atlas-cpp-0.6.4/Atlas/Filter.h
Examining data/atlas-cpp-0.6.4/Atlas/Negotiate.h
Examining data/atlas-cpp-0.6.4/Atlas/EncoderBase.h
Examining data/atlas-cpp-0.6.4/Atlas/Task.h
Examining data/atlas-cpp-0.6.4/Atlas/Codec_impl.h
Examining data/atlas-cpp-0.6.4/Atlas/Exception.h
Examining data/atlas-cpp-0.6.4/Atlas/Debug.h
Examining data/atlas-cpp-0.6.4/Atlas/Version.h
Examining data/atlas-cpp-0.6.4/Atlas/Formatter.h
Examining data/atlas-cpp-0.6.4/Atlas/float.h
Examining data/atlas-cpp-0.6.4/Atlas/PresentationBridge.h
Examining data/atlas-cpp-0.6.4/Atlas/Bridge.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Codec.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Negotiate.cpp
Examining data/atlas-cpp-0.6.4/Atlas/EncoderBase.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Exception.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Filter.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Formatter.cpp
Examining data/atlas-cpp-0.6.4/Atlas/float.cpp
Examining data/atlas-cpp-0.6.4/Atlas/PresentationBridge.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Message/Element.h
Examining data/atlas-cpp-0.6.4/Atlas/Message/MEncoder.h
Examining data/atlas-cpp-0.6.4/Atlas/Message/DecoderBase.h
Examining data/atlas-cpp-0.6.4/Atlas/Message/QueuedDecoder.h
Examining data/atlas-cpp-0.6.4/Atlas/Message/Element.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Message/MEncoder.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Message/DecoderBase.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Message/QueuedDecoder.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Codecs/Utility.h
Examining data/atlas-cpp-0.6.4/Atlas/Codecs/XML.h
Examining data/atlas-cpp-0.6.4/Atlas/Codecs/Packed.h
Examining data/atlas-cpp-0.6.4/Atlas/Codecs/Bach.h
Examining data/atlas-cpp-0.6.4/Atlas/Codecs/Utility.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Codecs/XML.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Codecs/Packed.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Codecs/Bach.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Filters/Bzip2.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Filters/Bzip2.h
Examining data/atlas-cpp-0.6.4/Atlas/Filters/Gzip.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Filters/Gzip.h
Examining data/atlas-cpp-0.6.4/Atlas/Net/Stream.h
Examining data/atlas-cpp-0.6.4/Atlas/Net/Loopback.h
Examining data/atlas-cpp-0.6.4/Atlas/Net/Stream.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Net/Loopback.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/BaseObject.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/SmartPtr.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Encoder.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/objectFactory.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/loadDefaults.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Root.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Decoder.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Dispatcher.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/ObjectsFwd.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootEntity.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Entity.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootOperation.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Operation.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Anonymous.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Generic.h
Examining data/atlas-cpp-0.6.4/Atlas/Objects/BaseObject.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/SmartPtr.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Encoder.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/loadDefaults.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/flag.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Root.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Decoder.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Dispatcher.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/objectFactory.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootEntity.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootEntityChildren.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootOperation.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootOperationChildren1.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootOperationChildren2.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootOperationChildren3.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootOperationChildren4.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/RootOperationChildren5.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Anonymous.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Objects/Generic.cpp
Examining data/atlas-cpp-0.6.4/Atlas/Funky/FEncoder.h
Examining data/atlas-cpp-0.6.4/Atlas/Funky/FEncoder.cpp
Examining data/atlas-cpp-0.6.4/tests/Objects/attributes.cpp
Examining data/atlas-cpp-0.6.4/tests/Objects/custom_ops.cpp
Examining data/atlas-cpp-0.6.4/tests/Objects/decoder1.cpp
Examining data/atlas-cpp-0.6.4/tests/Objects/encoder1.cpp
Examining data/atlas-cpp-0.6.4/tests/Objects/flags.cpp
Examining data/atlas-cpp-0.6.4/tests/Objects/objects2.cpp
Examining data/atlas-cpp-0.6.4/tests/Objects/DebugBridge.h
Examining data/atlas-cpp-0.6.4/tests/Objects/objects_fwd.cpp
Examining data/atlas-cpp-0.6.4/tests/Objects/objects1.cpp
Examining data/atlas-cpp-0.6.4/tests/Codecs/codecs.cpp
Examining data/atlas-cpp-0.6.4/tools/atlas_convert.cpp
Examining data/atlas-cpp-0.6.4/tutorial/example/DebugBridge.h
Examining data/atlas-cpp-0.6.4/tutorial/example/simple_client.cpp
Examining data/atlas-cpp-0.6.4/tutorial/example/simple_server.cpp
Examining data/atlas-cpp-0.6.4/benchmark/Call_Move.cpp
Examining data/atlas-cpp-0.6.4/benchmark/timer.h
Examining data/atlas-cpp-0.6.4/benchmark/Message_Move.cpp
Examining data/atlas-cpp-0.6.4/benchmark/Objects3_Move.cpp
Examining data/atlas-cpp-0.6.4/benchmark/Objects_asMessage.cpp
Examining data/atlas-cpp-0.6.4/benchmark/Objects_iterator.cpp
Examining data/atlas-cpp-0.6.4/benchmark/SmartPtr_Move.cpp
Examining data/atlas-cpp-0.6.4/benchmark/Static_Move.cpp

FINAL RESULTS:

data/atlas-cpp-0.6.4/tests/Objects/decoder1.cpp:45:25:  [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 * srcdir_env = getenv("srcdir");
data/atlas-cpp-0.6.4/tests/Objects/encoder1.cpp:26:25:  [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 * srcdir_env = getenv("srcdir");
data/atlas-cpp-0.6.4/tests/Objects/objects1.cpp:18:25:  [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 * srcdir_env = getenv("srcdir");
data/atlas-cpp-0.6.4/tests/Objects/objects2.cpp:123:25:  [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 * srcdir_env = getenv("srcdir");
data/atlas-cpp-0.6.4/tests/Objects/objects2.cpp:441:25:  [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 * srcdir_env = getenv("srcdir");
data/atlas-cpp-0.6.4/tools/atlas_convert.cpp:121: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.
        int c = getopt(argc, argv, "fs:i:o:");
data/atlas-cpp-0.6.4/Atlas/Codecs/Bach.cpp:164:55:  [2] (integer) atol:
  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).
            m_bridge.mapIntItem(decodeString(m_name), atol(m_data.c_str()));
data/atlas-cpp-0.6.4/Atlas/Codecs/Bach.cpp:170:34:  [2] (integer) atol:
  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).
            m_bridge.listIntItem(atol(m_data.c_str()));
data/atlas-cpp-0.6.4/Atlas/Codecs/Packed.cpp:149:42:  [2] (integer) atol:
  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).
		m_bridge.mapIntItem(hexDecode(m_name), atol(m_data.c_str()));
data/atlas-cpp-0.6.4/Atlas/Codecs/Packed.cpp:154:24:  [2] (integer) atol:
  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).
		m_bridge.listIntItem(atol(m_data.c_str()));
data/atlas-cpp-0.6.4/Atlas/Codecs/Utility.h:28:5:  [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 hex[3];
data/atlas-cpp-0.6.4/Atlas/Codecs/XML.cpp:274:35:  [2] (integer) atol:
  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).
		    m_bridge.mapIntItem(m_name, atol(m_data.top().c_str()));
data/atlas-cpp-0.6.4/Atlas/Codecs/XML.cpp:278:28:  [2] (integer) atol:
  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).
		    m_bridge.listIntItem(atol(m_data.top().c_str()));
data/atlas-cpp-0.6.4/Atlas/Filter.cpp:47:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(m_outBuffer + (m_inPutback - numPutback),
data/atlas-cpp-0.6.4/Atlas/Filter.h:76: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 m_outBuffer[m_outBufferSize];
data/atlas-cpp-0.6.4/Atlas/Filter.h:80: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 m_inBuffer[m_inBufferSize];
data/atlas-cpp-0.6.4/Atlas/Filters/Bzip2.h:25:5:  [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[4096];
data/atlas-cpp-0.6.4/Atlas/Filters/Gzip.h:20:14:  [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.
    unsigned char buf[4096];
data/atlas-cpp-0.6.4/Atlas/Objects/loadDefaults.cpp:47:12:  [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).
    stream.open(filename.c_str(), std::ios::in);
data/atlas-cpp-0.6.4/tests/Objects/objects2.cpp:129:12:  [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).
    stream.open(atlas_xml_path, std::ios::in);
data/atlas-cpp-0.6.4/tools/atlas_convert.cpp:49: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).
    in.open( file_in.c_str(), std::ios::in );
data/atlas-cpp-0.6.4/tools/atlas_convert.cpp:57:9:  [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).
    out.open( file_out.c_str(), std::ios::out );
data/atlas-cpp-0.6.4/tutorial/example/simple_client.cpp:47: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).
      connection.open(argv[1], 6767);
data/atlas-cpp-0.6.4/tutorial/example/simple_client.cpp:49: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).
      connection.open("127.0.0.1", 6767);
data/atlas-cpp-0.6.4/tutorial/example/simple_server.cpp:26:14:  [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).
    listener.open(6767);
data/atlas-cpp-0.6.4/Atlas/Codecs/Utility.cpp:72:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (std::equal(prefix.begin(),prefix.begin() + curFragment.length() + 1,

ANALYSIS SUMMARY:

Hits = 26
Lines analyzed = 17847 in approximately 0.35 seconds (50381 lines/second)
Physical Source Lines of Code (SLOC) = 12182
Hits@level = [0]   3 [1]   1 [2]  19 [3]   6 [4]   0 [5]   0
Hits@level+ = [0+]  29 [1+]  26 [2+]  25 [3+]   6 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.38056 [1+] 2.1343 [2+] 2.05221 [3+] 0.49253 [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.