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/molds-0.3.1/src/Main.cpp
Examining data/molds-0.3.1/src/md/MD.h
Examining data/molds-0.3.1/src/md/MD.cpp
Examining data/molds-0.3.1/src/wrappers/Lapack.h
Examining data/molds-0.3.1/src/wrappers/Lapack.cpp
Examining data/molds-0.3.1/src/wrappers/Blas.h
Examining data/molds-0.3.1/src/wrappers/Blas.cpp
Examining data/molds-0.3.1/src/nasco/NASCO.h
Examining data/molds-0.3.1/src/nasco/NASCO.cpp
Examining data/molds-0.3.1/src/third_parties/rEnumStr/rEnumStr.h
Examining data/molds-0.3.1/src/base/Uncopyable.h
Examining data/molds-0.3.1/src/base/Enums.h
Examining data/molds-0.3.1/src/base/Parameters.cpp
Examining data/molds-0.3.1/src/base/InputParser.h
Examining data/molds-0.3.1/src/base/MallocerFreer.h
Examining data/molds-0.3.1/src/base/Parameters.h
Examining data/molds-0.3.1/src/base/MallocerFreer.cpp
Examining data/molds-0.3.1/src/base/Molecule.cpp
Examining data/molds-0.3.1/src/base/atoms/Liatom.cpp
Examining data/molds-0.3.1/src/base/atoms/Liatom.h
Examining data/molds-0.3.1/src/base/atoms/Hatom.cpp
Examining data/molds-0.3.1/src/base/atoms/Atom.cpp
Examining data/molds-0.3.1/src/base/atoms/Hatom.h
Examining data/molds-0.3.1/src/base/atoms/Catom.h
Examining data/molds-0.3.1/src/base/atoms/Natom.h
Examining data/molds-0.3.1/src/base/atoms/Natom.cpp
Examining data/molds-0.3.1/src/base/atoms/Satom.h
Examining data/molds-0.3.1/src/base/atoms/Oatom.cpp
Examining data/molds-0.3.1/src/base/atoms/Oatom.h
Examining data/molds-0.3.1/src/base/atoms/Catom.cpp
Examining data/molds-0.3.1/src/base/atoms/Atom.h
Examining data/molds-0.3.1/src/base/atoms/Satom.cpp
Examining data/molds-0.3.1/src/base/atoms/mm/EnvironmentalPointCharge.cpp
Examining data/molds-0.3.1/src/base/atoms/mm/EnvironmentalPointCharge.h
Examining data/molds-0.3.1/src/base/EularAngle.h
Examining data/molds-0.3.1/src/base/MathUtilities.cpp
Examining data/molds-0.3.1/src/base/RealSphericalHarmonicsIndex.h
Examining data/molds-0.3.1/src/base/InputParser.cpp
Examining data/molds-0.3.1/src/base/PrintController.h
Examining data/molds-0.3.1/src/base/EularAngle.cpp
Examining data/molds-0.3.1/src/base/GTOExpansionSTO.h
Examining data/molds-0.3.1/src/base/Enums.cpp
Examining data/molds-0.3.1/src/base/Utilities.cpp
Examining data/molds-0.3.1/src/base/MolDSException.h
Examining data/molds-0.3.1/src/base/MolDS.cpp
Examining data/molds-0.3.1/src/base/PrintController.cpp
Examining data/molds-0.3.1/src/base/GTOExpansionSTO.cpp
Examining data/molds-0.3.1/src/base/Molecule.h
Examining data/molds-0.3.1/src/base/loggers/ParticleDensityLogger.cpp
Examining data/molds-0.3.1/src/base/loggers/HoleDensityLogger.cpp
Examining data/molds-0.3.1/src/base/loggers/MOLogger.h
Examining data/molds-0.3.1/src/base/loggers/HoleDensityLogger.h
Examining data/molds-0.3.1/src/base/loggers/ParticleDensityLogger.h
Examining data/molds-0.3.1/src/base/loggers/DensityLogger.h
Examining data/molds-0.3.1/src/base/loggers/DensityLogger.cpp
Examining data/molds-0.3.1/src/base/loggers/MOLogger.cpp
Examining data/molds-0.3.1/src/base/MolDS.h
Examining data/molds-0.3.1/src/base/RealSphericalHarmonicsIndex.cpp
Examining data/molds-0.3.1/src/base/MathUtilities.h
Examining data/molds-0.3.1/src/base/containers/ThreadSafeQueue.h
Examining data/molds-0.3.1/src/base/containers/ThreadSafeQueue.cpp
Examining data/molds-0.3.1/src/base/Utilities.h
Examining data/molds-0.3.1/src/base/factories/OptimizerFactory.cpp
Examining data/molds-0.3.1/src/base/factories/ElectronicStructureFactory.cpp
Examining data/molds-0.3.1/src/base/factories/AtomFactory.h
Examining data/molds-0.3.1/src/base/factories/OptimizerFactory.h
Examining data/molds-0.3.1/src/base/factories/ElectronicStructureFactory.h
Examining data/molds-0.3.1/src/base/factories/AtomFactory.cpp
Examining data/molds-0.3.1/src/base/ElectronicStructure.h
Examining data/molds-0.3.1/src/base/MolDSException.cpp
Examining data/molds-0.3.1/src/rpmd/RPMD.h
Examining data/molds-0.3.1/src/rpmd/RPMD.cpp
Examining data/molds-0.3.1/src/zindo/ZindoS.h
Examining data/molds-0.3.1/src/zindo/ZindoS.cpp
Examining data/molds-0.3.1/src/cndo/Cndo2.cpp
Examining data/molds-0.3.1/src/cndo/ReducedOverlapAOsParameters.h
Examining data/molds-0.3.1/src/cndo/Cndo2.h
Examining data/molds-0.3.1/src/config.h
Examining data/molds-0.3.1/src/pm3/Pm3D.cpp
Examining data/molds-0.3.1/src/pm3/Pm3.h
Examining data/molds-0.3.1/src/pm3/Pm3Pddg.h
Examining data/molds-0.3.1/src/pm3/Pm3D.h
Examining data/molds-0.3.1/src/pm3/Pm3Pddg.cpp
Examining data/molds-0.3.1/src/pm3/Pm3.cpp
Examining data/molds-0.3.1/src/tools/deriveParametersNDDO/deriveParametersNDDO.cpp
Examining data/molds-0.3.1/src/tools/paramYZ/paramYZ.cpp
Examining data/molds-0.3.1/src/mndo/Mndo.cpp
Examining data/molds-0.3.1/src/mndo/Mndo.h
Examining data/molds-0.3.1/src/optimization/ConjugateGradient.h
Examining data/molds-0.3.1/src/optimization/BFGS.h
Examining data/molds-0.3.1/src/optimization/Optimizer.h
Examining data/molds-0.3.1/src/optimization/BFGS.cpp
Examining data/molds-0.3.1/src/optimization/SteepestDescent.h
Examining data/molds-0.3.1/src/optimization/GEDIIS.cpp
Examining data/molds-0.3.1/src/optimization/SteepestDescent.cpp
Examining data/molds-0.3.1/src/optimization/Optimizer.cpp
Examining data/molds-0.3.1/src/optimization/ConjugateGradient.cpp
Examining data/molds-0.3.1/src/optimization/GEDIIS.h
Examining data/molds-0.3.1/src/indo/Indo.h
Examining data/molds-0.3.1/src/indo/Indo.cpp
Examining data/molds-0.3.1/src/am1/Am1.h
Examining data/molds-0.3.1/src/am1/Am1D.cpp
Examining data/molds-0.3.1/src/am1/Am1.cpp
Examining data/molds-0.3.1/src/am1/Am1D.h
Examining data/molds-0.3.1/src/mpi/AsyncCommunicator.cpp
Examining data/molds-0.3.1/src/mpi/MpiProcess.h
Examining data/molds-0.3.1/src/mpi/AsyncCommunicator.h
Examining data/molds-0.3.1/src/mpi/MpiProcess.cpp
Examining data/molds-0.3.1/src/mpi/MpiInt.h
Examining data/molds-0.3.1/src/mc/MC.h
Examining data/molds-0.3.1/src/mc/MC.cpp

