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/votca-xtp-1.6.2/include/votca/xtp/ERIs.h Examining data/votca-xtp-1.6.2/include/votca/xtp/IndexParser.h Examining data/votca-xtp-1.6.2/include/votca/xtp/adiis.h Examining data/votca-xtp-1.6.2/include/votca/xtp/adiis_costfunction.h Examining data/votca-xtp-1.6.2/include/votca/xtp/amplitude_integration.h Examining data/votca-xtp-1.6.2/include/votca/xtp/aobasis.h Examining data/votca-xtp-1.6.2/include/votca/xtp/aomatrix.h Examining data/votca-xtp-1.6.2/include/votca/xtp/aomatrix3d.h Examining data/votca-xtp-1.6.2/include/votca/xtp/aopotential.h Examining data/votca-xtp-1.6.2/include/votca/xtp/aoshell.h Examining data/votca-xtp-1.6.2/include/votca/xtp/aotransform.h Examining data/votca-xtp-1.6.2/include/votca/xtp/atom.h Examining data/votca-xtp-1.6.2/include/votca/xtp/atomcontainer.h Examining data/votca-xtp-1.6.2/include/votca/xtp/basisset.h Examining data/votca-xtp-1.6.2/include/votca/xtp/bfgs-trm.h Examining data/votca-xtp-1.6.2/include/votca/xtp/bse.h Examining data/votca-xtp-1.6.2/include/votca/xtp/bse_operator.h Examining data/votca-xtp-1.6.2/include/votca/xtp/bse_population.h Examining data/votca-xtp-1.6.2/include/votca/xtp/bsecoupling.h Examining data/votca-xtp-1.6.2/include/votca/xtp/bseoperator_btda.h Examining data/votca-xtp-1.6.2/include/votca/xtp/calculatorfactory.h Examining data/votca-xtp-1.6.2/include/votca/xtp/chargecarrier.h Examining data/votca-xtp-1.6.2/include/votca/xtp/checkpoint.h Examining data/votca-xtp-1.6.2/include/votca/xtp/checkpoint_utils.h Examining data/votca-xtp-1.6.2/include/votca/xtp/checkpointreader.h Examining data/votca-xtp-1.6.2/include/votca/xtp/checkpointtable.h Examining data/votca-xtp-1.6.2/include/votca/xtp/checkpointwriter.h Examining data/votca-xtp-1.6.2/include/votca/xtp/classicalsegment.h Examining data/votca-xtp-1.6.2/include/votca/xtp/convergenceacc.h Examining data/votca-xtp-1.6.2/include/votca/xtp/couplingbase.h Examining data/votca-xtp-1.6.2/include/votca/xtp/cubefile_writer.h Examining data/votca-xtp-1.6.2/include/votca/xtp/cudamatrix.h Examining data/votca-xtp-1.6.2/include/votca/xtp/cudapipeline.h Examining data/votca-xtp-1.6.2/include/votca/xtp/davidsonsolver.h Examining data/votca-xtp-1.6.2/include/votca/xtp/density_integration.h Examining data/votca-xtp-1.6.2/include/votca/xtp/dftcoupling.h Examining data/votca-xtp-1.6.2/include/votca/xtp/dftengine.h Examining data/votca-xtp-1.6.2/include/votca/xtp/diis.h Examining data/votca-xtp-1.6.2/include/votca/xtp/dipoledipoleinteraction.h Examining data/votca-xtp-1.6.2/include/votca/xtp/ecpaobasis.h Examining data/votca-xtp-1.6.2/include/votca/xtp/ecpaoshell.h Examining data/votca-xtp-1.6.2/include/votca/xtp/ecpbasisset.h Examining data/votca-xtp-1.6.2/include/votca/xtp/eeinteractor.h Examining data/votca-xtp-1.6.2/include/votca/xtp/eigen.h Examining data/votca-xtp-1.6.2/include/votca/xtp/energy_costfunction.h Examining data/votca-xtp-1.6.2/include/votca/xtp/energy_terms.h Examining data/votca-xtp-1.6.2/include/votca/xtp/esp2multipole.h Examining data/votca-xtp-1.6.2/include/votca/xtp/espfit.h Examining data/votca-xtp-1.6.2/include/votca/xtp/extractorfactory.h Examining data/votca-xtp-1.6.2/include/votca/xtp/filterfactory.h Examining data/votca-xtp-1.6.2/include/votca/xtp/forces.h Examining data/votca-xtp-1.6.2/include/votca/xtp/fourcenter.h Examining data/votca-xtp-1.6.2/include/votca/xtp/geometry_optimization.h Examining data/votca-xtp-1.6.2/include/votca/xtp/glink.h Examining data/votca-xtp-1.6.2/include/votca/xtp/gnode.h Examining data/votca-xtp-1.6.2/include/votca/xtp/grid.h Examining data/votca-xtp-1.6.2/include/votca/xtp/grid_containers.h Examining data/votca-xtp-1.6.2/include/votca/xtp/gridbox.h Examining data/votca-xtp-1.6.2/include/votca/xtp/gw.h Examining data/votca-xtp-1.6.2/include/votca/xtp/gwbse.h Examining data/votca-xtp-1.6.2/include/votca/xtp/gwbseengine.h Examining data/votca-xtp-1.6.2/include/votca/xtp/gyration.h Examining data/votca-xtp-1.6.2/include/votca/xtp/hist.h Examining data/votca-xtp-1.6.2/include/votca/xtp/huffmantree.h Examining data/votca-xtp-1.6.2/include/votca/xtp/job.h Examining data/votca-xtp-1.6.2/include/votca/xtp/jobapplication.h Examining data/votca-xtp-1.6.2/include/votca/xtp/jobcalculator.h Examining data/votca-xtp-1.6.2/include/votca/xtp/jobcalculatorfactory.h Examining data/votca-xtp-1.6.2/include/votca/xtp/jobtopology.h Examining data/votca-xtp-1.6.2/include/votca/xtp/kmccalculator.h Examining data/votca-xtp-1.6.2/include/votca/xtp/logger.h Examining data/votca-xtp-1.6.2/include/votca/xtp/matrixfreeoperator.h Examining data/votca-xtp-1.6.2/include/votca/xtp/md2qmengine.h Examining data/votca-xtp-1.6.2/include/votca/xtp/mmregion.h Examining data/votca-xtp-1.6.2/include/votca/xtp/nbo.h Examining data/votca-xtp-1.6.2/include/votca/xtp/newton_rapson.h Examining data/votca-xtp-1.6.2/include/votca/xtp/optimiser_costfunction.h Examining data/votca-xtp-1.6.2/include/votca/xtp/orbitals.h Examining data/votca-xtp-1.6.2/include/votca/xtp/paircalculator.h Examining data/votca-xtp-1.6.2/include/votca/xtp/parallelxjobcalc.h Examining data/votca-xtp-1.6.2/include/votca/xtp/polarregion.h Examining data/votca-xtp-1.6.2/include/votca/xtp/polarsite.h Examining data/votca-xtp-1.6.2/include/votca/xtp/populationanalysis.h Examining data/votca-xtp-1.6.2/include/votca/xtp/ppm.h Examining data/votca-xtp-1.6.2/include/votca/xtp/progressobserver.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmatom.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmcalculator.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmfragment.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmmolecule.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmnblist.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmpackage.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmpackagefactory.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmpair.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmregion.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmstate.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmthread.h Examining data/votca-xtp-1.6.2/include/votca/xtp/qmtool.h Examining data/votca-xtp-1.6.2/include/votca/xtp/radial_euler_maclaurin_rule.h Examining data/votca-xtp-1.6.2/include/votca/xtp/rate_engine.h Examining data/votca-xtp-1.6.2/include/votca/xtp/region.h Examining data/votca-xtp-1.6.2/include/votca/xtp/regular_grid.h Examining data/votca-xtp-1.6.2/include/votca/xtp/rpa.h Examining data/votca-xtp-1.6.2/include/votca/xtp/segid.h Examining data/votca-xtp-1.6.2/include/votca/xtp/segment.h Examining data/votca-xtp-1.6.2/include/votca/xtp/segmentmapper.h Examining data/votca-xtp-1.6.2/include/votca/xtp/sigma_base.h Examining data/votca-xtp-1.6.2/include/votca/xtp/sigma_exact.h Examining data/votca-xtp-1.6.2/include/votca/xtp/sigma_ppm.h Examining data/votca-xtp-1.6.2/include/votca/xtp/sphere_lebedev_rule.h Examining data/votca-xtp-1.6.2/include/votca/xtp/stateapplication.h Examining data/votca-xtp-1.6.2/include/votca/xtp/statefilter_base.h Examining data/votca-xtp-1.6.2/include/votca/xtp/statesaver.h Examining data/votca-xtp-1.6.2/include/votca/xtp/statetracker.h Examining data/votca-xtp-1.6.2/include/votca/xtp/staticregion.h Examining data/votca-xtp-1.6.2/include/votca/xtp/staticsite.h Examining data/votca-xtp-1.6.2/include/votca/xtp/symmetric_matrix.h Examining data/votca-xtp-1.6.2/include/votca/xtp/threecenter.h Examining data/votca-xtp-1.6.2/include/votca/xtp/toolfactory.h Examining data/votca-xtp-1.6.2/include/votca/xtp/topology.h Examining data/votca-xtp-1.6.2/include/votca/xtp/trustregion.h Examining data/votca-xtp-1.6.2/include/votca/xtp/vc2index.h Examining data/votca-xtp-1.6.2/include/votca/xtp/version.h Examining data/votca-xtp-1.6.2/include/votca/xtp/vxc_functionals.h Examining data/votca-xtp-1.6.2/include/votca/xtp/vxc_grid.h Examining data/votca-xtp-1.6.2/include/votca/xtp/vxc_potential.h Examining data/votca-xtp-1.6.2/include/votca/xtp/xtpapplication.h Examining data/votca-xtp-1.6.2/src/libxtp/IndexParser.cc Examining data/votca-xtp-1.6.2/src/libxtp/aobasis.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aocoulomb.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aodipole.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aoecp.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aokinetic.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aomatrix.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aomatrix3d.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aomomentum.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aomultipole.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aooverlap.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aoplanewave.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aopotential.cc Examining data/votca-xtp-1.6.2/src/libxtp/aomatrices/aotransform.cc Examining data/votca-xtp-1.6.2/src/libxtp/aoshell.cc Examining data/votca-xtp-1.6.2/src/libxtp/atom.cc Examining data/votca-xtp-1.6.2/src/libxtp/basisset.cc Examining data/votca-xtp-1.6.2/src/libxtp/bfgs-trm.cc Examining data/votca-xtp-1.6.2/src/libxtp/bsecoupling.cc Examining data/votca-xtp-1.6.2/src/libxtp/calculators/eanalyze.cc Examining data/votca-xtp-1.6.2/src/libxtp/calculators/eanalyze.h Examining data/votca-xtp-1.6.2/src/libxtp/calculators/einternal.cc Examining data/votca-xtp-1.6.2/src/libxtp/calculators/einternal.h Examining data/votca-xtp-1.6.2/src/libxtp/calculators/ianalyze.cc Examining data/votca-xtp-1.6.2/src/libxtp/calculators/ianalyze.h Examining data/votca-xtp-1.6.2/src/libxtp/calculators/kmclifetime.cc Examining data/votca-xtp-1.6.2/src/libxtp/calculators/kmclifetime.h Examining data/votca-xtp-1.6.2/src/libxtp/calculators/kmcmultiple.cc Examining data/votca-xtp-1.6.2/src/libxtp/calculators/kmcmultiple.h Examining data/votca-xtp-1.6.2/src/libxtp/calculators/mapchecker.h Examining data/votca-xtp-1.6.2/src/libxtp/calculators/neighborlist.cc Examining data/votca-xtp-1.6.2/src/libxtp/calculators/neighborlist.h Examining data/votca-xtp-1.6.2/src/libxtp/calculators/vaverage.cc Examining data/votca-xtp-1.6.2/src/libxtp/calculators/vaverage.h Examining data/votca-xtp-1.6.2/src/libxtp/checkpoint.cc Examining data/votca-xtp-1.6.2/src/libxtp/classicalsegment.cc Examining data/votca-xtp-1.6.2/src/libxtp/couplingbase.cc Examining data/votca-xtp-1.6.2/src/libxtp/cubefile_writer.cc Examining data/votca-xtp-1.6.2/src/libxtp/cudamatrix.cc Examining data/votca-xtp-1.6.2/src/libxtp/cudapipeline.cc Examining data/votca-xtp-1.6.2/src/libxtp/davidsonsolver.cc Examining data/votca-xtp-1.6.2/src/libxtp/dftcoupling.cc Examining data/votca-xtp-1.6.2/src/libxtp/dftengine/ERIs.cc Examining data/votca-xtp-1.6.2/src/libxtp/dftengine/adiis.cc Examining data/votca-xtp-1.6.2/src/libxtp/dftengine/convergenceacc.cc Examining data/votca-xtp-1.6.2/src/libxtp/dftengine/dftengine.cc Examining data/votca-xtp-1.6.2/src/libxtp/dftengine/diis.cc Examining data/votca-xtp-1.6.2/src/libxtp/ecpaobasis.cc Examining data/votca-xtp-1.6.2/src/libxtp/ecpaoshell.cc Examining data/votca-xtp-1.6.2/src/libxtp/ecpbasisset.cc Examining data/votca-xtp-1.6.2/src/libxtp/eeinteractor.cc Examining data/votca-xtp-1.6.2/src/libxtp/energy_costfunction.cc Examining data/votca-xtp-1.6.2/src/libxtp/esp2multipole.cc Examining data/votca-xtp-1.6.2/src/libxtp/espfit.cc Examining data/votca-xtp-1.6.2/src/libxtp/factories/calculatorfactory.cc Examining data/votca-xtp-1.6.2/src/libxtp/factories/extractorfactory.cc Examining data/votca-xtp-1.6.2/src/libxtp/factories/filterfactory.cc Examining data/votca-xtp-1.6.2/src/libxtp/factories/jobcalculatorfactory.cc Examining data/votca-xtp-1.6.2/src/libxtp/factories/qmpackagefactory.cc Examining data/votca-xtp-1.6.2/src/libxtp/factories/toolfactory.cc Examining data/votca-xtp-1.6.2/src/libxtp/forces.cc Examining data/votca-xtp-1.6.2/src/libxtp/fourcenter.cc Examining data/votca-xtp-1.6.2/src/libxtp/fourcenter_rep.cc Examining data/votca-xtp-1.6.2/src/libxtp/geometry_optimization.cc Examining data/votca-xtp-1.6.2/src/libxtp/gnode.cc Examining data/votca-xtp-1.6.2/src/libxtp/grids/grid.cc Examining data/votca-xtp-1.6.2/src/libxtp/grids/gridbox.cc Examining data/votca-xtp-1.6.2/src/libxtp/grids/radial_euler_maclaurin_rule.cc Examining data/votca-xtp-1.6.2/src/libxtp/grids/regular_grid.cc Examining data/votca-xtp-1.6.2/src/libxtp/grids/sphere_lebedev_rule.cc Examining data/votca-xtp-1.6.2/src/libxtp/grids/vxc_grid.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/bse.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/bse_operator.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/gw.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/gwbse.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/gwbseengine.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/ppm.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/rpa.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/sigma_base.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/sigma_exact.cc Examining data/votca-xtp-1.6.2/src/libxtp/gwbse/sigma_ppm.cc Examining data/votca-xtp-1.6.2/src/libxtp/gyration.cc Examining data/votca-xtp-1.6.2/src/libxtp/job.cc Examining data/votca-xtp-1.6.2/src/libxtp/jobapplication.cc Examining data/votca-xtp-1.6.2/src/libxtp/jobcalculators/eqm.cc Examining data/votca-xtp-1.6.2/src/libxtp/jobcalculators/eqm.h Examining data/votca-xtp-1.6.2/src/libxtp/jobcalculators/iexcitoncl.cc Examining data/votca-xtp-1.6.2/src/libxtp/jobcalculators/iexcitoncl.h Examining data/votca-xtp-1.6.2/src/libxtp/jobcalculators/iqm.cc Examining data/votca-xtp-1.6.2/src/libxtp/jobcalculators/iqm.h Examining data/votca-xtp-1.6.2/src/libxtp/jobcalculators/qmmm.cc Examining data/votca-xtp-1.6.2/src/libxtp/jobcalculators/qmmm.h Examining data/votca-xtp-1.6.2/src/libxtp/jobtopology.cc Examining data/votca-xtp-1.6.2/src/libxtp/kmccalculator.cc Examining data/votca-xtp-1.6.2/src/libxtp/matrixfreeoperator.cc Examining data/votca-xtp-1.6.2/src/libxtp/md2qmengine.cc Examining data/votca-xtp-1.6.2/src/libxtp/mmregion.cc Examining data/votca-xtp-1.6.2/src/libxtp/nbo.cc Examining data/votca-xtp-1.6.2/src/libxtp/numerical_integration/amplitude_integration.cc Examining data/votca-xtp-1.6.2/src/libxtp/numerical_integration/density_integration.cc Examining data/votca-xtp-1.6.2/src/libxtp/numerical_integration/vxc_potential.cc Examining data/votca-xtp-1.6.2/src/libxtp/orbitals.cc Examining data/votca-xtp-1.6.2/src/libxtp/parallelxjobcalc.cc Examining data/votca-xtp-1.6.2/src/libxtp/polarregion.cc Examining data/votca-xtp-1.6.2/src/libxtp/polarsite.cc Examining data/votca-xtp-1.6.2/src/libxtp/populationanalysis.cc Examining data/votca-xtp-1.6.2/src/libxtp/progressobserver.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmatom.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmmolecule.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmnblist.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmpackage.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmpackages/gaussian.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmpackages/gaussian.h Examining data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.h Examining data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.h Examining data/votca-xtp-1.6.2/src/libxtp/qmpackages/xtpdft.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmpackages/xtpdft.h Examining data/votca-xtp-1.6.2/src/libxtp/qmpair.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmregion.cc Examining data/votca-xtp-1.6.2/src/libxtp/qmstate.cc Examining data/votca-xtp-1.6.2/src/libxtp/rate_engine.cc Examining data/votca-xtp-1.6.2/src/libxtp/region.cc Examining data/votca-xtp-1.6.2/src/libxtp/segment.cc Examining data/votca-xtp-1.6.2/src/libxtp/segmentmapper.cc Examining data/votca-xtp-1.6.2/src/libxtp/stateapplication.cc Examining data/votca-xtp-1.6.2/src/libxtp/statefilter_base.cc Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/DeltaQ_filter.cc Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/DeltaQ_filter.h Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/Density_filter.cc Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/Density_filter.h Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/Localisation_filter.cc Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/Localisation_filter.h Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/OscillatorStrength_filter.cc Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/OscillatorStrength_filter.h Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/Overlap_filter.cc Examining data/votca-xtp-1.6.2/src/libxtp/statefilters/Overlap_filter.h Examining data/votca-xtp-1.6.2/src/libxtp/statesaver.cc Examining data/votca-xtp-1.6.2/src/libxtp/statetracker.cc Examining data/votca-xtp-1.6.2/src/libxtp/staticsite.cc Examining data/votca-xtp-1.6.2/src/libxtp/symmetric_matrix.cc Examining data/votca-xtp-1.6.2/src/libxtp/threecenter_dft.cc Examining data/votca-xtp-1.6.2/src/libxtp/threecenter_gwbse.cc Examining data/votca-xtp-1.6.2/src/libxtp/threecenter_rep.cc Examining data/votca-xtp-1.6.2/src/libxtp/tools/apdft.cc Examining data/votca-xtp-1.6.2/src/libxtp/tools/apdft.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/coupling.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/densityanalysis.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/dftgwbse.cc Examining data/votca-xtp-1.6.2/src/libxtp/tools/dftgwbse.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/excitoncoupling.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/gencube.cc Examining data/votca-xtp-1.6.2/src/libxtp/tools/gencube.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/log2mps.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/molpol.cc Examining data/votca-xtp-1.6.2/src/libxtp/tools/molpol.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/partialcharges.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/qmsandbox.h Examining data/votca-xtp-1.6.2/src/libxtp/tools/spectrum.cc Examining data/votca-xtp-1.6.2/src/libxtp/tools/spectrum.h Examining data/votca-xtp-1.6.2/src/libxtp/topology.cc Examining data/votca-xtp-1.6.2/src/libxtp/trustregion.cc Examining data/votca-xtp-1.6.2/src/libxtp/version.cc Examining data/votca-xtp-1.6.2/src/libxtp/xtpapplication.cc Examining data/votca-xtp-1.6.2/src/tests/test_DeltaQ_filter.cc Examining data/votca-xtp-1.6.2/src/tests/test_adiis.cc Examining data/votca-xtp-1.6.2/src/tests/test_aobasis.cc Examining data/votca-xtp-1.6.2/src/tests/test_aomatrix.cc Examining data/votca-xtp-1.6.2/src/tests/test_aomatrix3d.cc Examining data/votca-xtp-1.6.2/src/tests/test_aopotential.cc Examining data/votca-xtp-1.6.2/src/tests/test_aoshell.cc Examining data/votca-xtp-1.6.2/src/tests/test_aotransform.cc Examining data/votca-xtp-1.6.2/src/tests/test_atom.cc Examining data/votca-xtp-1.6.2/src/tests/test_basisset.cc Examining data/votca-xtp-1.6.2/src/tests/test_bfgs-trm.cc Examining data/votca-xtp-1.6.2/src/tests/test_bse.cc Examining data/votca-xtp-1.6.2/src/tests/test_bse_operator.cc Examining data/votca-xtp-1.6.2/src/tests/test_bsecoupling.cc Examining data/votca-xtp-1.6.2/src/tests/test_convergenceacc.cc Examining data/votca-xtp-1.6.2/src/tests/test_cubefile_writer.cc Examining data/votca-xtp-1.6.2/src/tests/test_cudamatrix.cc Examining data/votca-xtp-1.6.2/src/tests/test_cudapipeline.cc Examining data/votca-xtp-1.6.2/src/tests/test_davidson.cc Examining data/votca-xtp-1.6.2/src/tests/test_density_filter.cc Examining data/votca-xtp-1.6.2/src/tests/test_densityintegration.cc Examining data/votca-xtp-1.6.2/src/tests/test_dftcoupling.cc Examining data/votca-xtp-1.6.2/src/tests/test_dftengine.cc Examining data/votca-xtp-1.6.2/src/tests/test_diis.cc Examining data/votca-xtp-1.6.2/src/tests/test_dipoledipoleinteraction.cc Examining data/votca-xtp-1.6.2/src/tests/test_eeinteractor.cc Examining data/votca-xtp-1.6.2/src/tests/test_eigen.cc Examining data/votca-xtp-1.6.2/src/tests/test_eris.cc Examining data/votca-xtp-1.6.2/src/tests/test_espfit.cc Examining data/votca-xtp-1.6.2/src/tests/test_fourcenter.cc Examining data/votca-xtp-1.6.2/src/tests/test_gaussian.cc Examining data/votca-xtp-1.6.2/src/tests/test_glink.cc Examining data/votca-xtp-1.6.2/src/tests/test_gnode.cc Examining data/votca-xtp-1.6.2/src/tests/test_grid.cc Examining data/votca-xtp-1.6.2/src/tests/test_gw.cc Examining data/votca-xtp-1.6.2/src/tests/test_hdf5.cc Examining data/votca-xtp-1.6.2/src/tests/test_hist.cc Examining data/votca-xtp-1.6.2/src/tests/test_indexparser.cc Examining data/votca-xtp-1.6.2/src/tests/test_interaction.cc Examining data/votca-xtp-1.6.2/src/tests/test_jobtopology.cc Examining data/votca-xtp-1.6.2/src/tests/test_localisation_filter.cc Examining data/votca-xtp-1.6.2/src/tests/test_newton_rapson.cc Examining data/votca-xtp-1.6.2/src/tests/test_nwchem.cc Examining data/votca-xtp-1.6.2/src/tests/test_orbitals.cc Examining data/votca-xtp-1.6.2/src/tests/test_orca.cc Examining data/votca-xtp-1.6.2/src/tests/test_oscillatorstrength_filter.cc Examining data/votca-xtp-1.6.2/src/tests/test_overlap_filter.cc Examining data/votca-xtp-1.6.2/src/tests/test_polarsegment.cc Examining data/votca-xtp-1.6.2/src/tests/test_polarsite.cc Examining data/votca-xtp-1.6.2/src/tests/test_populationanalysis.cc Examining data/votca-xtp-1.6.2/src/tests/test_ppm.cc Examining data/votca-xtp-1.6.2/src/tests/test_qmatom.cc Examining data/votca-xtp-1.6.2/src/tests/test_qmfragment.cc Examining data/votca-xtp-1.6.2/src/tests/test_qmmolecule.cc Examining data/votca-xtp-1.6.2/src/tests/test_qmnblist.cc Examining data/votca-xtp-1.6.2/src/tests/test_qmpair.cc Examining data/votca-xtp-1.6.2/src/tests/test_qmstate.cc Examining data/votca-xtp-1.6.2/src/tests/test_radial_euler_maclaurin_rule.cc Examining data/votca-xtp-1.6.2/src/tests/test_rate_engine.cc Examining data/votca-xtp-1.6.2/src/tests/test_regular_grid.cc Examining data/votca-xtp-1.6.2/src/tests/test_rpa.cc Examining data/votca-xtp-1.6.2/src/tests/test_rpa_h2p.cc Examining data/votca-xtp-1.6.2/src/tests/test_segment.cc Examining data/votca-xtp-1.6.2/src/tests/test_segmentmapper.cc Examining data/votca-xtp-1.6.2/src/tests/test_sigma_exact.cc Examining data/votca-xtp-1.6.2/src/tests/test_sigma_ppm.cc Examining data/votca-xtp-1.6.2/src/tests/test_sphere_lebedev_rule.cc Examining data/votca-xtp-1.6.2/src/tests/test_sphere_lebedev_rule_fine.cc Examining data/votca-xtp-1.6.2/src/tests/test_sphere_lebedev_rule_xfine.cc Examining data/votca-xtp-1.6.2/src/tests/test_statetracker.cc Examining data/votca-xtp-1.6.2/src/tests/test_staticsite.cc Examining data/votca-xtp-1.6.2/src/tests/test_symmetric_matrix.cc Examining data/votca-xtp-1.6.2/src/tests/test_threecenter_dft.cc Examining data/votca-xtp-1.6.2/src/tests/test_threecenter_gwbse.cc Examining data/votca-xtp-1.6.2/src/tests/test_topology.cc Examining data/votca-xtp-1.6.2/src/tests/test_trustregion.cc Examining data/votca-xtp-1.6.2/src/tests/test_vc2index.cc Examining data/votca-xtp-1.6.2/src/tests/test_vxc_grid.cc Examining data/votca-xtp-1.6.2/src/tests/test_vxc_potential.cc Examining data/votca-xtp-1.6.2/src/tools/xtp_dump.cc Examining data/votca-xtp-1.6.2/src/tools/xtp_map.cc Examining data/votca-xtp-1.6.2/src/tools/xtp_parallel.cc Examining data/votca-xtp-1.6.2/src/tools/xtp_run.cc Examining data/votca-xtp-1.6.2/src/tools/xtp_tools.cc FINAL RESULTS: data/votca-xtp-1.6.2/include/votca/xtp/checkpoint.h:41:62: [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. CheckpointFile(std::string fileName, CheckpointAccessLevel access); data/votca-xtp-1.6.2/src/libxtp/checkpoint.cc:61:70: [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. CheckpointFile::CheckpointFile(std::string fN, CheckpointAccessLevel access) data/votca-xtp-1.6.2/src/libxtp/checkpoint.cc:62:35: [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. : _fileName(fN), _accessLevel(access) { data/votca-xtp-1.6.2/src/libxtp/qmpackages/gaussian.cc:427:12: [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. if (std::system(nullptr)) { data/votca-xtp-1.6.2/src/libxtp/qmpackages/gaussian.cc:439:24: [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. Index check = std::system(command.c_str()); data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.cc:169:18: [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. Index i = std::system(command.c_str()); data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.cc:299:12: [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. if (std::system(nullptr)) { data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.cc:310:24: [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. Index check = std::system(command.c_str()); data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.cc:326:22: [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. Index i = std::system(command2.c_str()); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:322:12: [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. if (std::system(nullptr)) { data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:325:24: [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. Index check = std::system(command.c_str()); data/votca-xtp-1.6.2/src/libxtp/qmpair.cc:88:3: [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(d.pair_type, ptype.c_str()); data/votca-xtp-1.6.2/src/libxtp/basisset.cc:254: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* votca_share = getenv("VOTCASHARE"); data/votca-xtp-1.6.2/src/libxtp/basisset.cc:258:27: [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. xmlFile = std::string(getenv("VOTCASHARE")) + data/votca-xtp-1.6.2/src/libxtp/ecpbasisset.cc:36: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* votca_share = getenv("VOTCASHARE"); data/votca-xtp-1.6.2/src/libxtp/ecpbasisset.cc:40:27: [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. xmlFile = std::string(getenv("VOTCASHARE")) + std::string("/xtp/ecps/") + data/votca-xtp-1.6.2/src/libxtp/tools/excitoncoupling.h:84:23: [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* votca_share = getenv("VOTCASHARE"); data/votca-xtp-1.6.2/include/votca/xtp/convergenceacc.h:34:25: [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). enum KSmode { closed, open, fractional }; data/votca-xtp-1.6.2/include/votca/xtp/convergenceacc.h:56:37: [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). } else if (_opt.mode == KSmode::open) { data/votca-xtp-1.6.2/src/libxtp/calculators/eanalyze.cc:185: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(filename2); data/votca-xtp-1.6.2/src/libxtp/calculators/eanalyze.cc:217:7: [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(filenamelist); data/votca-xtp-1.6.2/src/libxtp/calculators/kmclifetime.cc:96: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). probs.open(filename, fstream::out); data/votca-xtp-1.6.2/src/libxtp/calculators/kmclifetime.cc:179: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). traj.open(_trajectoryfile, fstream::out); data/votca-xtp-1.6.2/src/libxtp/calculators/kmclifetime.cc:190:16: [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). energyfile.open(_energy_outputfile, fstream::out); data/votca-xtp-1.6.2/src/libxtp/calculators/kmcmultiple.cc:258:10: [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). traj.open(_trajectoryfile, std::fstream::out); data/votca-xtp-1.6.2/src/libxtp/calculators/kmcmultiple.cc:274: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). tfile.open(_timefile, std::fstream::out); data/votca-xtp-1.6.2/src/libxtp/calculators/vaverage.cc:39: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). intt.open(filename); data/votca-xtp-1.6.2/src/libxtp/calculators/vaverage.cc:72: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). intt.open(filename); data/votca-xtp-1.6.2/src/libxtp/calculators/vaverage.cc:141:7: [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). ofs.open(_outputfile, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/classicalsegment.cc:37: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). intt.open(filename); data/votca-xtp-1.6.2/src/libxtp/classicalsegment.cc:167:7: [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). ofs.open(filename, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/dftengine/convergenceacc.cc:203:35: [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). } else if (_opt.mode == KSmode::open) { data/votca-xtp-1.6.2/src/libxtp/dftengine/dftengine.cc:523:44: [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). opt_alpha.mode = ConvergenceAcc::KSmode::open; data/votca-xtp-1.6.2/src/libxtp/geometry_optimization.cc:192: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). ofs.open(filename, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/geometry_optimization.cc:194: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). ofs.open(filename, std::ofstream::app); data/votca-xtp-1.6.2/src/libxtp/grids/grid.cc:31:10: [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). points.open(filename, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/gwbse/gw.cc:405:7: [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(filename); data/votca-xtp-1.6.2/src/libxtp/gwbse/gwbseengine.cc:167:7: [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). ofs.open(_logger_file, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/job.cc:196:7: [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). ofs.open(job_file, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/jobcalculators/eqm.cc:92:7: [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). ofs.open(_jobfile, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/jobcalculators/eqm.cc:130:7: [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). ofs.open(logfile, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/jobcalculators/iexcitoncl.cc:164:7: [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). ofs.open(_jobfile, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/jobcalculators/iqm.cc:195:7: [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). ofs.open(logfile, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/jobcalculators/iqm.cc:593:7: [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). ofs.open(_jobfile, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/jobcalculators/qmmm.cc:232:7: [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). ofs.open(_jobfile, std::ofstream::out); data/votca-xtp-1.6.2/src/libxtp/kmccalculator.cc:261:10: [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). ratefs.open(filename, fstream::out); data/votca-xtp-1.6.2/src/libxtp/kmccalculator.cc:282: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). probs.open(filename, fstream::out); data/votca-xtp-1.6.2/src/libxtp/progressobserver.cc:114: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 host[128]; data/votca-xtp-1.6.2/src/libxtp/qmpackages/gaussian.cc:122: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). el_file.open(el_file_name); data/votca-xtp-1.6.2/src/libxtp/qmpackages/gaussian.cc:322: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). com_file.open(com_file_name_full); data/votca-xtp-1.6.2/src/libxtp/qmpackages/gaussian.cc:409: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). shell_file.open(shell_file_name_full); data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.cc:95: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). orb_file.open(orb_file_name_ascii); data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.cc:195:11: [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). nw_file.open(nw_file_name_full); data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.cc:211: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). crg_file.open(crg_file_name_full); data/votca-xtp-1.6.2/src/libxtp/qmpackages/nwchem.cc:276: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). shell_file.open(shell_file_name_full); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:78:11: [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). el_file.open(el_file_name); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:192: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). crg_file.open(_crg_file_name_full); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:237: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). inp_file.open(inp_file_name_full); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:295: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). shell_file.open(shell_file_name_full); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:737:10: [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). infile.open(_run_dir + "/" + _mo_file_name, ios::binary | ios::in); data/votca-xtp-1.6.2/src/libxtp/tools/apdft.cc:59:11: [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). outfile.open(_outputfile, std::fstream::out); data/votca-xtp-1.6.2/src/libxtp/tools/gencube.cc:85:7: [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). in1.open(_infile1, ios::in); data/votca-xtp-1.6.2/src/libxtp/tools/gencube.cc:89:7: [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). in2.open(_infile2, ios::in); data/votca-xtp-1.6.2/src/tests/test_cubefile_writer.cc:30:7: [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). in1.open(filename, std::ios::in); data/votca-xtp-1.6.2/include/votca/xtp/atomcontainer.h:178:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). table.read(dataVec); data/votca-xtp-1.6.2/include/votca/xtp/checkpointreader.h:139:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). attr.read(*strType, readbuf); data/votca-xtp-1.6.2/include/votca/xtp/checkpointreader.h:150:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). attr.read(*dataType, &value); data/votca-xtp-1.6.2/include/votca/xtp/checkpointreader.h:194:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). dataset.read(matrix.derived().data(), *dataType, mspace, dp); data/votca-xtp-1.6.2/include/votca/xtp/checkpointreader.h:215:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). dataset.read(&(v[0]), *dataType); data/votca-xtp-1.6.2/include/votca/xtp/checkpointreader.h:240:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). dataset.read(temp.data(), *dataType); data/votca-xtp-1.6.2/include/votca/xtp/checkpointtable.h:153:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(void* buffer, const std::size_t& startIdx, data/votca-xtp-1.6.2/include/votca/xtp/checkpointtable.h:179:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _dataset.read(buffer, _rowStructure, mspace, _dp); data/votca-xtp-1.6.2/include/votca/xtp/checkpointtable.h:188:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(buffer, idx, idx + 1); data/votca-xtp-1.6.2/include/votca/xtp/checkpointtable.h:192:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::vector<T>& dataVec) { data/votca-xtp-1.6.2/include/votca/xtp/checkpointtable.h:193:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(dataVec.data(), 0, dataVec.size()); data/votca-xtp-1.6.2/src/libxtp/jobtopology.cc:327:13: [1] (buffer) is_permutation: 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::is_permutation(reg_ids.begin(), reg_ids.end(), v.begin())) { data/votca-xtp-1.6.2/src/libxtp/qmnblist.cc:70:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). table.read(dataVec); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:743:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). infile.read(buffer.data(), 8); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:751:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). infile.read(buffer.data(), 4); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:758:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). infile.read(buffer.data(), 4); data/votca-xtp-1.6.2/src/libxtp/qmpackages/orca.cc:769:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). infile.read(buffer.data(), 8); data/votca-xtp-1.6.2/src/tests/test_bfgs-trm.cc:72:8: [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 (!equal) { data/votca-xtp-1.6.2/src/tests/test_bfgs-trm.cc:80:21: [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. BOOST_CHECK_EQUAL(equal, 1); data/votca-xtp-1.6.2/src/tests/test_bfgs-trm.cc:127:8: [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 (!equal) { data/votca-xtp-1.6.2/src/tests/test_bfgs-trm.cc:135:21: [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. BOOST_CHECK_EQUAL(equal, 1); data/votca-xtp-1.6.2/src/tests/test_bfgs-trm.cc:167:8: [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 (!equal) { data/votca-xtp-1.6.2/src/tests/test_bfgs-trm.cc:175:21: [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. BOOST_CHECK_EQUAL(equal, 1); data/votca-xtp-1.6.2/src/tests/test_trustregion.cc:44:8: [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 (!equal) { data/votca-xtp-1.6.2/src/tests/test_trustregion.cc:49:21: [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. BOOST_CHECK_EQUAL(equal, 1); ANALYSIS SUMMARY: Hits = 89 Lines analyzed = 96680 in approximately 4.24 seconds (22805 lines/second) Physical Source Lines of Code (SLOC) = 77742 Hits@level = [0] 0 [1] 25 [2] 47 [3] 5 [4] 12 [5] 0 Hits@level+ = [0+] 89 [1+] 89 [2+] 64 [3+] 17 [4+] 12 [5+] 0 Hits/KSLOC@level+ = [0+] 1.14481 [1+] 1.14481 [2+] 0.823236 [3+] 0.218672 [4+] 0.154357 [5+] 0 Dot directories skipped = 3 (--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.