FINAL RESULTS:

data/molds-0.3.1/src/base/MolDSException.h:24:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#include<boost/serialization/access.hpp>
data/molds-0.3.1/src/base/MolDSException.h:63:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   friend class boost::serialization::access;
data/molds-0.3.1/src/base/MolDS.cpp:31:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#include<boost/random.hpp>
data/molds-0.3.1/src/mc/MC.cpp:28:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#include<boost/random.hpp>
data/molds-0.3.1/src/mc/MC.cpp:207:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      if(p>random){
data/molds-0.3.1/src/nasco/NASCO.cpp:28:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#include<boost/random.hpp>
data/molds-0.3.1/src/rpmd/RPMD.cpp:28:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#include<boost/random.hpp>
data/molds-0.3.1/src/base/InputParser.cpp:523:57:  [2] (integer) atoi:
  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).
         Parameters::GetInstance()->SetMaxIterationsSCF(atoi((*inputTerms)[parseIndex+1].c_str()));
data/molds-0.3.1/src/base/InputParser.cpp:543:60:  [2] (integer) atoi:
  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).
         Parameters::GetInstance()->SetDiisNumErrorVectSCF(atoi((*inputTerms)[parseIndex+1].c_str()));
data/molds-0.3.1/src/base/InputParser.cpp:688:24:  [2] (integer) atoi:
  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).
         int moIndex = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:727:26:  [2] (integer) atoi:
  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).
         int elecIndex = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:766:26:  [2] (integer) atoi:
  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).
         int elecIndex = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:787:29:  [2] (integer) atoi:
  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).
         int activeOccCIS = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:793:29:  [2] (integer) atoi:
  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).
         int activeVirCIS = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:799:24:  [2] (integer) atoi:
  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).
         int nStates = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:815:24:  [2] (integer) atoi:
  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).
         int maxIter = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:821:23:  [2] (integer) atoi:
  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).
         int maxDim = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:833:30:  [2] (integer) atoi:
  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).
         int numPrintCoeff = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:860:31:  [2] (integer) atoi:
  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).
         int elecStateIndex = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:887:27:  [2] (integer) atoi:
  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).
         int totalSteps = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:893:31:  [2] (integer) atoi:
  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).
         int elecStateIndex = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:911:31:  [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).
         unsigned long seed = atol((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:926:27:  [2] (integer) atoi:
  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).
         int totalSteps = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:932:31:  [2] (integer) atoi:
  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).
         int elecStateIndex = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:953:27:  [2] (integer) atoi:
  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).
         int totalSteps = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:959:31:  [2] (integer) atoi:
  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).
         int elecStateIndex = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:965:30:  [2] (integer) atoi:
  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).
         int numElecStates = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:983:25:  [2] (integer) atoi:
  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).
         int numBeads = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:989:31:  [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).
         unsigned long seed = atol((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:1004:27:  [2] (integer) atoi:
  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).
         int totalSteps = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:1010:30:  [2] (integer) atoi:
  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).
         int numElecStates = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:1016:30:  [2] (integer) atoi:
  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).
         int initElecState = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:1028:31:  [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).
         unsigned long seed = atol((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:1061:27:  [2] (integer) atoi:
  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).
         int totalSteps = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:1067:31:  [2] (integer) atoi:
  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).
         int elecStateIndex = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/InputParser.cpp:1112:26:  [2] (integer) atoi:
  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).
         int elecIndex = atoi((*inputTerms)[parseIndex+1].c_str());
data/molds-0.3.1/src/base/loggers/DensityLogger.cpp:280:4:  [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 data[1000] = "";
data/molds-0.3.1/src/base/loggers/DensityLogger.cpp:284:4:  [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(data,"\t%d\t%e\t%e\t%e\n", this->molecule->GetNumberAtoms(),
data/molds-0.3.1/src/base/loggers/DensityLogger.cpp:290:4:  [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(data,"\t%d\t%e\t%e\t%e\n", gridNumber[XAxis], dx, 0.0, 0.0);
data/molds-0.3.1/src/base/loggers/DensityLogger.cpp:293:4:  [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(data,"\t%d\t%e\t%e\t%e\n", gridNumber[YAxis], 0.0, dy, 0.0);
data/molds-0.3.1/src/base/loggers/DensityLogger.cpp:296:4:  [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(data,"\t%d\t%e\t%e\t%e\n", gridNumber[ZAxis], 0.0, 0.0, dz);
data/molds-0.3.1/src/base/loggers/DensityLogger.cpp:301:4:  [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 data[1000] = "";
data/molds-0.3.1/src/base/loggers/DensityLogger.cpp:306: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(data,"\t%d\t%d\t%e\t%e\t%e\n", atomA.GetAtomType()+1, 
data/molds-0.3.1/src/base/loggers/MOLogger.cpp:164:4:  [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 data[1000] = "";
data/molds-0.3.1/src/base/loggers/MOLogger.cpp:168:4:  [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(data,"\t%d\t%e\t%e\t%e\n", this->molecule->GetNumberAtoms(),
data/molds-0.3.1/src/base/loggers/MOLogger.cpp:174:4:  [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(data,"\t%d\t%e\t%e\t%e\n", gridNumber[XAxis], dx, 0.0, 0.0);
data/molds-0.3.1/src/base/loggers/MOLogger.cpp:177:4:  [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(data,"\t%d\t%e\t%e\t%e\n", gridNumber[YAxis], 0.0, dy, 0.0);
data/molds-0.3.1/src/base/loggers/MOLogger.cpp:180:4:  [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(data,"\t%d\t%e\t%e\t%e\n", gridNumber[ZAxis], 0.0, 0.0, dz);
data/molds-0.3.1/src/base/loggers/MOLogger.cpp:185:4:  [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 data[1000] = "";
data/molds-0.3.1/src/base/loggers/MOLogger.cpp:190: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(data,"\t%d\t%d\t%e\t%e\t%e\n", atomA->GetAtomType()+1, 

ANALYSIS SUMMARY:

Hits = 50
Lines analyzed = 59309 in approximately 1.39 seconds (42747 lines/second)
Physical Source Lines of Code (SLOC) = 52072
Hits@level = [0]  20 [1]   0 [2]  43 [3]   5 [4]   2 [5]   0
Hits@level+ = [0+]  70 [1+]  50 [2+]  50 [3+]   7 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 1.34429 [1+] 0.960209 [2+] 0.960209 [3+] 0.134429 [4+] 0.0384084 [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.