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/mpqc-2.3.1/doc/devsamp/mp2.cc Examining data/mpqc-2.3.1/include/FlexLexer.h Examining data/mpqc-2.3.1/src/bin/molrender/LIBS.h Examining data/mpqc-2.3.1/src/bin/molrender/main.cc Examining data/mpqc-2.3.1/src/bin/mpqc/LIBS.h Examining data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc Examining data/mpqc-2.3.1/src/bin/mpqc/mpqcin.cc Examining data/mpqc-2.3.1/src/bin/mpqc/mpqcin.h Examining data/mpqc-2.3.1/src/bin/mpqc/parse.cc Examining data/mpqc-2.3.1/src/bin/mpqc/parse.h Examining data/mpqc-2.3.1/src/bin/mpqc/scan.cc Examining data/mpqc-2.3.1/src/bin/mpqc/version.h Examining data/mpqc-2.3.1/src/bin/scls/LIBS.h Examining data/mpqc-2.3.1/src/bin/scls/scls.cc Examining data/mpqc-2.3.1/src/bin/scpr/LIBS.h Examining data/mpqc-2.3.1/src/bin/scpr/scpr.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_ChemistryOpt_CoordinateModel_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_Chemistry_MoleculeViewer_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_Chemistry_Molecule_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_Chemistry_QC_ModelFactory_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_Chemistry_QC_Model_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_ComponentClassDescription_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_ComponentFactory_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_GaussianBasis_Atomic_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_GaussianBasis_Molecular_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_GaussianBasis_Shell_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_IntegralEvaluator2_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_IntegralEvaluator3_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_IntegralEvaluator4_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_IntegralEvaluatorFactory_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_Physics_Units_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_SimpleDriver_Impl.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/basis_cca_to_sc.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/ccaiter.h Examining data/mpqc-2.3.1/src/lib/chemistry/cca/except.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/except.h Examining data/mpqc-2.3.1/src/lib/chemistry/cca/socket.cc Examining data/mpqc-2.3.1/src/lib/chemistry/cca/socket.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/aotoso.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/basis.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/cartiter.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/cartiter.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/dercent.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/dercent.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/distshpair.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/distshpair.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/extent.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/extent.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbaval.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussshell.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussshell.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussshval.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gpetite.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gpetite.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/integral.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/integral.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/obint.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/obint.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/orthog.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/orthog.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/petite.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/petite.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/shellrot.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/shellrot.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/sobasis.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/sobasis.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/sointegral.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/sointegral.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/symmint.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/symmint.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/tbint.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/tbint.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/transform.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/basis/transform.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cartit.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cints.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cints.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/comp_eri.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/comp_grt.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/edipole.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/equadrupole.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/eri.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/eri.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/eri_quartet_data.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/fjt.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/fjt.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/grt.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/grt.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/grt_quartet_data.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/hcore.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/int1e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/int1e.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/int2e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/int2e.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/kinetic.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/linkage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/macros.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/nuclear.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/obintcints.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/obintcints.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/obosrr.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/overlap.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/permute2e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/primpairs.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/primpairs.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/shellpairs.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/shellpairs.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/static.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/storage.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/storage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/tbintcints.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/tbintcints.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/tform.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/cints/tform.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/clkstmpl.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/clks.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/clks.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/dfttest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/functional.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/functional.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/hsosks.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/hsosks.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/hsoskstmpl.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/integrator.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/integrator.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/lebedev.c Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/linkage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/tmplinst.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/uks.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/uks.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/dft/ukstmpl.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/cartit.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/int1e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/int1e.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/int2e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/int2e.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/intcca.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/intcca.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/linkage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/macros.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/obintcca.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/obintcca.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/tbintcca.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/tbintcca.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intcca/tform.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/array.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/array.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/bounds.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/build2e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/cartitv3.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/comp1e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/comp2e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/comp2e3c.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/fjt.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/fjt.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/fjttest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/flags.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/init2e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/int1e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/int1e.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/int2e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/int2e.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/intv3.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/intv3.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/macros.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/obintv3.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/obintv3.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/offsets.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/print2e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/shift2e.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/storage.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/storage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/store.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/tbintv3.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/tbintv3.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/tformv3.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/tformv3.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/types.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/utils.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/bzerofast.c Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/bzerofast.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/cscphf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgmat.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgrad.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgrad34qb.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgrad34qb.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgrade12.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgrade12.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgrads2pdm.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgrads2pdm.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/hsosv1.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/hsosv1e1.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/hsosv1e1.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/hsosv2.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/hsosv2lb.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/linkage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/mbpt.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/mbpt.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/mbpttest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/mp2extrap.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/mp2extrap.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/util.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/util.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/coulomb.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/blas.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_a_gebc.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_a_gebc_abs1.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_a_gebc_vbs.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_amps.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_energy_a.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_ijxy.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_ikjy.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_ixjy.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_vxb_a_asymm.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_vxb_a_symm.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/dualbasis_mp2.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/ebc_contribs.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/exchange.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/fock.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/gbc_contribs.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/lapack.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/linearr12.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/linkage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/mbptr12.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/mbptr12.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/mbptr12test.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/moindexspace.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/moindexspace.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/mp2r12_energy.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/mp2r12_energy.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/multipole_ints.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/pairiter.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/pairiter.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/print_scmat_norms.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12_amps.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12_amps.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_memgrp.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_memgrp.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_mpiiofile.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_mpiiofile.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_node0file.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_node0file.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12int_eval.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12int_eval.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/ri_basis.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/svd.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/svd.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_123inds.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_123inds.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_12inds.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_12inds.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_13inds.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_13inds.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_factory.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_factory.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_ijxy.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_ijxy.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_ikjy.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_ikjy.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_ixjy.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_ixjy.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_tbint.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/twobodygrid.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/twobodygrid.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/vxb_eval_info.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/vxb_eval_info.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_tbint.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/build.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/build.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0100.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0100AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0101.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0101AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0111.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0111AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0200.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0200AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0201.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0201AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0202.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0202AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0211.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0211AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0212.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0212AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0222.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0222AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0300.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0300AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0301.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0301AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0302.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0302AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0303.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0303AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0311.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0311AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0312.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0312AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0313.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0313AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0322.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0322AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0323.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0323AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0333.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i0333AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1100.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1100AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1111.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1111AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1200.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1200AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1201.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1201AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1211.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1211AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1212.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1212AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1222.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1222AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1300.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1300AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1301.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1301AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1302.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1302AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1311.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1311AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1312.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1312AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1313.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1313AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1322.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1322AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1323.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1323AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1333.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i1333AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2200.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2200AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2201.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2201AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2211.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2211AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2222.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2222AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2300.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2300AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2301.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2301AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2302.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2302AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2311.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2311AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2312.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2312AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2322.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2322AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2323.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2323AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2333.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i2333AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3300.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3300AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3301.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3301AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3302.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3302AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3311.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3311AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3312.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3312AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3322.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3322AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3333.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/oint3/i3333AB.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/linkage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psifile11.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psifile11.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psitest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiwfn.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiwfn.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/clhftmpl.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/clhf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/clhf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/clscf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/clscf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/effh.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/effh.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/gbuild.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsoshf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsoshf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsoshftmpl.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/lbgbuild.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/lgbuild.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/linkage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/ltbgrad.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/osshf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/osshf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/osshftmpl.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/ossscf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/ossscf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/scf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/scf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/scfgradient.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/scflocal.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/scfops.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/scfops.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/scftest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/scfvector.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/svd.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/tbgrad.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/tchf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/tchf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/tchftmpl.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/tcscf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/tcscf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/tmplinst.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uhf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uhf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uhftmpl.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/accum.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/accum.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/density.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/density.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/densval.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/eht.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/eht.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/hcorewfn.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/linkage.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/nao.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/natorbval.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/obwfn.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/obwfn.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/orbital.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/orbital.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/solvent.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/solvent.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/wfn.cc Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/wfn.h Examining data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/wfntest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/bend.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/cartcoor.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/energy.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/energy.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/fdhess.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/fdhess.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/formula.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/formula.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/hess.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/hess.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/imcoor.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/linip.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/linkage.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/linop.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/localdef.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/molfreq.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/molfreq.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/molrender.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/molrender.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/molshape.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/molshape.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/molsymm.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/moltest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/out.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/redund.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/simple.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/simple.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/stors.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/stre.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/symmcoor.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/symmetrize.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/taylor.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/taylor.h Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/tors.cc Examining data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc Examining data/mpqc-2.3.1/src/lib/chemistry/solvent/LIBS.h Examining data/mpqc-2.3.1/src/lib/chemistry/solvent/bemtest.cc Examining data/mpqc-2.3.1/src/lib/chemistry/solvent/bem.cc Examining data/mpqc-2.3.1/src/lib/chemistry/solvent/bem.h Examining data/mpqc-2.3.1/src/lib/chemistry/solvent/disprep.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/LIBS.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/implicit.c Examining data/mpqc-2.3.1/src/lib/math/isosurf/edge.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/edge.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/implicit.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/isosurf.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/isosurf.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/isotest.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/shape.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/shape.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/surf.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/surf.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/surfor.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/surfse.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/surfst.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/tmplinst.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/triangle.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/triangle.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/tricoef.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/tricoef.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/vertex.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/vertex.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/volume.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/volume.h Examining data/mpqc-2.3.1/src/lib/math/isosurf/volume_i.cc Examining data/mpqc-2.3.1/src/lib/math/isosurf/volume_i.h Examining data/mpqc-2.3.1/src/lib/math/optimize/LIBS.h Examining data/mpqc-2.3.1/src/lib/math/optimize/function.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/conv.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/conv.h Examining data/mpqc-2.3.1/src/lib/math/optimize/dfp.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/diis.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/diis.h Examining data/mpqc-2.3.1/src/lib/math/optimize/efc.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/efc.h Examining data/mpqc-2.3.1/src/lib/math/optimize/function.h Examining data/mpqc-2.3.1/src/lib/math/optimize/gdiis.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/gdiis.h Examining data/mpqc-2.3.1/src/lib/math/optimize/kvopt.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/linkage.h Examining data/mpqc-2.3.1/src/lib/math/optimize/mcsearch.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/mcsearch.h Examining data/mpqc-2.3.1/src/lib/math/optimize/newton.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/newton.h Examining data/mpqc-2.3.1/src/lib/math/optimize/opt.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/opt.h Examining data/mpqc-2.3.1/src/lib/math/optimize/opttest.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/powell.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/qnewton.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/qnewton.h Examining data/mpqc-2.3.1/src/lib/math/optimize/scextest.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/scextrap.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/scextrap.h Examining data/mpqc-2.3.1/src/lib/math/optimize/scextrapmat.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/scextrapmat.h Examining data/mpqc-2.3.1/src/lib/math/optimize/steep.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/steep.h Examining data/mpqc-2.3.1/src/lib/math/optimize/transform.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/transform.h Examining data/mpqc-2.3.1/src/lib/math/optimize/update.cc Examining data/mpqc-2.3.1/src/lib/math/optimize/update.h Examining data/mpqc-2.3.1/src/lib/math/scmat/LIBS.h Examining data/mpqc-2.3.1/src/lib/math/scmat/abstract.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/abstract.h Examining data/mpqc-2.3.1/src/lib/math/scmat/blkiter.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/blkiter.h Examining data/mpqc-2.3.1/src/lib/math/scmat/block.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/block.h Examining data/mpqc-2.3.1/src/lib/math/scmat/blocked.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/blocked.h Examining data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/blockedtest.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/cmatrix.c Examining data/mpqc-2.3.1/src/lib/math/scmat/cmatrix.h Examining data/mpqc-2.3.1/src/lib/math/scmat/dim.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/dim.h Examining data/mpqc-2.3.1/src/lib/math/scmat/dist.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/dist.h Examining data/mpqc-2.3.1/src/lib/math/scmat/distdiag.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/disthql.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/disthql.h Examining data/mpqc-2.3.1/src/lib/math/scmat/distrect.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/distsymm.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/disttest.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/distvect.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/elemop.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/elemop.h Examining data/mpqc-2.3.1/src/lib/math/scmat/linkage.h Examining data/mpqc-2.3.1/src/lib/math/scmat/local.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/local.h Examining data/mpqc-2.3.1/src/lib/math/scmat/localdiag.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/localrect.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/localsymm.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/localtest.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/localvect.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/matrix.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/matrix.h Examining data/mpqc-2.3.1/src/lib/math/scmat/matrix3.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/matrix3.h Examining data/mpqc-2.3.1/src/lib/math/scmat/matrix_i.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/matrix_i.h Examining data/mpqc-2.3.1/src/lib/math/scmat/matrixtest.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/mops.h Examining data/mpqc-2.3.1/src/lib/math/scmat/offset.h Examining data/mpqc-2.3.1/src/lib/math/scmat/repl.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/repl.h Examining data/mpqc-2.3.1/src/lib/math/scmat/repldiag.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/replrect.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/replsymm.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/repltest.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/replvect.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/result.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/result.h Examining data/mpqc-2.3.1/src/lib/math/scmat/svd.c Examining data/mpqc-2.3.1/src/lib/math/scmat/util.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/util.h Examining data/mpqc-2.3.1/src/lib/math/scmat/vector3.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/vector3.h Examining data/mpqc-2.3.1/src/lib/math/scmat/vector3_i.cc Examining data/mpqc-2.3.1/src/lib/math/scmat/vector3_i.h Examining data/mpqc-2.3.1/src/lib/math/symmetry/LIBS.h Examining data/mpqc-2.3.1/src/lib/math/symmetry/chartab.cc Examining data/mpqc-2.3.1/src/lib/math/symmetry/corrtab.cc Examining data/mpqc-2.3.1/src/lib/math/symmetry/corrtab.h Examining data/mpqc-2.3.1/src/lib/math/symmetry/ico.cc Examining data/mpqc-2.3.1/src/lib/math/symmetry/irrep.cc Examining data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc Examining data/mpqc-2.3.1/src/lib/math/symmetry/pointgrp.cc Examining data/mpqc-2.3.1/src/lib/math/symmetry/pointgrp.h Examining data/mpqc-2.3.1/src/lib/math/symmetry/rep.cc Examining data/mpqc-2.3.1/src/lib/math/symmetry/symop.cc Examining data/mpqc-2.3.1/src/lib/math/symmetry/testpg.cc Examining data/mpqc-2.3.1/src/lib/math/symmetry/tetra.cc Examining data/mpqc-2.3.1/src/lib/util/class/LIBS.h Examining data/mpqc-2.3.1/src/lib/util/class/class.cc Examining data/mpqc-2.3.1/src/lib/util/class/class.h Examining data/mpqc-2.3.1/src/lib/util/class/classtest.cc Examining data/mpqc-2.3.1/src/lib/util/class/proxy.h Examining data/mpqc-2.3.1/src/lib/util/class/scexception.cc Examining data/mpqc-2.3.1/src/lib/util/class/scexception.h Examining data/mpqc-2.3.1/src/lib/util/class/scextest.cc Examining data/mpqc-2.3.1/src/lib/util/container/LIBS.h Examining data/mpqc-2.3.1/src/lib/util/container/avlmap.h Examining data/mpqc-2.3.1/src/lib/util/container/avl.cc Examining data/mpqc-2.3.1/src/lib/util/container/avlset.h Examining data/mpqc-2.3.1/src/lib/util/container/avltest.cc Examining data/mpqc-2.3.1/src/lib/util/container/bitarray.cc Examining data/mpqc-2.3.1/src/lib/util/container/bitarray.h Examining data/mpqc-2.3.1/src/lib/util/container/carray.cc Examining data/mpqc-2.3.1/src/lib/util/container/carray.h Examining data/mpqc-2.3.1/src/lib/util/container/compare.h Examining data/mpqc-2.3.1/src/lib/util/container/eavlmmap.h Examining data/mpqc-2.3.1/src/lib/util/group/LIBS.h Examining data/mpqc-2.3.1/src/lib/util/group/fileproc.cc Examining data/mpqc-2.3.1/src/lib/util/group/file.cc Examining data/mpqc-2.3.1/src/lib/util/group/file.h Examining data/mpqc-2.3.1/src/lib/util/group/fileproc.h Examining data/mpqc-2.3.1/src/lib/util/group/globcnt.cc Examining data/mpqc-2.3.1/src/lib/util/group/globcnt.h Examining data/mpqc-2.3.1/src/lib/util/group/hcube.cc Examining data/mpqc-2.3.1/src/lib/util/group/hcube.h Examining data/mpqc-2.3.1/src/lib/util/group/linkage.h Examining data/mpqc-2.3.1/src/lib/util/group/memamsg.cc Examining data/mpqc-2.3.1/src/lib/util/group/memamsg.h Examining data/mpqc-2.3.1/src/lib/util/group/memarmci.cc Examining data/mpqc-2.3.1/src/lib/util/group/memarmci.h Examining data/mpqc-2.3.1/src/lib/util/group/memiter.cc Examining data/mpqc-2.3.1/src/lib/util/group/memiter.h Examining data/mpqc-2.3.1/src/lib/util/group/memmsg.cc Examining data/mpqc-2.3.1/src/lib/util/group/memmsg.h Examining data/mpqc-2.3.1/src/lib/util/group/memmtmpi.h Examining data/mpqc-2.3.1/src/lib/util/group/memory.cc Examining data/mpqc-2.3.1/src/lib/util/group/memory.h Examining data/mpqc-2.3.1/src/lib/util/group/memproc.cc Examining data/mpqc-2.3.1/src/lib/util/group/memproc.h Examining data/mpqc-2.3.1/src/lib/util/group/memrdma.cc Examining data/mpqc-2.3.1/src/lib/util/group/memrdma.h Examining data/mpqc-2.3.1/src/lib/util/group/memshm.cc Examining data/mpqc-2.3.1/src/lib/util/group/memshm.h Examining data/mpqc-2.3.1/src/lib/util/group/memtest.cc Examining data/mpqc-2.3.1/src/lib/util/group/message.cc Examining data/mpqc-2.3.1/src/lib/util/group/message.h Examining data/mpqc-2.3.1/src/lib/util/group/messaget.h Examining data/mpqc-2.3.1/src/lib/util/group/messimpl.cc Examining data/mpqc-2.3.1/src/lib/util/group/messint.cc Examining data/mpqc-2.3.1/src/lib/util/group/messmpi.h Examining data/mpqc-2.3.1/src/lib/util/group/messproc.cc Examining data/mpqc-2.3.1/src/lib/util/group/messshm.cc Examining data/mpqc-2.3.1/src/lib/util/group/messshm.h Examining data/mpqc-2.3.1/src/lib/util/group/messtest.cc Examining data/mpqc-2.3.1/src/lib/util/group/mstate.cc Examining data/mpqc-2.3.1/src/lib/util/group/mstate.h Examining data/mpqc-2.3.1/src/lib/util/group/pool.cc Examining data/mpqc-2.3.1/src/lib/util/group/pool.h Examining data/mpqc-2.3.1/src/lib/util/group/pooltest.cc Examining data/mpqc-2.3.1/src/lib/util/group/pregtime.cc Examining data/mpqc-2.3.1/src/lib/util/group/pregtime.h Examining data/mpqc-2.3.1/src/lib/util/group/prttest.cc Examining data/mpqc-2.3.1/src/lib/util/group/reduce.cc Examining data/mpqc-2.3.1/src/lib/util/group/rnglock.cc Examining data/mpqc-2.3.1/src/lib/util/group/rnglock.h Examining data/mpqc-2.3.1/src/lib/util/group/rnglocktest.cc Examining data/mpqc-2.3.1/src/lib/util/group/thpthd.cc Examining data/mpqc-2.3.1/src/lib/util/group/thpthd.h Examining data/mpqc-2.3.1/src/lib/util/group/thpuma.cc Examining data/mpqc-2.3.1/src/lib/util/group/thpuma.h Examining data/mpqc-2.3.1/src/lib/util/group/thread.cc Examining data/mpqc-2.3.1/src/lib/util/group/thread.h Examining data/mpqc-2.3.1/src/lib/util/group/thrtest.cc Examining data/mpqc-2.3.1/src/lib/util/group/topology.cc Examining data/mpqc-2.3.1/src/lib/util/group/topology.h Examining data/mpqc-2.3.1/src/lib/util/group/memmtmpi.cc Examining data/mpqc-2.3.1/src/lib/util/group/messmpi.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/LIBS.h Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_cwk.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2.h Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_alloc.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_karray.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_parse.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_parse.h Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_print.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_scan.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/ipv2_scan.h Examining data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/keyval.h Examining data/mpqc-2.3.1/src/lib/util/keyval/keyvalagg.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/keyvalass.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/keyvalstr.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/keyvaltest.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc Examining data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.h Examining data/mpqc-2.3.1/src/lib/util/misc/LIBS.h Examining data/mpqc-2.3.1/src/lib/util/misc/autovec.h Examining data/mpqc-2.3.1/src/lib/util/misc/autovectest.cc Examining data/mpqc-2.3.1/src/lib/util/misc/bug.cc Examining data/mpqc-2.3.1/src/lib/util/misc/bug.h Examining data/mpqc-2.3.1/src/lib/util/misc/bugtest.cc Examining data/mpqc-2.3.1/src/lib/util/misc/ccaenv.cc Examining data/mpqc-2.3.1/src/lib/util/misc/ccaenv.h Examining data/mpqc-2.3.1/src/lib/util/misc/comptest.cc Examining data/mpqc-2.3.1/src/lib/util/misc/comptmpl.h Examining data/mpqc-2.3.1/src/lib/util/misc/compute.cc Examining data/mpqc-2.3.1/src/lib/util/misc/compute.h Examining data/mpqc-2.3.1/src/lib/util/misc/exenv.cc Examining data/mpqc-2.3.1/src/lib/util/misc/exenv.h Examining data/mpqc-2.3.1/src/lib/util/misc/formio.cc Examining data/mpqc-2.3.1/src/lib/util/misc/formio.h Examining data/mpqc-2.3.1/src/lib/util/misc/formiot.cc Examining data/mpqc-2.3.1/src/lib/util/misc/ieee.cc Examining data/mpqc-2.3.1/src/lib/util/misc/ieee.h Examining data/mpqc-2.3.1/src/lib/util/misc/math.h Examining data/mpqc-2.3.1/src/lib/util/misc/newstring.h Examining data/mpqc-2.3.1/src/lib/util/misc/regtime.cc Examining data/mpqc-2.3.1/src/lib/util/misc/regtime.h Examining data/mpqc-2.3.1/src/lib/util/misc/scint.h Examining data/mpqc-2.3.1/src/lib/util/misc/scinttest.cc Examining data/mpqc-2.3.1/src/lib/util/misc/string.h Examining data/mpqc-2.3.1/src/lib/util/misc/timer.h Examining data/mpqc-2.3.1/src/lib/util/misc/tregtime.cc Examining data/mpqc-2.3.1/src/lib/util/misc/units.cc Examining data/mpqc-2.3.1/src/lib/util/misc/units.h Examining data/mpqc-2.3.1/src/lib/util/misc/unittest.cc Examining data/mpqc-2.3.1/src/lib/util/options/GetLongOpt.cc Examining data/mpqc-2.3.1/src/lib/util/options/GetLongOpt.h Examining data/mpqc-2.3.1/src/lib/util/options/LIBS.h Examining data/mpqc-2.3.1/src/lib/util/options/README.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/close.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/done.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/error.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_address.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_filename.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_global_address.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_numvols.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/init.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/open.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/open_check.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/psifiles.h Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/psio.h Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/psiotest.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/read.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/read_block.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/read_entry.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/rw.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocclean.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocdel.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/toclast.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocprint.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocread.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocscan.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocwrite.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/volseek.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/write.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/write_block.cc Examining data/mpqc-2.3.1/src/lib/util/psi3/libpsio/write_entry.cc Examining data/mpqc-2.3.1/src/lib/util/ref/LIBS.h Examining data/mpqc-2.3.1/src/lib/util/ref/identity.cc Examining data/mpqc-2.3.1/src/lib/util/ref/identity.h Examining data/mpqc-2.3.1/src/lib/util/ref/ref.cc Examining data/mpqc-2.3.1/src/lib/util/ref/ref.h Examining data/mpqc-2.3.1/src/lib/util/ref/reftest.cc Examining data/mpqc-2.3.1/src/lib/util/ref/reftestx.cc Examining data/mpqc-2.3.1/src/lib/util/ref/reftestx.h Examining data/mpqc-2.3.1/src/lib/util/render/LIBS.h Examining data/mpqc-2.3.1/src/lib/util/render/algebra3.cc Examining data/mpqc-2.3.1/src/lib/util/render/algebra3.h Examining data/mpqc-2.3.1/src/lib/util/render/animate.cc Examining data/mpqc-2.3.1/src/lib/util/render/animate.h Examining data/mpqc-2.3.1/src/lib/util/render/appearance.cc Examining data/mpqc-2.3.1/src/lib/util/render/appearance.h Examining data/mpqc-2.3.1/src/lib/util/render/color.cc Examining data/mpqc-2.3.1/src/lib/util/render/color.h Examining data/mpqc-2.3.1/src/lib/util/render/find.h Examining data/mpqc-2.3.1/src/lib/util/render/linkage.h Examining data/mpqc-2.3.1/src/lib/util/render/material.cc Examining data/mpqc-2.3.1/src/lib/util/render/material.h Examining data/mpqc-2.3.1/src/lib/util/render/object.cc Examining data/mpqc-2.3.1/src/lib/util/render/object.h Examining data/mpqc-2.3.1/src/lib/util/render/oogl.cc Examining data/mpqc-2.3.1/src/lib/util/render/oogl.h Examining data/mpqc-2.3.1/src/lib/util/render/parameter.h Examining data/mpqc-2.3.1/src/lib/util/render/polygons.cc Examining data/mpqc-2.3.1/src/lib/util/render/polygons.h Examining data/mpqc-2.3.1/src/lib/util/render/polylines.cc Examining data/mpqc-2.3.1/src/lib/util/render/polylines.h Examining data/mpqc-2.3.1/src/lib/util/render/polysphere.cc Examining data/mpqc-2.3.1/src/lib/util/render/polysphere.h Examining data/mpqc-2.3.1/src/lib/util/render/render.cc Examining data/mpqc-2.3.1/src/lib/util/render/render.h Examining data/mpqc-2.3.1/src/lib/util/render/rentest.cc Examining data/mpqc-2.3.1/src/lib/util/render/sphere.cc Examining data/mpqc-2.3.1/src/lib/util/render/sphere.h Examining data/mpqc-2.3.1/src/lib/util/render/stack.h Examining data/mpqc-2.3.1/src/lib/util/render/tempinst.cc Examining data/mpqc-2.3.1/src/lib/util/render/transform.cc Examining data/mpqc-2.3.1/src/lib/util/render/transform.h Examining data/mpqc-2.3.1/src/lib/util/state/LIBS.h Examining data/mpqc-2.3.1/src/lib/util/state/linkage.h Examining data/mpqc-2.3.1/src/lib/util/state/proxy.cc Examining data/mpqc-2.3.1/src/lib/util/state/proxy.h Examining data/mpqc-2.3.1/src/lib/util/state/state.cc Examining data/mpqc-2.3.1/src/lib/util/state/state.h Examining data/mpqc-2.3.1/src/lib/util/state/state_bin.cc Examining data/mpqc-2.3.1/src/lib/util/state/state_bin.h Examining data/mpqc-2.3.1/src/lib/util/state/state_file.cc Examining data/mpqc-2.3.1/src/lib/util/state/state_file.h Examining data/mpqc-2.3.1/src/lib/util/state/state_text.cc Examining data/mpqc-2.3.1/src/lib/util/state/state_text.h Examining data/mpqc-2.3.1/src/lib/util/state/statein.cc Examining data/mpqc-2.3.1/src/lib/util/state/statein.h Examining data/mpqc-2.3.1/src/lib/util/state/stateio.h Examining data/mpqc-2.3.1/src/lib/util/state/stateout.cc Examining data/mpqc-2.3.1/src/lib/util/state/stateout.h Examining data/mpqc-2.3.1/src/lib/util/state/statetest.cc Examining data/mpqc-2.3.1/src/lib/util/state/tmplinst.cc Examining data/mpqc-2.3.1/src/lib/util/state/translate.cc Examining data/mpqc-2.3.1/src/lib/util/state/translate.h Examining data/mpqc-2.3.1/src/lib/shm_type.h Examining data/mpqc-2.3.1/src/lib/restrictxx.h FINAL RESULTS: data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:349:21: [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). in_char_array = strcpy(new char[n],ostrs.str().c_str()); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:573:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ckptfile,"%s.ckpt",molname); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:581:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(wfn_file,"%s.wfn",molname); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:584:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mole_ckpt_file,"%s",wfn_file); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:805:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ckptfile,"%s.ckpt",molname); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:809:9: [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(ckptfile, devnull); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:823:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(wfn_file,"%s.wfn",molname); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:829:9: [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(wfn_file, devnull); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:931:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ckptfile, "%s.pdb", molname); data/mpqc-2.3.1/src/bin/mpqc/mpqcin.cc:457:25: [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). char *in_char_array = strcpy(new char[n],ostrs.str().c_str()); data/mpqc-2.3.1/src/bin/mpqc/parse.cc:658:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/mpqc-2.3.1/src/bin/mpqc/scan.cc:571: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(ret,yytext); data/mpqc-2.3.1/src/bin/mpqc/scan.cc:941:19: [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(MPQCInylval.str,&yytext[1]); data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:289:27: [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). in_char_array.reset(strcpy(new char[n],ostrs.str().c_str())); data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:365:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ustring,"unit=\"%s\"",fileunits->string_rep()); data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:375:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(assignment,"%s%s=%s", prefix, data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:396:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(assignment,"%sscale_factor=%s", prefix, strval); data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:443:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(assignment,"%s%s:%d=%s", data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:463:27: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). if (overridden_values_) strcat(new_overridden_values, overridden_values_); data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:464:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(new_overridden_values, assignment); data/mpqc-2.3.1/src/lib/chemistry/molecule/bend.cc:89:40: [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). label_=new char[strlen(s.label_)+1]; strcpy(label_,s.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:64:34: [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). label_=new char[strlen(re)+1]; strcpy(label_,re); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:71:26: [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). if (c.label_) label_ = strcpy(new char[strlen(c.label_)+1],c.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/formula.cc:91:11: [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). form_ = strcpy(new char[sstr.str().size()+1],sstr.str().c_str()); data/mpqc-2.3.1/src/lib/chemistry/molecule/linip.cc:97: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(label_,s.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/linop.cc:97: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(label_,s.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:262:32: [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). labels_[i] = strcpy(new char[strlen(mol.labels_[i])+1], data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:360:26: [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). labels_[natoms_] = strcpy(new char[strlen(label)+1],label); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:428:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(qlab,lab); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1369:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(symb,"%s1",symbol.c_str()); data/mpqc-2.3.1/src/lib/chemistry/molecule/molfreq.cc:495:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name,"%02d.%s", data/mpqc-2.3.1/src/lib/chemistry/molecule/out.cc:90: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(label_,s.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/stors.cc:91: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(label_,s.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/stre.cc:89:40: [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). label_=new char[strlen(s.label_)+1]; strcpy(label_,s.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/tors.cc:91: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(label_,s.label_); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:630:15: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(keyword,hmol->atominfo()->name(j+1).c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:632:15: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(keyword,basisname); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:646:23: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(elemstr,hmol->atominfo()->symbol(j+1).c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:674:23: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(elemstr, hmol->atominfo()->symbol(j).c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:60:17: [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). dir_[1] = strcpy(new char[strlen(tmp)+6+1], tmp); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:71:17: [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). dir_[1] = strcpy(new char[strlen(bdir)+1], bdir); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:130:11: [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(path, dir_[i]); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:132:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path, filename); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:149:37: [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). char *in_char_array = strcpy(new char[n],ostrs.str().c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:192:31: [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). newbasissets[nbasissets_] = strcpy(new char[strlen(basisname)+1], data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:104:27: [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). in_char_array = strcpy(new char[n],ostrs.str().c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:310:19: [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). AplusB_name = strcpy(new char[tmpname.size()+1],tmpname.c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:322:20: [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). AplusB_label = strcpy(new char[tmpname.size()+1],tmpname.c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:456:7: [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(label_,label.c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:496:24: [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). sbasisname = strcpy(new char[strlen(name_)+1],name_); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:539:24: [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). sbasisname = strcpy(new char[strlen(name_)+1],name_); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:655:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s",element,basisname); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:688:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:am", data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:707:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:am",element,basisname); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:709:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s",element,basisname); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:725:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:nprim", element, basisname); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:734:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:nprim:%d", element, basisname, b); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:755:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:am", data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:766:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:nprim", element, basisname); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:774:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:last_exp", element, basisname); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:777:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:first_exp", element, basisname); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:780:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:exp_ratio", element, basisname); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:794:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:nprim:%d", element, basisname, b); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:802:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:am:%d", element, basisname, b); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:812:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:first_exp:%d", element, basisname, b); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:822:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:last_exp:%d", element, basisname, b); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:843:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s:exp_ratio:%d", element, basisname, b); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:896:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keyword,":basis:%s:%s", data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:912:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(prefix,":basis:%s:%s", data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:143:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(infile,SRCDIR "/cintstest.in"); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc:77:7: [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(result,atominfo[i].symbol); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc:96: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(tmpsym,sym); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc:118: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(tmpatom,atom); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc:128:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(infile,SRCDIR "/inttest.in"); data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgmat.cc:58:51: [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. const Ref<MessageGrp> &msg, Access access) data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:77:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s,"%s/%s",cwd_.c_str(),inputname_.c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:82:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s,"%s/%s.%s",cwd_.c_str(),fileprefix_.c_str(),file11name_.c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:104:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s,"%s/%s",cwd_.c_str(),inputname_.c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:109:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s,"%s/%s.%s",cwd_.c_str(),fileprefix_.c_str(),file11name_.c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:125:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newpath,"%s:%s",dir.c_str(),path); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:131:24: [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). char *putenvcstr = strcpy(new char[putenvstr.size()+1], putenvstr.c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:154:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(module_cmd,"cd %s; %s/%s -p %s/%s 1>> %s 2>> %s",cwd_.c_str(),psiprefix_.c_str(),module,cwd_.c_str(), data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:156:16: [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 (errcod = system(module_cmd)) { data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:196:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(basisname,"\"%s%d\" \n",name,uatom); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:224:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(psibasisname,"%s:\"%s%d\" = (\n",atomname.c_str(),name,uatom); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/scf.cc:375:66: [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. SCF::get_local_data(const RefSymmSCMatrix& m, double*& p, Access access) data/mpqc-2.3.1/src/lib/math/optimize/opt.cc:151:5: [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(ckpt_file,path); data/mpqc-2.3.1/src/lib/math/scmat/block.cc:884:12: [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. Access access, data/mpqc-2.3.1/src/lib/math/scmat/block.cc:887:24: [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. SCMatrixSubblockIter(access), data/mpqc-2.3.1/src/lib/math/scmat/block.cc:924:59: [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. SCMatrixNullSubblockIter::SCMatrixNullSubblockIter(Access access): data/mpqc-2.3.1/src/lib/math/scmat/block.cc:925:24: [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. SCMatrixSubblockIter(access) data/mpqc-2.3.1/src/lib/math/scmat/block.cc:967:37: [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. if (niters_) access_ = iters_[0]->access(); data/mpqc-2.3.1/src/lib/math/scmat/block.cc:969:22: [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. if (iters_[i]->access() != access_) { data/mpqc-2.3.1/src/lib/math/scmat/block.cc:996:18: [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. if (iters_[i]->access() != access_) { data/mpqc-2.3.1/src/lib/math/scmat/block.h:391:33: [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. SCMatrixSubblockIter(Access access): access_(access) {} data/mpqc-2.3.1/src/lib/math/scmat/block.h:391:50: [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. SCMatrixSubblockIter(Access access): access_(access) {} data/mpqc-2.3.1/src/lib/math/scmat/block.h:402:12: [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. Access access() const { return access_; } data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:250:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newtitle,"%s: block %d",title,i+1); data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:276:64: [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. BlockedDiagSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:279:43: [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. = new SCMatrixCompositeSubblockIter(access,nblocks()); data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:282:58: [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. iter->set_iter(i, new SCMatrixNullSubblockIter(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:284:52: [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. iter->set_iter(i, block(i)->local_blocks(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:291: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. BlockedDiagSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:294:43: [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. = new SCMatrixCompositeSubblockIter(access,nblocks()); data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:297:58: [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. iter->set_iter(i, new SCMatrixNullSubblockIter(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:299:50: [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. iter->set_iter(i, block(i)->all_blocks(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:706:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newtitle,"%s: block %d",title,i+1); data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:741:60: [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. BlockedSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:744:43: [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. = new SCMatrixCompositeSubblockIter(access, nblocks()); data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:747:58: [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. iter->set_iter(i, new SCMatrixNullSubblockIter(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:749:52: [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. iter->set_iter(i, block(i)->local_blocks(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:756:58: [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. BlockedSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:759:43: [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. = new SCMatrixCompositeSubblockIter(access, nblocks()); data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:762:58: [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. iter->set_iter(i, new SCMatrixNullSubblockIter(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:764:50: [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. iter->set_iter(i, block(i)->all_blocks(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:605:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newtitle,"%s: block %d",title,i+1); data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:631:64: [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. BlockedSymmSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:634:43: [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. = new SCMatrixCompositeSubblockIter(access,nblocks()); data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:637:58: [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. iter->set_iter(i, new SCMatrixNullSubblockIter(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:639:52: [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. iter->set_iter(i, block(i)->local_blocks(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:646: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. BlockedSymmSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:649:43: [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. = new SCMatrixCompositeSubblockIter(access,nblocks()); data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:652:58: [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. iter->set_iter(i, new SCMatrixNullSubblockIter(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:654:50: [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. iter->set_iter(i, block(i)->all_blocks(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:349:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newtitle,"%s: block %d",title,i+1); data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:375:60: [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. BlockedSCVector::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:378:43: [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. = new SCMatrixCompositeSubblockIter(access,nblocks()); data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:381:58: [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. iter->set_iter(i, new SCMatrixNullSubblockIter(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:383:52: [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. iter->set_iter(i, block(i)->local_blocks(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:390:58: [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. BlockedSCVector::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:393:43: [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. = new SCMatrixCompositeSubblockIter(access,nblocks()); data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:396:58: [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. iter->set_iter(i, new SCMatrixNullSubblockIter(access)); data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:398:50: [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. iter->set_iter(i, block(i)->all_blocks(access)); data/mpqc-2.3.1/src/lib/math/scmat/dim.cc:284:21: [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). if (name) name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/math/scmat/dim.cc:291:21: [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). if (name) name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/math/scmat/dim.cc:299:21: [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). if (name) name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/math/scmat/dim.cc:308:21: [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). if (name) name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/math/scmat/dist.cc:97:12: [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. Access access, data/mpqc-2.3.1/src/lib/math/scmat/dist.cc:101:28: [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. SCMatrixListSubblockIter(access, list->deepcopy()), data/mpqc-2.3.1/src/lib/math/scmat/distdiag.cc:331:61: [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. DistDiagSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/distdiag.cc:333: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. return new SCMatrixListSubblockIter(access, blocklist); data/mpqc-2.3.1/src/lib/math/scmat/distdiag.cc:337:59: [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. DistDiagSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/distdiag.cc:339:43: [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. return new DistSCMatrixListSubblockIter(access, blocklist, messagegrp()); data/mpqc-2.3.1/src/lib/math/scmat/distrect.cc:929:57: [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. DistSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/distrect.cc:931: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. return new SCMatrixListSubblockIter(access, blocklist); data/mpqc-2.3.1/src/lib/math/scmat/distrect.cc:935:55: [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. DistSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/distrect.cc:937:43: [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. return new DistSCMatrixListSubblockIter(access, blocklist, messagegrp()); data/mpqc-2.3.1/src/lib/math/scmat/distsymm.cc:525:61: [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. DistSymmSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/distsymm.cc:527: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. return new SCMatrixListSubblockIter(access, blocklist); data/mpqc-2.3.1/src/lib/math/scmat/distsymm.cc:531:59: [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. DistSymmSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/distsymm.cc:533:43: [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. return new DistSCMatrixListSubblockIter(access, blocklist, messagegrp()); data/mpqc-2.3.1/src/lib/math/scmat/distvect.cc:451:57: [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. DistSCVector::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/distvect.cc:453: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. return new SCMatrixListSubblockIter(access, blocklist); data/mpqc-2.3.1/src/lib/math/scmat/distvect.cc:457:55: [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. DistSCVector::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/distvect.cc:459:43: [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. return new DistSCMatrixListSubblockIter(access, blocklist, messagegrp()); data/mpqc-2.3.1/src/lib/math/scmat/localdiag.cc:224: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. LocalDiagSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/localdiag.cc:233:40: [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. = new SCMatrixSimpleSubblockIter(access, block.pointer()); data/mpqc-2.3.1/src/lib/math/scmat/localdiag.cc:238:60: [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. LocalDiagSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/localdiag.cc:246:23: [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. return local_blocks(access); data/mpqc-2.3.1/src/lib/math/scmat/localrect.cc:839:58: [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. LocalSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/localrect.cc:848:40: [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. = new SCMatrixSimpleSubblockIter(access, block.pointer()); data/mpqc-2.3.1/src/lib/math/scmat/localrect.cc:853:56: [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. LocalSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/localrect.cc:861:23: [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. return local_blocks(access); data/mpqc-2.3.1/src/lib/math/scmat/localsymm.cc:783: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. LocalSymmSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/localsymm.cc:792:40: [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. = new SCMatrixSimpleSubblockIter(access, block.pointer()); data/mpqc-2.3.1/src/lib/math/scmat/localsymm.cc:797:60: [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. LocalSymmSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/localsymm.cc:805:23: [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. return local_blocks(access); data/mpqc-2.3.1/src/lib/math/scmat/localvect.cc:323:58: [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. LocalSCVector::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/localvect.cc:332:40: [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. = new SCMatrixSimpleSubblockIter(access, block.pointer()); data/mpqc-2.3.1/src/lib/math/scmat/localvect.cc:337:56: [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. LocalSCVector::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/localvect.cc:345:23: [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. return local_blocks(access); data/mpqc-2.3.1/src/lib/math/scmat/repl.cc:90:12: [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. Access access, data/mpqc-2.3.1/src/lib/math/scmat/repl.cc:96:28: [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. SCMatrixListSubblockIter(access, list), data/mpqc-2.3.1/src/lib/math/scmat/repl.cc:108:7: [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. if (access() == Write || access() == Accum) { data/mpqc-2.3.1/src/lib/math/scmat/repl.cc:108:28: [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. if (access() == Write || access() == Accum) { data/mpqc-2.3.1/src/lib/math/scmat/repldiag.cc:292:61: [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. ReplDiagSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/repldiag.cc:294:43: [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. return new ReplSCMatrixListSubblockIter(access, blocklist, data/mpqc-2.3.1/src/lib/math/scmat/repldiag.cc:300:59: [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. ReplDiagSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/repldiag.cc:310:43: [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. return new ReplSCMatrixListSubblockIter(access, allblocklist, data/mpqc-2.3.1/src/lib/math/scmat/replrect.cc:1105:57: [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. ReplSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/replrect.cc:1107:43: [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. return new ReplSCMatrixListSubblockIter(access, blocklist, data/mpqc-2.3.1/src/lib/math/scmat/replrect.cc:1113:55: [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. ReplSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/replrect.cc:1124:43: [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. return new ReplSCMatrixListSubblockIter(access, allblocklist, data/mpqc-2.3.1/src/lib/math/scmat/replsymm.cc:1078:61: [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. ReplSymmSCMatrix::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/replsymm.cc:1080:43: [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. return new ReplSCMatrixListSubblockIter(access, blocklist, data/mpqc-2.3.1/src/lib/math/scmat/replsymm.cc:1086:59: [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. ReplSymmSCMatrix::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/replsymm.cc:1097:43: [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. return new ReplSCMatrixListSubblockIter(access, allblocklist, data/mpqc-2.3.1/src/lib/math/scmat/replvect.cc:385:57: [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. ReplSCVector::local_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/replvect.cc:387:43: [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. return new ReplSCMatrixListSubblockIter(access, blocklist, data/mpqc-2.3.1/src/lib/math/scmat/replvect.cc:393:55: [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. ReplSCVector::all_blocks(SCMatrixSubblockIter::Access access) data/mpqc-2.3.1/src/lib/math/scmat/replvect.cc:403:43: [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. return new ReplSCMatrixListSubblockIter(access, allblocklist, data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:341:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(label,(nt%2) ? "E'" : "Eg"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:343:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(label,"E%d%s", ei, (nt%2) ? "'" : "g"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:348:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(label,(nt%2) ? "E\"" : "Eu"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:350:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(label,"E%d%s", ei, (nt%2) ? "\"" : "u"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:918:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(label,"E%d%s", ei, (nt%2) ? "'" : "g"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:921:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(label,"E%d%s", ei, (nt%2) ? "\"" : "u"); data/mpqc-2.3.1/src/lib/util/class/class.cc:64:53: [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. ParentClass::ParentClass(ClassDesc*classdesc,Access access,int is_virtual): data/mpqc-2.3.1/src/lib/util/class/class.cc:65:11: [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. _access(access), data/mpqc-2.3.1/src/lib/util/class/class.cc:111:20: [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). char* tokens = ::strcpy(new char[strlen(parents)+1],parents); data/mpqc-2.3.1/src/lib/util/class/class.cc:145:44: [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. access, data/mpqc-2.3.1/src/lib/util/class/class.cc:291:33: [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). classlib_search_path_ = ::strcpy(new char[strlen(tmp)+1],tmp); data/mpqc-2.3.1/src/lib/util/class/class.cc:319:18: [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). classname_ = ::strcpy(new char[strlen(name)+1],name); data/mpqc-2.3.1/src/lib/util/class/class.cc:474: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. if (parents[i].access() == ParentClass::Public) { data/mpqc-2.3.1/src/lib/util/class/class.cc:477: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. else if (parents[i].access() == ParentClass::Protected) { data/mpqc-2.3.1/src/lib/util/class/class.cc:521: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(path, classlib_search_path_); data/mpqc-2.3.1/src/lib/util/class/class.cc:528:7: [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(filename,dir); data/mpqc-2.3.1/src/lib/util/class/class.cc:551:23: [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(libname, dir); data/mpqc-2.3.1/src/lib/util/class/class.cc:553:23: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(libname, lib); data/mpqc-2.3.1/src/lib/util/class/class.h:80:12: [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. Access access() const { return _access; } data/mpqc-2.3.1/src/lib/util/class/class.h:288:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr,errmsg,args); data/mpqc-2.3.1/src/lib/util/class/class.h:309:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr,errmsg,args); data/mpqc-2.3.1/src/lib/util/class/scexception.cc:145:23: [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). if (value_) strcpy(value_, value); data/mpqc-2.3.1/src/lib/util/group/globcnt.cc:174:10: [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). return strcpy(new char[strlen(tmp)+1], tmp); data/mpqc-2.3.1/src/lib/util/group/messimpl.cc:237:19: [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(currentbuffer,J->second->name()); data/mpqc-2.3.1/src/lib/util/keyval/ipv2.cc:74:19: [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). filename_ = strcpy(new char[strlen(filename)+1], filename); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_cwk.cc:256:7: [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(ch,&keyword[1]); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_cwk.cc:259:7: [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(ch,keyword); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:167:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(val,conv,value) != 1) return Type; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:251:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newname,"%s:%s",kt->keyword,currentname); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:254:18: [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). else newname = strcpy((char*)malloc(strlen(kt->keyword)+1),kt->keyword); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:326: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(tmp,val); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:391: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(newkey,keyword); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:396:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newkey,index); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:93:7: [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(newmsg,msg); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:95:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newmsg,lastkeyword); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:96:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newmsg,&poskey[2]); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:131:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(lastkeyword,kt->keyword); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_karray.cc:62:5: [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(indices,index); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_parse.cc:582:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/mpqc-2.3.1/src/lib/util/keyval/ipv2_parse.cc:1314:35: [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(yyval.str, yyvsp[-2].str); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_parse.cc:1315:35: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(yyval.str, yyvsp[0].str); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:117: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(keyword,prefix); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:121: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(keyword,prefix); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:126:33: [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). if (dir && (file[0] != '/')) strcpy(dirfile,dir); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:128:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(dirfile,file); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:206:7: [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(newkey,keyword); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:210:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newkey,pl->string); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:384: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(r,s); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:568:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). if (s1) strcat(r,s1); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:570:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(r,s2); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_scan.cc:679:19: [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(yylval.str,yytext); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_scan.cc:690:19: [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(yylval.str,&yytext[1]); data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:178:22: [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). if (result) return strcpy(new char[strlen(result)+1], result); data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:274:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (key) sprintf(newkey,"%s:%d",key,n1); data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:280:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (key) sprintf(newkey,"%s:%d:%d",key,n1,n2); data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:447: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(newkey,key); \ data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:90: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(filespec,keyprefix); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:94: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(dirspec,keyprefix); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:105:23: [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). directory = strcpy(new char[strlen(tmp)+1], tmp); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:117:23: [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). directory = strcpy(new char[strlen(dir)+1], dir); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:127:11: [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(fullname,directory); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:128:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(fullname,filename); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:152: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(filespec,keyprefix); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:156: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(dirspec,keyprefix); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:167:23: [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). directory = strcpy(new char[strlen(tmp)+1], tmp); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:179:23: [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). directory = strcpy(new char[strlen(dir)+1], dir); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:189:11: [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(fullname,directory); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:190:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(fullname,filename); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:44:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newkey,"%s:%d",key,n1); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:49:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newkey,"%s:%d:%d",key,n1,n2); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:54:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newkey,"%s:%d:%d:%d",key,n1,n2,n3); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:59:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newkey,"%s:%d:%d:%d:%d",key,n1,n2,n3,n4); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:129:23: [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). if (n_dim == 0) strcpy(newtoken,pref); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:135:7: [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(prefix,newtoken); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:175:7: [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(newkey,key); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:180:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newkey,"%s:%s",prefix,key); data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:277:8: [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). _val(strcpy(new char[strlen(val)+1],val)) data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:281:8: [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). _val(strcpy(new char[strlen(val._val)+1],val._val)) data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:382:24: [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). _val_to_delete = strcpy(new char[strlen(val)+1], val); data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:400:24: [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). _val_to_delete = strcpy(new char[strlen(val)+1], val); data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:420:24: [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). _val_to_delete = strcpy(new char[strlen(val._val)+1], val._val); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:95:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cmd,a); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:289:7: [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(exec_, exec); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:302:7: [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(prefix_, p); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:344:7: [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(cmd_, cmd); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:389:7: [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. system(cmd); data/mpqc-2.3.1/src/lib/util/misc/formio.cc:61: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(res, basename); data/mpqc-2.3.1/src/lib/util/misc/formio.cc:62:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(res, ext); data/mpqc-2.3.1/src/lib/util/misc/formio.cc:73:27: [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). default_basename_ = strcpy(new char[strlen(basename)+1], basename); data/mpqc-2.3.1/src/lib/util/misc/formio.cc:294:9: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. if (vsprintf(str, fmt, args) > 1023) { data/mpqc-2.3.1/src/lib/util/misc/newstring.h:43: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(ret,s); data/mpqc-2.3.1/src/lib/util/misc/regtime.cc:101:11: [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). name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/util/misc/string.h:13:19: [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). return string ? strcpy ((char *) malloc (strlen (string) + 1), string) : 0; data/mpqc-2.3.1/src/lib/util/misc/units.cc:60:25: [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). if (strrep) strrep_ = strcpy(new char[strlen(strrep)+1], strrep); data/mpqc-2.3.1/src/lib/util/misc/units.cc:68:29: [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). if (strrep) strrep_ = strcpy(new char[strlen(strrep)+1], strrep); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/init.cc:72:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s%s", userhome, "/.psirc"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/open.cc:57:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fullpath, "%s%s.%u", path, name, unit); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/open.cc:59:5: [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(this_unit->vol[i].path,fullpath); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/write.cc:44:5: [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(this_entry->key,key); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/write_block.cc:36:7: [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(this_entry->key,key); data/mpqc-2.3.1/src/lib/util/render/animate.cc:64:21: [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). if (name) name_ = strcpy(new char[strlen(name)+1],name); data/mpqc-2.3.1/src/lib/util/render/find.h:41:46: [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. Parameter<T2>& (T1::*access)(), data/mpqc-2.3.1/src/lib/util/render/find.h:47:23: [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. if ((stack[i]->*access)().is_set()) { data/mpqc-2.3.1/src/lib/util/render/find.h:48:43: [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. if (!have_result || (stack[i]->*access)().overrides()) { data/mpqc-2.3.1/src/lib/util/render/find.h:49:36: [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. result = (stack[i]->*access)().value(); data/mpqc-2.3.1/src/lib/util/render/find.h:59:55: [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. Parameter<int>& (Appearance::*access)(), data/mpqc-2.3.1/src/lib/util/render/find.h:65:33: [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. if ((stack[i].pointer()->*access)().is_set()) { data/mpqc-2.3.1/src/lib/util/render/find.h:66:53: [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. if (!have_result || (stack[i].pointer()->*access)().overrides()) { data/mpqc-2.3.1/src/lib/util/render/find.h:67:46: [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. result = (stack[i].pointer()->*access)().value(); data/mpqc-2.3.1/src/lib/util/render/object.cc:68:21: [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). if (name) name_ = strcpy(new char[strlen(name)+1],name); data/mpqc-2.3.1/src/lib/util/render/oogl.cc:93: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(file, base); data/mpqc-2.3.1/src/lib/util/render/oogl.cc:96:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(file,animated_object->name()); data/mpqc-2.3.1/src/lib/util/render/oogl.cc:98:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(file,suf); data/mpqc-2.3.1/src/lib/util/render/oogl.cc:103: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(basename_, base); data/mpqc-2.3.1/src/lib/util/render/oogl.cc:106:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(basename_,animated_object->name()); data/mpqc-2.3.1/src/lib/util/render/render.cc:178:22: [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). basename = strcpy(new char[strlen(cbasename)+1],cbasename); data/mpqc-2.3.1/src/lib/util/render/render.cc:204:29: [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). if (filename) filename_ = strcpy(new char[strlen(filename)+1],filename); data/mpqc-2.3.1/src/lib/util/render/render.cc:214:29: [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). if (basename) basename_ = strcpy(new char[strlen(basename)+1],basename); data/mpqc-2.3.1/src/lib/util/render/render.cc:236:14: [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). file = strcpy(new char[strlen(filename_) + 1],filename_); data/mpqc-2.3.1/src/lib/util/render/render.cc:246:7: [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(file, basename_); data/mpqc-2.3.1/src/lib/util/render/render.cc:249:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(file, objectname); data/mpqc-2.3.1/src/lib/util/render/render.cc:251:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(file, ext); data/mpqc-2.3.1/src/lib/util/render/render.cc:257:7: [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(file, objectname); data/mpqc-2.3.1/src/lib/util/render/render.cc:258:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(file, ext); data/mpqc-2.3.1/src/lib/util/state/state_text.cc:259:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(line," version of class %s is %d\n", data/mpqc-2.3.1/src/lib/util/state/state_text.cc:273:3: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(line,"object of class %s being written\n", classname); data/mpqc-2.3.1/src/lib/util/state/statein.cc:542:24: [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). else classname = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/util/state/statein.cc:546:19: [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). classname = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/util/state/statein.cc:759:22: [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). if (d.name) name = strcpy(new char[strlen(d.name)+1], d.name); data/mpqc-2.3.1/src/lib/util/state/statetest.cc:108:9: [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). t1c = strcpy(new char[strlen(t1)+1],t1); data/mpqc-2.3.1/src/lib/util/state/statetest.cc:109:9: [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). t2c = strcpy(new char[strlen(t2)+1],t2); data/mpqc-2.3.1/src/lib/util/state/statetest.cc:123:9: [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). t1c = strcpy(new char[strlen(t1)+1],t1); data/mpqc-2.3.1/src/lib/util/state/statetest.cc:124:9: [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). t2c = strcpy(new char[strlen(t2)+1],t2); data/mpqc-2.3.1/src/lib/chemistry/cca/MPQC_SimpleDriver_Impl.cc:186:20: [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 *init_dir = getenv("CCACHEM_RESULTS_DIR"); data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:268:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((libdir = getenv("SCLIBDIR")) != 0) { data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:55:13: [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. dir_[1] = getenv("SCLIBDIR"); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/integral.cc:143:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. keyval_string = getenv("INTEGRAL"); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:1128:7: [3] (random) seed48: 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. seed48(&seed); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:1136:29: [3] (random) drand48: 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. int ish = int(drand48()*nshell); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:1137:29: [3] (random) drand48: 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. int jsh = int(drand48()*ish); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:1138:29: [3] (random) drand48: 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. int ksh = int(drand48()*ish); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:1140:39: [3] (random) drand48: 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 (ish==ksh) lsh = int(drand48()*jsh); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:1141:30: [3] (random) drand48: 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. else lsh = int(drand48()*ksh); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc:537:7: [3] (random) seed48: 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. seed48(&seed); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc:545:29: [3] (random) drand48: 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. int ish = int(drand48()*nshell); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc:546:29: [3] (random) drand48: 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. int jsh = int(drand48()*ish); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc:547:29: [3] (random) drand48: 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. int ksh = int(drand48()*ish); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc:549:39: [3] (random) drand48: 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 (ish==ksh) lsh = int(drand48()*jsh); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc:550:30: [3] (random) drand48: 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. else lsh = int(drand48()*ksh); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:35:18: [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 *psibin = getenv("PSIBIN"); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:92:12: [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. psibin = getenv("PSIBIN"); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:122:18: [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 *path = getenv("PATH"); data/mpqc-2.3.1/src/lib/math/isosurf/implicit.c:370:5: [3] (random) srand: 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. srand(1); data/mpqc-2.3.1/src/lib/math/scmat/elemop.cc:912:13: [3] (random) drand48: 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. i.set(drand48()*(drand48()<0.5?1.0:-1.0)); data/mpqc-2.3.1/src/lib/math/scmat/elemop.cc:912:24: [3] (random) drand48: 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. i.set(drand48()*(drand48()<0.5?1.0:-1.0)); data/mpqc-2.3.1/src/lib/math/scmat/matrixtest.cc:58:29: [3] (random) drand48: 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. m.set_element(i,j,drand48()); data/mpqc-2.3.1/src/lib/math/scmat/matrixtest.cc:68:29: [3] (random) drand48: 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. m.set_element(i,j,drand48()); data/mpqc-2.3.1/src/lib/math/scmat/matrixtest.cc:77:23: [3] (random) drand48: 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. m.set_element(i,drand48()); data/mpqc-2.3.1/src/lib/math/scmat/svd.c:85:20: [3] (random) drand48: 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. *tmp++ = drand48() * ((drand48()<0.5)?1.0:-1.0); data/mpqc-2.3.1/src/lib/math/scmat/svd.c:85:34: [3] (random) drand48: 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. *tmp++ = drand48() * ((drand48()<0.5)?1.0:-1.0); data/mpqc-2.3.1/src/lib/util/class/class.cc:282: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. const char* tmp = getenv("LD_LIBRARY_PATH"); data/mpqc-2.3.1/src/lib/util/container/avltest.cc:111:18: [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. d->change1(random()); data/mpqc-2.3.1/src/lib/util/container/avltest.cc:159:15: [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. int d = random(); data/mpqc-2.3.1/src/lib/util/container/avltest.cc:187:15: [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. int d = random(); data/mpqc-2.3.1/src/lib/util/group/file.cc:176: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. keyval_string = getenv("FILEGRP"); data/mpqc-2.3.1/src/lib/util/group/memory.cc:151: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. keyval_string = getenv("MEMORYGRP"); data/mpqc-2.3.1/src/lib/util/group/messimpl.cc:135: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. keyval_string = getenv("MESSAGEGRP"); data/mpqc-2.3.1/src/lib/util/group/messmpi.cc:220:7: [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. if (getenv("MPIMESSAGEGRP_MESSAGEGRP_COLLECTIVES")) data/mpqc-2.3.1/src/lib/util/group/messshm.cc:153:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. int nprocs = atoi(getenv("NUMPROC")); data/mpqc-2.3.1/src/lib/util/group/pooltest.cc:231:15: [3] (random) mrand48: 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 (mrand48() > 0) { data/mpqc-2.3.1/src/lib/util/group/pooltest.cc:233:29: [3] (random) lrand48: 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. size_t size = lrand48() & 0x03ff; data/mpqc-2.3.1/src/lib/util/group/pooltest.cc:241:32: [3] (random) drand48: 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. int loc = (int) (drand48()*i); data/mpqc-2.3.1/src/lib/util/group/rnglocktest.cc:50:19: [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. int start = random()%size; data/mpqc-2.3.1/src/lib/util/group/rnglocktest.cc:51:20: [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. int length = random()%30; data/mpqc-2.3.1/src/lib/util/group/rnglocktest.cc:55:17: [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. int val = random()%2 ? -1:1; data/mpqc-2.3.1/src/lib/util/group/thread.cc:208:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. keyval_string = getenv("THREADGRP"); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:99:19: [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. directory = getenv("SCLIBDIR"); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:161:19: [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. directory = getenv("SCLIBDIR"); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:325:26: [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. int has_x11_display = (getenv("DISPLAY") != 0); data/mpqc-2.3.1/src/lib/util/options/README.cc:86:22: [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. if ( option.parse(getenv("A_OUT"), "A_OUT") < 1 ) data/mpqc-2.3.1/src/lib/util/psi3/libpsio/init.cc:71:14: [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. userhome = getenv("HOME"); data/mpqc-2.3.1/src/bin/molrender/main.cc:56:19: [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). level = atoi(argv[i]); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:662:15: [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 limit = atoi(options.retrieve("l")); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:897:13: [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 ic[64]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:898:13: [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(ic,"%02d",i); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:906:13: [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 ic[64]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:907:13: [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(ic,"%02d",i); data/mpqc-2.3.1/src/bin/scls/scls.cc:115:33: [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 **newfiles = new char *[nfile+1]; data/mpqc-2.3.1/src/bin/scls/scls.cc:116:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newfiles, files, sizeof(char*)*nfile); data/mpqc-2.3.1/src/bin/scpr/scpr.cc:122:39: [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 **newobjects = new char *[nobject+1]; data/mpqc-2.3.1/src/bin/scpr/scpr.cc:123:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newobjects, objects, sizeof(char*)*nobject); data/mpqc-2.3.1/src/bin/scpr/scpr.cc:131:33: [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 **newfiles = new char *[nfile+1]; data/mpqc-2.3.1/src/bin/scpr/scpr.cc:132:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newfiles, files, sizeof(char*)*nfile); data/mpqc-2.3.1/src/lib/chemistry/cca/socket.cc:77: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 hostname[256]; data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:364:23: [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 ustring[256]; data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:374:15: [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 assignment[256]; data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:395:15: [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 assignment[256]; data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:442:19: [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 assignment[256]; data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:475:7: [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). Z = atoi(name.c_str()); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:927: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 label[80]; data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:933:9: [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(label,"s%d",labelc); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:965: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 label[80]; data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:982:15: [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(label,"b%d",labelc); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:1012:15: [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(label,"b%d",labelc); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:1015:15: [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(label,"b%d",labelc); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:1048: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 label[80]; data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:1079:21: [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(label,"st%d",labelc); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:1084:21: [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(label,"t%d",labelc); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:1101: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 label[80]; data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:1118:3: [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(label,"o%d",labelc); data/mpqc-2.3.1/src/lib/chemistry/molecule/hess.cc:343:7: [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 linebuf[nline]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:252:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mass_,mol.mass_,natoms_*sizeof(double)); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:256:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(charges_,mol.charges_,natoms_*sizeof(double)); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:259:25: [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. labels_ = new char *[natoms_]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:273:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(r_[0], mol.r_[0], natoms_*3*sizeof(double)); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:275:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(Z_, mol.Z_, natoms_*sizeof(int)); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:314:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newZ,Z_,sizeof(int)*natoms_); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:315:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newr0,r_[0],sizeof(double)*natoms_*3); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:317:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newlabels,labels_,sizeof(char*)*natoms_); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:323:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newcharges,charges_,sizeof(double)*natoms_); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:329:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newmass,mass_,sizeof(double)*natoms_); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:486:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(result, charges_, sizeof(double)*natom()); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1261:7: [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 line[max_line]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1269:11: [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 element[3]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1271:11: [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 name[5]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1279:19: [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 resName[4]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1333:11: [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 field[9]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1367: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 symb[4]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molfreq.cc:494:11: [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 name[128]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molfreq.cc:558: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 name[64]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molfreq.cc:559:3: [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(name,"%02d",iobject); data/mpqc-2.3.1/src/lib/chemistry/molecule/molshape.cc:706: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 filename[80]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molshape.cc:707:3: [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(filename,"spherelist_%d.oogl",output_number); data/mpqc-2.3.1/src/lib/chemistry/molecule/molshape.cc:708:14: [2] (misc) fopen: 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). FILE* fp = fopen(filename,"w"); data/mpqc-2.3.1/src/lib/chemistry/molecule/molsymm.cc:133:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp,equiv_[i_equiv],nequiv_[i_equiv]*sizeof(int)); data/mpqc-2.3.1/src/lib/chemistry/molecule/symmcoor.cc:356:7: [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 label[80]; data/mpqc-2.3.1/src/lib/chemistry/molecule/symmcoor.cc:358:11: [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(label,"symm_coord_%03d",i+1); data/mpqc-2.3.1/src/lib/chemistry/molecule/symmcoor.cc:361:11: [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(label,"asymm_coord_%03d",i+1); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/aotoso.cc:412:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(linorbcop[0], linorb[0], nfuncuniq*nfuncall*sizeof(double)); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:518: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 o[10000]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:619:11: [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 elemstr[512]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:628:15: [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 keyword[256]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:629:15: [2] (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). Risk is low because the source is a constant string. strcpy(keyword,":basis:"); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:645:47: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. if (elemstr[0] != '\0') strcat(elemstr,", "); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:673:50: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. if (last_elem_exists == 2) strcat(elemstr,", "); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:61:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(dir_[1], "/basis"); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:133:11: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(path, ".kv"); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.h:37: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 *dir_[2]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:653: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 keyword[KeyVal::MaxKeywordLength]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:686: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 keyword[KeyVal::MaxKeywordLength]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:705: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 keyword[KeyVal::MaxKeywordLength]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:752: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 keyword[KeyVal::MaxKeywordLength]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:894: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 keyword[KeyVal::MaxKeywordLength],prefix[KeyVal::MaxKeywordLength]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/obint.cc:92:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(alloced_charges_, charges, sizeof(double)*ncharges); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/shellrot.cc:104:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(r[i],rot.r[i],sizeof(double)*n_); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:650:22: [2] (misc) fopen: 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). teout[te_type] = fopen(teout_filename,"w"); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/comp_eri.cc:79: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 section[30]; data/mpqc-2.3.1/src/lib/chemistry/qc/cints/comp_eri.cc:216:3: [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(section,"erep am=%02d",am12+am34); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/comp_eri.cc:399:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(prim_ints_[buffer_offset]),raw_data,sizeof(REALTYPE)*size); data/mpqc-2.3.1/src/lib/chemistry/qc/cints/comp_grt.cc:79: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 section[30]; data/mpqc-2.3.1/src/lib/chemistry/qc/cints/comp_grt.cc:216:3: [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(section,"erep am=%02d",am12+am34); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc:76:17: [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. result = (char *)malloc(strlen(atominfo[i].symbol)+1); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc:91: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 tmpsym[10]; data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc:113: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 tmpatom[50]; data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/comp1e.cc:1238:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fastbuf,cartesianbuffer,sizeof(double)*ni*nj); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/comp1e.cc:1258:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cartesianbuffer,fastbuf,sizeof(double)*ni*nj); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/comp2e.cc:123: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 section[30]; data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/comp2e.cc:203:3: [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(section,"erep am=%02d",am12+am34); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/tformv3.cc:1117:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pureint, scratch, sizeof(double)*nfunc1234); data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/csgrad.cc:942:18: [2] (misc) fopen: 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). FILE *dout = fopen(doutname,"w"); data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/util.cc:94:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(indices_[0], ii, nindex_*sizeof(int)); data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/util.cc:107:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(indices_[i+1], indices_[i], nindex_*sizeof(int)); data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/util.cc:110:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(indices_[i], ii, nindex_*sizeof(int)); data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/util.cc:119:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(indices_[ncontrib_], ii, nindex_*sizeof(int)); data/mpqc-2.3.1/src/lib/chemistry/qc/mbpt/util.cc:156:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(indices_all[contrib_offset+i], indices_[i], sizeof(int)*nindex_); data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_ijxy.cc:300:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void*)rs_ptr,(const void*)xs_ints,xs_size); data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_ijxy.cc:361:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void*)xs_ptr,(const void*)ijxy_ints,xy_size); data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_ikjy.cc:268:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void*)sx_ptr,(const void*)ijxy_ints,xy_size); data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_ixjy.cc:268:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void*)sq_ptr,(const void*)sx_ints,sx_size); data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/compute_ixjy.cc:330:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void*)sx_ptr,(const void*)ijxy_ints,xy_size); data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_node0file.cc:130:17: [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). datafile_ = open(filename_,O_WRONLY|O_APPEND,0644); data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_node0file.cc:200:17: [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). datafile_ = open(filename_,O_WRONLY|O_APPEND,0644); data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_node0file.cc:266:17: [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). datafile_ = open(filename_, O_RDONLY); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psifile11.cc:37: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 line[100]; data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psifile11.cc:54: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). PsiFile11::open() data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psifile11.cc:56: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). file_.open(filename_.c_str(),ios::in); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psifile11.cc:71: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). file_.open(filename_.c_str(),ios::out | ios::trunc); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psifile11.h:39: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). void open(); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:46: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). PsiInput::open() data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:48: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). file_.open(filename_.c_str(),ios::out); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:235:2: [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 amstring[4]; data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:236:2: [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(amstring,"(%c\n",Shell.amchar(con)); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:240: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 primstring[50]; data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:241: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(primstring,"(%20.10lf %20.10lf)\n", data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:271:5: [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(scrname,"volume%d",i+1); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.h:48: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). void open(); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiwfn.cc:47:3: [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(memory_,"(%ld B)",bytes); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiwfn.cc:94: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). file11->open(); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiwfn.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). input->open(); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiwfn.cc:308: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). input->open(); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiwfn.cc:351: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). input->open(); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiwfn.cc:410: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). input->open(); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiwfn.cc:477: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). input->open(); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/clscf.cc:84:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_ndocc_, ndocc_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/clscf.cc:132:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_ndocc_, ndocc_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/clscf.cc:324:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ndocc_,newocc,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/clscf.cc:332:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_ndocc_,ndocc_,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.cc:93:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_ndocc_, ndocc_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.cc:95:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_nsocc_, nsocc_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.cc:162:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_ndocc_, ndocc_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.cc:164:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_nsocc_, nsocc_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.cc:454:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ndocc_,newdocc,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.cc:455:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nsocc_,newsocc,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.cc:464:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_ndocc_,ndocc_,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/hsosscf.cc:471:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_nsocc_,nsocc_,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/ossscf.cc:423:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ndocc_,newdocc,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/tcscf.cc:477:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ndocc_,newdocc,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.cc:117:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_nalpha_, nalpha_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.cc:119:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_nbeta_, nbeta_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.cc:206:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_nalpha_, nalpha_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.cc:208:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_nbeta_, nbeta_, sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.cc:641:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nalpha_,newalpha,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.cc:642:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nbeta_,newbeta,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.cc:650:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_nalpha_,nalpha_,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/chemistry/qc/scf/uscf.cc:656:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(initial_nbeta_,nbeta_,sizeof(int)*nirrep_); data/mpqc-2.3.1/src/lib/math/isosurf/implicit.c:800:8: [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. static char allocwarn[10000]; data/mpqc-2.3.1/src/lib/math/isosurf/implicit.c:801:8: [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. static char delwarn[10000]; data/mpqc-2.3.1/src/lib/math/isosurf/shape.cc:847:19: [2] (misc) fopen: 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). FILE* testout = fopen("testout.vect", "w"); data/mpqc-2.3.1/src/lib/math/isosurf/surfst.cc:348:11: [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 filename[100]; data/mpqc-2.3.1/src/lib/math/isosurf/surfst.cc:350:11: [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(filename, "surfst%04d.oogl", pass); data/mpqc-2.3.1/src/lib/math/optimize/opt.cc:81:5: [2] (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). Risk is low because the source is a constant string. strcpy(ckpt_file,"opt_ckpt.dat"); data/mpqc-2.3.1/src/lib/math/scmat/block.cc:243:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret->data, data, sizeof(double)*ndat()); data/mpqc-2.3.1/src/lib/math/scmat/block.cc:398:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret->data, data, sizeof(double)*ndat()); data/mpqc-2.3.1/src/lib/math/scmat/block.cc:562:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret->data, data, sizeof(double)*ndat()); data/mpqc-2.3.1/src/lib/math/scmat/block.cc:724:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret->data, data, sizeof(double)*ndat()); data/mpqc-2.3.1/src/lib/math/scmat/cmatrix.c:121:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a[0],tmp,sizeof(double)*nr*nc); data/mpqc-2.3.1/src/lib/math/scmat/replrect.cc:856:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cm, cols[m-csi], sizeof(double)*nr); data/mpqc-2.3.1/src/lib/math/scmat/replrect.cc:921:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cols[m-cstart], cm, sizeof(double)*nr); data/mpqc-2.3.1/src/lib/math/scmat/replsymm.cc:378:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(matrix, lm->matrix, sizeof(double)*d); data/mpqc-2.3.1/src/lib/math/scmat/replsymm.cc:388:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(matrix, m, sizeof(double)*d); data/mpqc-2.3.1/src/lib/math/scmat/replsymm.cc:577:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tivec, ivec, sizeof(int)*nvec); data/mpqc-2.3.1/src/lib/math/scmat/replsymm.cc:578:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rect[0], eigvecs[0], sizeof(double)*n*nvec); data/mpqc-2.3.1/src/lib/math/scmat/svd.c:65:11: [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 m = atoi(argv[1]); data/mpqc-2.3.1/src/lib/math/scmat/svd.c:66:11: [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 n = atoi(argv[2]); data/mpqc-2.3.1/src/lib/math/symmetry/chartab.cc:116:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_inv,ct._inv,sizeof(int)*g); data/mpqc-2.3.1/src/lib/math/symmetry/chartab.cc:234:10: [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). nt = atoi(&symb[1]); data/mpqc-2.3.1/src/lib/math/symmetry/chartab.cc:262:10: [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). nt = atoi(&symb[1]); data/mpqc-2.3.1/src/lib/math/symmetry/chartab.cc:288:10: [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). nt = atoi(&symb[1]); data/mpqc-2.3.1/src/lib/math/symmetry/corrtab.cc:151:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newgamma,gamma_[i],ngamma_[i]*sizeof(int)); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:69: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 label[4]; data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:166:9: [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(label,"E%d",ei); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:239:7: [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 lab[4]; data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:243:9: [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(lab,"E%d",ei); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:431:11: [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(label,"Eg"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:433:11: [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(label,"E%dg",ei); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:439:11: [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(label,"Eu"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:441:11: [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(label,"E%du", ei); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:507:11: [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(label,"E%d",ei); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:601:9: [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 lab[4]; data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:605:11: [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(lab,"E%d",ei); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:692:11: [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(label,"E%dg",ei); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:694:11: [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(label,"E%du",ei); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:779:11: [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(label,"E%d",ei); data/mpqc-2.3.1/src/lib/util/class/class.cc:529:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(filename,"/classes"); data/mpqc-2.3.1/src/lib/util/class/class.cc:532:18: [2] (misc) fopen: 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). FILE* fp = fopen(filename, "r"); data/mpqc-2.3.1/src/lib/util/class/class.cc:538:11: [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[bufsize]; data/mpqc-2.3.1/src/lib/util/group/file.cc:91: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). FileGrp::open() data/mpqc-2.3.1/src/lib/util/group/file.cc:94:17: [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). datafile_ = open(filename_, O_RDWR); data/mpqc-2.3.1/src/lib/util/group/file.h:85: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). void open(); data/mpqc-2.3.1/src/lib/util/group/globcnt.cc:97:12: [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). semid_ = atoi(stringrep); data/mpqc-2.3.1/src/lib/util/group/globcnt.cc:172: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 tmp[80]; data/mpqc-2.3.1/src/lib/util/group/globcnt.cc:173:3: [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(tmp, "%d", semid_); data/mpqc-2.3.1/src/lib/util/group/memamsg.cc:225:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(i.data(), &data_[i.offset()], i.size()); data/mpqc-2.3.1/src/lib/util/group/memamsg.cc:253:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(i.data(), &data_[i.offset()], i.size()); data/mpqc-2.3.1/src/lib/util/group/memamsg.cc:327:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&data_[i.offset()], i.data(), i.size()); data/mpqc-2.3.1/src/lib/util/group/memamsg.cc:345:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&data_[i.offset()], i.data(), i.size()); data/mpqc-2.3.1/src/lib/util/group/memmtmpi.cc:234:7: [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 name[256]; data/mpqc-2.3.1/src/lib/util/group/memmtmpi.cc:235: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(name, "mpqc.hand.%d", me()); data/mpqc-2.3.1/src/lib/util/group/memmtmpi.cc:236: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). hout.open(name); data/mpqc-2.3.1/src/lib/util/group/memmtmpi.cc:237: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(name, "mpqc.main.%d", me()); data/mpqc-2.3.1/src/lib/util/group/memmtmpi.cc:238: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). mout.open(name); data/mpqc-2.3.1/src/lib/util/group/messimpl.cc:638:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (i==me_) memcpy(&((char*)whole)[offset], part, nbytes); data/mpqc-2.3.1/src/lib/util/group/messmpi.cc:62: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 msg[MPI_MAX_ERROR_STRING+1]; data/mpqc-2.3.1/src/lib/util/group/messmpi.cc:169:17: [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). int dot = open(".",O_RDONLY); data/mpqc-2.3.1/src/lib/util/group/messproc.cc:91:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg->buf,buf,bytes); data/mpqc-2.3.1/src/lib/util/group/messproc.cc:110:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf,i->buf,i->size); data/mpqc-2.3.1/src/lib/util/group/messshm.cc:153:16: [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 nprocs = atoi(getenv("NUMPROC")); data/mpqc-2.3.1/src/lib/util/group/messshm.cc:305:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf,((char*)message) + sizeof(msgbuf_t),size); data/mpqc-2.3.1/src/lib/util/group/messshm.cc:380:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char*)availmsg) + sizeof(msgbuf_t),buf,bytes); data/mpqc-2.3.1/src/lib/util/group/messshm.h:51: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[SHMCOMMBUFSIZE]; data/mpqc-2.3.1/src/lib/util/group/messtest.cc:265: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 ca[nca]; data/mpqc-2.3.1/src/lib/util/group/mstate.cc:114:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buffer[nbuf],d,ncurrent); data/mpqc-2.3.1/src/lib/util/group/mstate.cc:252:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d,&buffer[ibuf],ncurrent); data/mpqc-2.3.1/src/lib/util/group/mstate.cc:550:3: [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). open(filename); data/mpqc-2.3.1/src/lib/util/group/mstate.cc:560:3: [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). open(path); data/mpqc-2.3.1/src/lib/util/group/mstate.cc:606: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). BcastStateInBin::open(const char *path) data/mpqc-2.3.1/src/lib/util/group/mstate.cc:614: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). fbuf->open(path, ios::in); data/mpqc-2.3.1/src/lib/util/group/mstate.h:294:17: [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). virtual int open(const char *name); data/mpqc-2.3.1/src/lib/util/group/pregtime.cc:232:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(min_flops, flops, sizeof(double)*n); data/mpqc-2.3.1/src/lib/util/group/pregtime.cc:234:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(max_flops, flops, sizeof(double)*n); data/mpqc-2.3.1/src/lib/util/group/pregtime.cc:236:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(avg_flops, flops, sizeof(double)*n); data/mpqc-2.3.1/src/lib/util/keyval/ipv2.h:117: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 lastkeyword[KEYWORD_LENGTH]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_cwk.cc:244: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 ch[KEYWORD_LENGTH]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:67: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 copy[10],*s; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:201:10: [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. static char newkey[KEYWORD_LENGTH]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:268:10: [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. static char newkey[KEYWORD_LENGTH]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:361:10: [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. static char newkey[KEYWORD_LENGTH]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:386: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 index[11]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:395:5: [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(index,":%d",v[i]); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_karray.cc:49: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 indices[110],index[10]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_karray.cc:61:5: [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(index,"%d",v[i]); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_karray.cc:102: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 index[10]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_karray.cc:117:5: [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(index,"%d",v[i]); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:110: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 keyword[KEYWORD_LENGTH]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:113: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 dirfile[512]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:118:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(keyword,"dir"); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:122:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(keyword,"files"); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:207:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(newkey,"<<"); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:213:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(newkey,">>"); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:307: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 cindex[10]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:316:3: [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(cindex,"%d",table_row_number); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:472:3: [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(result,"%22.15e",val); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:541:3: [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(key,"%d",karray_indices->i); data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:275:8: [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. else sprintf(newkey,"%d",n1); data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:281:9: [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. else sprintf(newkey,"%d:%d",n1,n2); data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:299: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:305: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:311: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:317: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:323: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:329: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:335: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:341: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:347: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:353: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:360: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:368: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:374: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:381: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:388: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:395: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:402: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:409: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:416: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:423: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:430: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:437: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:460: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((newkey+strlen(newkey)),":%d",vals[i]); \ data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:467: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:474: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:481: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:488: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:495: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:502: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:509: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:516: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:523: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:530: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:91:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(filespec,"files"); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:95:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(dirspec,"dir"); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:153:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(filespec,"files"); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:157:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(dirspec,"dir"); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:128:7: [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 newtoken[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:190: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:199: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 newkey[MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:437: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 lc_kv[20]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:470:9: [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). val = atoi(_val); data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:484:11: [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 tmp[2]; tmp[0] = _val[i]; tmp[1] = '\0'; data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:485: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). dval = dval * 10 + atoi(tmp); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:101: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 aa[2]; data/mpqc-2.3.1/src/lib/util/misc/bug.cc:110: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 a[128]; data/mpqc-2.3.1/src/lib/util/misc/bug.cc:111:3: [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(a,"%d",i); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:312: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 p[128]; data/mpqc-2.3.1/src/lib/util/misc/bug.cc:313:3: [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(p, "%3d: ", i); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:366:7: [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 cmd[cmdlen]; data/mpqc-2.3.1/src/lib/util/misc/exenv.cc:85:29: [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). nullofstream->open("/dev/null"); data/mpqc-2.3.1/src/lib/util/misc/exenv.cc:103:3: [2] (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). Risk is low because the source is a constant string. strcpy(hostname_, "UNKNOWN"); data/mpqc-2.3.1/src/lib/util/misc/exenv.cc:114:7: [2] (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). Risk is low because the source is a constant string. strcpy(username_,"UNKNOWN"); data/mpqc-2.3.1/src/lib/util/misc/exenv.cc:117:3: [2] (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). Risk is low because the source is a constant string. strcpy(username_,"UNKNOWN"); data/mpqc-2.3.1/src/lib/util/misc/exenv.h:52:12: [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. static char hostname_[256]; data/mpqc-2.3.1/src/lib/util/misc/exenv.h:53:12: [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. static char username_[9]; data/mpqc-2.3.1/src/lib/util/misc/formio.cc:146:7: [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 nn[24]; data/mpqc-2.3.1/src/lib/util/misc/formio.cc:147: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(nn,"node %5d:",me_); data/mpqc-2.3.1/src/lib/util/misc/formio.h:98: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 str[1024]; data/mpqc-2.3.1/src/lib/util/misc/units.cc:143:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(unitstring,rest,nchar); data/mpqc-2.3.1/src/lib/util/options/README.cc:106:18: [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). debug_index = atoi(option.retrieve("debug")); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/done.cc:32:12: [2] (misc) fopen: 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). io_out = fopen("psio.dat", "a+"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_filename.cc:26: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 ip_token[PSIO_MAXSTR]; data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_filename.cc:28:3: [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(ip_token,":PSI:FILES:FILE%u:NAME",unit); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_filename.cc:32:3: [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(ip_token,":DEFAULT:FILES:FILE%u:NAME",unit); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_filename.cc:37:3: [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(name, "psiotest"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_filename.cc:48:3: [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(name, "psiotest"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_numvols.cc:23: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 ip_token[PSIO_MAXSTR]; data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_numvols.cc:27:3: [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(ip_token,":PSI:FILES:FILE%u:NVOLUME",unit); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_numvols.cc:31:3: [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(ip_token,":PSI:FILES:DEFAULT:NVOLUME"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_numvols.cc:35:3: [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(ip_token,":DEFAULT:FILES:FILE%u:NVOLUME",unit); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_numvols.cc:39:3: [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(ip_token,":DEFAULT:FILES:DEFAULT:NVOLUME"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_numvols.cc:58: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 ip_token[PSIO_MAXSTR]; data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_numvols.cc:62:3: [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(ip_token,":PSI:FILES:DEFAULT:NVOLUME"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_numvols.cc:66:3: [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(ip_token,":DEFAULT:FILES:DEFAULT:NVOLUME"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:22: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 ip_token[PSIO_MAXSTR]; data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:24:3: [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(ip_token,":PSI:FILES:FILE%u:VOLUME%u",unit,volume+1); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:28:3: [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(ip_token,":PSI:FILES:DEFAULT:VOLUME%u",volume+1); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:32:3: [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(ip_token,":DEFAULT:FILES:FILE%u:VOLUME%u",unit,volume+1); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:36:3: [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(ip_token,":DEFAULT:FILES:DEFAULT:VOLUME%u",volume+1); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:41:26: [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. if(unit == PSIF_CHKPT) sprintf(path, "./"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:42:8: [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. else sprintf(path, "/tmp/"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:56: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 ip_token[PSIO_MAXSTR]; data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:58:3: [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(ip_token,":PSI:FILES:DEFAULT:VOLUME%u",volume+1); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:62:3: [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(ip_token,":DEFAULT:FILES:DEFAULT:VOLUME%u",volume+1); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/get_volpath.cc:67:3: [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(path, "/tmp/"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/init.cc:40: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 filename[PSIO_MAXSTR]; data/mpqc-2.3.1/src/lib/util/psi3/libpsio/init.cc:73:11: [2] (misc) fopen: 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). psirc = fopen(filename, "r"); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/open.cc:33: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 name[PSIO_MAXSTR],path[PSIO_MAXSTR],fullpath[PSIO_MAXSTR]; data/mpqc-2.3.1/src/lib/util/psi3/libpsio/open.cc:69:2: [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). open(this_unit->vol[i].path,O_CREAT|O_RDWR,0644); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/open.cc:75:2: [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). open(this_unit->vol[i].path,O_CREAT|O_RDWR|O_TRUNC,0644); data/mpqc-2.3.1/src/lib/util/render/oogl.cc:114:11: [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 ic[64]; data/mpqc-2.3.1/src/lib/util/render/oogl.cc:115:11: [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(ic,"%03d",i); data/mpqc-2.3.1/src/lib/util/render/render.cc:273: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). fbuf->open(file,ios::out); data/mpqc-2.3.1/src/lib/util/state/state_bin.cc:72: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). StateOutBin::open(const char *f) data/mpqc-2.3.1/src/lib/util/state/state_bin.cc:74: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). int r = StateOutFile::open(f); data/mpqc-2.3.1/src/lib/util/state/state_bin.cc:160:3: [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). open(path); data/mpqc-2.3.1/src/lib/util/state/state_bin.cc:169: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). StateInBin::open(const char *f) data/mpqc-2.3.1/src/lib/util/state/state_bin.cc:172:24: [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). int r = StateInFile::open(f); data/mpqc-2.3.1/src/lib/util/state/state_bin.h: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). int open(const char *name); data/mpqc-2.3.1/src/lib/util/state/state_bin.h:86: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). int open(const char *name); data/mpqc-2.3.1/src/lib/util/state/state_file.cc:55:3: [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). open(path); data/mpqc-2.3.1/src/lib/util/state/state_file.cc:81:19: [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). int StateOutFile::open(const char *path) data/mpqc-2.3.1/src/lib/util/state/state_file.cc:86: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). fbuf->open(path, ios::out); data/mpqc-2.3.1/src/lib/util/state/state_file.cc:115:3: [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). open(path); data/mpqc-2.3.1/src/lib/util/state/state_file.cc:134: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). int StateInFile::open(const char *path) data/mpqc-2.3.1/src/lib/util/state/state_file.cc:139: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). fbuf->open(path, ios::in); data/mpqc-2.3.1/src/lib/util/state/state_file.h:66:17: [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). virtual int open(const char *name); data/mpqc-2.3.1/src/lib/util/state/state_file.h:94:17: [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). virtual int open(const char *name); data/mpqc-2.3.1/src/lib/util/state/state_text.cc:105:3: [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). open(path); data/mpqc-2.3.1/src/lib/util/state/state_text.cc:251: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 line[line_length]; data/mpqc-2.3.1/src/lib/util/state/state_text.cc:257:7: [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 name[line_length]; data/mpqc-2.3.1/src/lib/util/state/state_text.cc:272: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 classname[line_length]; data/mpqc-2.3.1/src/lib/util/state/state_text.cc:413: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 line[line_length]; data/mpqc-2.3.1/src/lib/util/state/statein.cc:541:36: [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). if (isdigit(*name)) number = atoi(name); data/mpqc-2.3.1/src/lib/util/state/statein.cc:545:16: [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). number = atoi(&colon[1]); data/mpqc-2.3.1/src/lib/util/state/statein.cc:717: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 tmp[7]; data/mpqc-2.3.1/src/lib/util/state/statein.h:79: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 key_[KeyVal::MaxKeywordLength]; data/mpqc-2.3.1/src/lib/util/state/statein.h:92: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 userid_[9]; data/mpqc-2.3.1/src/lib/util/state/stateout.cc:204: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 userid[9]; data/mpqc-2.3.1/src/lib/util/state/stateout.cc:213:3: [2] (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). Risk is low because the source is a constant string. strcpy(userid,"UNKNOWN"); data/mpqc-2.3.1/src/lib/util/state/statetest.cc:478: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). sia.open("statetest.a.out"); data/mpqc-2.3.1/src/lib/util/state/translate.cc:267:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:269:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:271:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(short)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:273:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(short)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:275:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(unsigned int)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:277:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(unsigned int)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:279:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(int)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:281:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(int)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:283:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(long)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:285:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(long)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:287:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(float)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:289:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(float)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:291:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(double)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:293:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n*sizeof(double)); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:327:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n); } data/mpqc-2.3.1/src/lib/util/state/translate.cc:329:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(d,s,n); } data/mpqc-2.3.1/src/lib/util/state/translate.h:160: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_[bufsize]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:348:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = 1 + strlen(ostrs.str().c_str()); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:405:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(basename, basename_source, nfilebase); data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:572:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * ckptfile = new char[strlen(molname)+6]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:580:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wfn_file = new char[strlen(molname)+6]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:583:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *mole_ckpt_file = new char[strlen(wfn_file)+1]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:804:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ckptfile = new char[strlen(molname)+6]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:808:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ckptfile = new char[strlen(devnull)+1]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:822:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wfn_file = new char[strlen(molname)+6]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:828:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wfn_file = new char[strlen(devnull)+1]; data/mpqc-2.3.1/src/bin/mpqc/mpqc.cc:930:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ckptfile = new char[strlen(molname)+5]; data/mpqc-2.3.1/src/bin/mpqc/mpqcin.cc:456:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = 1 + strlen(ostrs.str().c_str()); data/mpqc-2.3.1/src/bin/mpqc/parse.cc:779:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen strlen data/mpqc-2.3.1/src/bin/mpqc/scan.cc:564:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int strlenyytext = strlen(yytext); data/mpqc-2.3.1/src/bin/mpqc/scan.cc:935:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). MPQCInylval.str = (char *)malloc(strlen(yytext)); data/mpqc-2.3.1/src/bin/mpqc/scan.cc:942:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). MPQCInylval.str[strlen(MPQCInylval.str)-1] = '\0'; data/mpqc-2.3.1/src/bin/mpqc/scan.cc:1171:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (void) yyin->read( buf, max_size ); data/mpqc-2.3.1/src/lib/chemistry/cca/socket.cc:90:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TCPIOSocket::read(void *d, int n) data/mpqc-2.3.1/src/lib/chemistry/cca/socket.cc:96:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ntransfer = ::read(socket_, d, n); data/mpqc-2.3.1/src/lib/chemistry/cca/socket.cc:126:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nbytes += read(dat, size); data/mpqc-2.3.1/src/lib/chemistry/cca/socket.cc:146:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(&i, sizeof(int)); data/mpqc-2.3.1/src/lib/chemistry/cca/socket.cc:158:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(&i, sizeof(u_int32_t)); data/mpqc-2.3.1/src/lib/chemistry/cca/socket.h:37:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(void *d, int n); data/mpqc-2.3.1/src/lib/chemistry/cca/socket.h:39:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read_int(int *d, int n) {return read((void*)d,n*sizeof(int));} data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:288:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = 1 + strlen(ostrs.str().c_str()); data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:459:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(assignment)+1; data/mpqc-2.3.1/src/lib/chemistry/molecule/atominfo.cc:460:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (overridden_values_) length += strlen(overridden_values_); data/mpqc-2.3.1/src/lib/chemistry/molecule/bend.cc:89:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). label_=new char[strlen(s.label_)+1]; strcpy(label_,s.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:64:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). label_=new char[strlen(re)+1]; strcpy(label_,re); data/mpqc-2.3.1/src/lib/chemistry/molecule/coor.cc:71:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (c.label_) label_ = strcpy(new char[strlen(c.label_)+1],c.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/linip.cc:96:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). label_=new char[strlen(s.label_)+1]; data/mpqc-2.3.1/src/lib/chemistry/molecule/linop.cc:96:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). label_=new char[strlen(s.label_)+1]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:262:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). labels_[i] = strcpy(new char[strlen(mol.labels_[i])+1], data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:360:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). labels_[natoms_] = strcpy(new char[strlen(label)+1],label); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:426:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *qlab = new char[strlen(lab)+3]; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:427:11: [1] (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). Risk is low because the source is a constant character. strcpy(qlab,"\""); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:429:11: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(qlab,"\""); data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1270:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(element,&line[76],2); element[2] = '\0'; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1272:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name,&line[12],4); name[4] = '\0'; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1280:19: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(resName,&line[17],3); resName[3] = '\0'; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1323:19: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(element,name,2); element[2] = '\0'; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1334:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(field,&line[30],8); field[8] = '\0'; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1336:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(field,&line[38],8); field[8] = '\0'; data/mpqc-2.3.1/src/lib/chemistry/molecule/molecule.cc:1338:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(field,&line[46],8); field[8] = '\0'; data/mpqc-2.3.1/src/lib/chemistry/molecule/out.cc:89:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). label_=new char[strlen(s.label_)+1]; data/mpqc-2.3.1/src/lib/chemistry/molecule/stors.cc:90:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). label_=new char[strlen(s.label_)+1]; data/mpqc-2.3.1/src/lib/chemistry/molecule/stre.cc:89:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). label_=new char[strlen(s.label_)+1]; strcpy(label_,s.label_); data/mpqc-2.3.1/src/lib/chemistry/molecule/tors.cc:90:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). label_=new char[strlen(s.label_)+1]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:631:15: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(keyword,":"); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/btest.cc:649:23: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(elemstr,"-"); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:60:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dir_[1] = strcpy(new char[strlen(tmp)+6+1], tmp); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:71:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dir_[1] = strcpy(new char[strlen(bdir)+1], bdir); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:94:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *filename = new char[strlen(basisname)+1]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:129:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *path = new char[strlen(dir_[i]) + strlen(filename) + 5]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:129:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *path = new char[strlen(dir_[i]) + strlen(filename) + 5]; data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:131:11: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(path, "/"); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:148:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = 1 + strlen(ostrs.str().c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/files.cc:192:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newbasissets[nbasissets_] = strcpy(new char[strlen(basisname)+1], data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:103:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = 1 + strlen(ostrs.str().c_str()); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:496:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sbasisname = strcpy(new char[strlen(name_)+1],name_); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussbas.cc:539:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sbasisname = strcpy(new char[strlen(name_)+1],name_); data/mpqc-2.3.1/src/lib/chemistry/qc/basis/gaussshell.cc:215:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (l[i] == -1 || strlen(am) != 1) { data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:142:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *infile = new char[strlen(SRCDIR)+strlen("/cintstest.in")+1]; data/mpqc-2.3.1/src/lib/chemistry/qc/cints/cintstest.cc:142:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *infile = new char[strlen(SRCDIR)+strlen("/cintstest.in")+1]; data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc:76:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result = (char *)malloc(strlen(atominfo[i].symbol)+1); data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc:97:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i=0; i<strlen(sym); i++) { data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/atominfo.cc:119:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i=0; i<strlen(atom); i++) { data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc:127:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *infile = new char[strlen(SRCDIR)+strlen("/inttest.in")+1]; data/mpqc-2.3.1/src/lib/chemistry/qc/intv3/inttest.cc:127:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *infile = new char[strlen(SRCDIR)+strlen("/inttest.in")+1]; data/mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/r12ia_node0file.cc:298:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read_this_much = read(datafile_,pb->ints_[oper_type],blksize_); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:123:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int newpath_len = strlen(path) + dir.size() + 1; data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiexenv.cc:153:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *module_cmd = new char[2*cwd_.size()+strlen(module)+psiprefix_.size()+fileprefix_.size()+stdout_.size()+stderr_.size()+40]; data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:190:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(name); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:195:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *basisname = new char[strlen(basis->name()) + ((int)ceil(log10((long double)uatom+2))) + 5]; data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:218:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(name); data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psiinput.cc:223:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *psibasisname = new char[atomname.size() + strlen(basis->name()) + ((int)ceil(log10((long double)uatom+2))) + 9]; data/mpqc-2.3.1/src/lib/chemistry/qc/psi/psitest.cc:29:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). pkv->read( SRCDIR "/psi.in"); data/mpqc-2.3.1/src/lib/chemistry/qc/wfn/density.cc:515:26: [1] (buffer) mismatch: 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 (spin_polarized_ || mismatch) { data/mpqc-2.3.1/src/lib/math/optimize/opt.cc:150:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ckpt_file = new char[strlen(path)+1]; data/mpqc-2.3.1/src/lib/math/scmat/blockeddiag.cc:243:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = (title) ? strlen(title) : 0; data/mpqc-2.3.1/src/lib/math/scmat/blockedrect.cc:699:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = (title) ? strlen(title) : 0; data/mpqc-2.3.1/src/lib/math/scmat/blockedsymm.cc:598:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = (title) ? strlen(title) : 0; data/mpqc-2.3.1/src/lib/math/scmat/blockedvect.cc:342:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = (title) ? strlen(title) : 0; data/mpqc-2.3.1/src/lib/math/scmat/dim.cc:284:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (name) name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/math/scmat/dim.cc:291:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (name) name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/math/scmat/dim.cc:299:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (name) name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/math/scmat/dim.cc:308:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (name) name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/math/symmetry/chartab.cc:159:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). symb = new char[strlen(cpg)+1]; data/mpqc-2.3.1/src/lib/math/symmetry/chartab.cc:161:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i=0; i < strlen(cpg); i++) symb[i] = tolower(cpg[i]); data/mpqc-2.3.1/src/lib/math/symmetry/chartab.cc:192:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). symb = new char[strlen(cpg)+1]; data/mpqc-2.3.1/src/lib/math/symmetry/chartab.cc:194:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i=0; i < strlen(cpg); i++) symb[i] = tolower(cpg[i]); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:164:9: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(label,"E"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:241:9: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(lab,"E"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:505:11: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(label,"E"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:603:11: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(lab,"E"); data/mpqc-2.3.1/src/lib/math/symmetry/maketab.cc:777:11: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(label,"E"); data/mpqc-2.3.1/src/lib/math/symmetry/pointgrp.cc:183:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). symb = new char[(len=strlen(sym))+1]; data/mpqc-2.3.1/src/lib/util/class/class.cc:109:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!parents || strlen(parents) == 0) return; data/mpqc-2.3.1/src/lib/util/class/class.cc:111:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* tokens = ::strcpy(new char[strlen(parents)+1],parents); data/mpqc-2.3.1/src/lib/util/class/class.cc:291:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). classlib_search_path_ = ::strcpy(new char[strlen(tmp)+1],tmp); data/mpqc-2.3.1/src/lib/util/class/class.cc:319:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). classname_ = ::strcpy(new char[strlen(name)+1],name); data/mpqc-2.3.1/src/lib/util/class/class.cc:520:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* path = new char[strlen(classlib_search_path_) + 1]; data/mpqc-2.3.1/src/lib/util/class/class.cc:527:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* filename = new char[strlen(dir) + 8 + 1]; data/mpqc-2.3.1/src/lib/util/class/class.cc:540:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (buf[0] != '\0' && buf[strlen(buf)-1] == '\n') { data/mpqc-2.3.1/src/lib/util/class/class.cc:541:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf[strlen(buf)-1] = '\0'; data/mpqc-2.3.1/src/lib/util/class/class.cc:550:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* libname = new char[strlen(lib) + strlen(dir) + 2]; data/mpqc-2.3.1/src/lib/util/class/class.cc:550:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* libname = new char[strlen(lib) + strlen(dir) + 2]; data/mpqc-2.3.1/src/lib/util/class/class.cc:552:23: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(libname, "/"); data/mpqc-2.3.1/src/lib/util/class/scexception.cc:144:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). value_ = new char[strlen(value)+1]; data/mpqc-2.3.1/src/lib/util/group/globcnt.cc:174:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strcpy(new char[strlen(tmp)+1], tmp); data/mpqc-2.3.1/src/lib/util/group/memshm.cc:208:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(stringrep) + 1; data/mpqc-2.3.1/src/lib/util/group/memshm.cc:220:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(stringrep) + 1; data/mpqc-2.3.1/src/lib/util/group/messimpl.cc:224:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_size += strlen(J->second->name()) + 1; data/mpqc-2.3.1/src/lib/util/group/messimpl.cc:238:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). currentbuffer += strlen(J->second->name()) + 1; data/mpqc-2.3.1/src/lib/util/group/pregtime.cc:70:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(s); data/mpqc-2.3.1/src/lib/util/group/pregtime.cc:254:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int width = strlen(names[i]) + 2 * depth[i] + 2; data/mpqc-2.3.1/src/lib/util/group/pregtime.cc:308:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int width = strlen(names[i]) + 2 * depth[i] + 2; data/mpqc-2.3.1/src/lib/util/keyval/ipv2.cc:70:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void IPV2::read(istream&in,ostream&out,const char *filename) data/mpqc-2.3.1/src/lib/util/keyval/ipv2.cc:74:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename_ = strcpy(new char[strlen(filename)+1], filename); data/mpqc-2.3.1/src/lib/util/keyval/ipv2.h:186:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream&,std::ostream&,const char *filename=0); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_cwk.cc:202:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). IPV2StrTok(char* s, const char*d): str(s), delim(d), ndelim(strlen(d)) {} data/mpqc-2.3.1/src/lib/util/keyval/ipv2_cwk.cc:250:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(keyword)+1 > KEYWORD_LENGTH) { data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:71:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(copy,val,10); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:250:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newname = (char*)malloc(strlen(currentname)+strlen(kt->keyword)+2); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:250:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newname = (char*)malloc(strlen(currentname)+strlen(kt->keyword)+2); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:254:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else newname = strcpy((char*)malloc(strlen(kt->keyword)+1),kt->keyword); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_data.cc:324:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *tmp = new char[strlen(val)+1]; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:92:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newmsg = (char *) malloc(strlen(msg)-1 + strlen(lastkeyword)); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:92:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newmsg = (char *) malloc(strlen(msg)-1 + strlen(lastkeyword)); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:112:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(lastkeyword,keyword, KEYWORD_LENGTH-1); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:126:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(lastkeyword) + strlen(kt->keyword) + 2 > KEYWORD_LENGTH) { data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:126:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(lastkeyword) + strlen(kt->keyword) + 2 > KEYWORD_LENGTH) { data/mpqc-2.3.1/src/lib/util/keyval/ipv2_error.cc:130:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(lastkeyword,":"); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_karray.cc:63:17: [1] (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). Risk is low because the source is a constant character. if (i!=n-1) strcpy(indices,":"); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_parse.cc:703:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen strlen data/mpqc-2.3.1/src/lib/util/keyval/ipv2_parse.cc:1313:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { yyval.str = (char*) malloc(strlen(yyvsp[-2].str)+strlen(yyvsp[0].str)+1); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_parse.cc:1313:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { yyval.str = (char*) malloc(strlen(yyvsp[-2].str)+strlen(yyvsp[0].str)+1); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:196:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int newkeysize = strlen(keyword) + 4 + 1; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:201:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newkeysize += strlen(pl->string); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:211:15: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. if (pl->p) strcat(newkey,","); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:383:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r = (char *) malloc(strlen(s)+1); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:565:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (s1) r = (char *) malloc(strlen(s1)+strlen(s2)+2); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:565:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (s1) r = (char *) malloc(strlen(s1)+strlen(s2)+2); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:566:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else r = (char *) malloc(strlen(s2)+2); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_read.cc:569:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(r,":"); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_scan.cc:667:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { int strlenyytext = strlen(yytext); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_scan.cc:685:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { yylval.str = (char *)malloc(strlen(yytext)); data/mpqc-2.3.1/src/lib/util/keyval/ipv2_scan.cc:691:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). yylval.str[strlen(yylval.str)-1] = '\0'; data/mpqc-2.3.1/src/lib/util/keyval/ipv2_scan.cc:947:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (void) yyin->read( buf, max_size ); data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:178:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (result) return strcpy(new char[strlen(result)+1], result); data/mpqc-2.3.1/src/lib/util/keyval/keyval.cc:460:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf((newkey+strlen(newkey)),":%d",vals[i]); \ data/mpqc-2.3.1/src/lib/util/keyval/keyval.h:532:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(const char*); data/mpqc-2.3.1/src/lib/util/keyval/keyval.h:534:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void read(std::istream&); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:70:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(name); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:79:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(fp); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:89:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* filespec = new char[strlen(keyprefix)+6]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:93:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* dirspec = new char[strlen(keyprefix)+6]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:105:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). directory = strcpy(new char[strlen(tmp)+1], tmp); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:117:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). directory = strcpy(new char[strlen(dir)+1], dir); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:126:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullname = new char[strlen(directory)+strlen(filename)+1]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:126:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullname = new char[strlen(directory)+strlen(filename)+1]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:133:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(fullname); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:151:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* filespec = new char[strlen(keyprefix)+6]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:155:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* dirspec = new char[strlen(keyprefix)+6]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:167:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). directory = strcpy(new char[strlen(tmp)+1], tmp); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:179:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). directory = strcpy(new char[strlen(dir)+1], dir); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:188:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullname = new char[strlen(directory)+strlen(filename)+1]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:188:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullname = new char[strlen(directory)+strlen(filename)+1]; data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:211:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ParsedKeyVal::read(const char* name) data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:227:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(infp); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:231:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void ParsedKeyVal::read(istream&infp) data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:234:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ipv2->read(infp,ExEnv::errn(),"<stream>"); data/mpqc-2.3.1/src/lib/util/keyval/keyvalipv2.cc:245:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ipv2->read(in,ExEnv::errn(),"<string>"); data/mpqc-2.3.1/src/lib/util/keyval/keyvalpre.cc:134:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). prefix = new char[strlen(newtoken)+1]; data/mpqc-2.3.1/src/lib/util/keyval/keyvaltest.cc:171:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ipv2->read(in,cout); data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:277:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _val(strcpy(new char[strlen(val)+1],val)) data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:281:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _val(strcpy(new char[strlen(val._val)+1],val._val)) data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:382:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _val_to_delete = strcpy(new char[strlen(val)+1], val); data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:400:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _val_to_delete = strcpy(new char[strlen(val)+1], val); data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:420:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _val_to_delete = strcpy(new char[strlen(val._val)+1], val._val); data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:438:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(lc_kv,_val,20); data/mpqc-2.3.1/src/lib/util/keyval/keyvalval.cc:476:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = ::strlen(_val); data/mpqc-2.3.1/src/lib/util/misc/bug.cc:90:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(cmd) + strlen(a)+1; data/mpqc-2.3.1/src/lib/util/misc/bug.cc:90:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(cmd) + strlen(a)+1; data/mpqc-2.3.1/src/lib/util/misc/bug.cc:288:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). exec_ = new char[strlen(exec)+1]; data/mpqc-2.3.1/src/lib/util/misc/bug.cc:301:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). prefix_ = new char[strlen(p)+1]; data/mpqc-2.3.1/src/lib/util/misc/bug.cc:343:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmd_ = new char[strlen(cmd)+1]; data/mpqc-2.3.1/src/lib/util/misc/exenv.cc:110:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(username_, pw->pw_name, 9); data/mpqc-2.3.1/src/lib/util/misc/formio.cc:60:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * res = new char[strlen(basename) + strlen(ext) + 1]; data/mpqc-2.3.1/src/lib/util/misc/formio.cc:60:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * res = new char[strlen(basename) + strlen(ext) + 1]; data/mpqc-2.3.1/src/lib/util/misc/formio.cc:73:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). default_basename_ = strcpy(new char[strlen(basename)+1], basename); data/mpqc-2.3.1/src/lib/util/misc/formio.cc:148:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (size_t i=0; i < strlen(nn); i++) o.rdbuf()->sputc(nn[i]); data/mpqc-2.3.1/src/lib/util/misc/newstring.h:42:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *ret = new char[strlen(s)+1]; data/mpqc-2.3.1/src/lib/util/misc/regtime.cc:101:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). name_ = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/util/misc/regtime.cc:606:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int width = strlen(names[i]) + 2 * depth[i] + 2; data/mpqc-2.3.1/src/lib/util/misc/regtime.cc:622:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (maxflopswidth < strlen(flops_name)) maxflopswidth = strlen(flops_name); data/mpqc-2.3.1/src/lib/util/misc/regtime.cc:622:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (maxflopswidth < strlen(flops_name)) maxflopswidth = strlen(flops_name); data/mpqc-2.3.1/src/lib/util/misc/regtime.cc:635:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int width = strlen(names[i]) + 2 * depth[i] + 2; data/mpqc-2.3.1/src/lib/util/misc/string.h:13:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return string ? strcpy ((char *) malloc (strlen (string) + 1), string) : 0; data/mpqc-2.3.1/src/lib/util/misc/units.cc:60:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strrep) strrep_ = strcpy(new char[strlen(strrep)+1], strrep); data/mpqc-2.3.1/src/lib/util/misc/units.cc:68:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strrep) strrep_ = strcpy(new char[strlen(strrep)+1], strrep); data/mpqc-2.3.1/src/lib/util/misc/units.cc:140:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nchar = strlen(rest); data/mpqc-2.3.1/src/lib/util/options/GetLongOpt.cc:108:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(t->option) == (tmptoken - token) ) { data/mpqc-2.3.1/src/lib/util/options/GetLongOpt.cc:169:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(t->option) == (tmptoken - token) ) { data/mpqc-2.3.1/src/lib/util/psi3/libpsio/open.cc:58:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). this_unit->vol[i].path = (char *) malloc(strlen(fullpath)+1); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/rw.cc:60:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). errcod_uli = read(this_unit->vol[first_vol].stream, &(buffer[buf_offset]), data/mpqc-2.3.1/src/lib/util/psi3/libpsio/rw.cc:80:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). errcod_uli = read(this_unit->vol[this_vol].stream, &(buffer[buf_offset]), data/mpqc-2.3.1/src/lib/util/psi3/libpsio/rw.cc:97:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). errcod_uli = read(this_unit->vol[this_vol].stream, &(buffer[buf_offset]), data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocclean.cc:25:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((strlen(key)+1) > PSIO_KEYLEN) psio_error(unit,PSIO_ERROR_KEYLEN); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocdel.cc:27:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((strlen(key)+1) > PSIO_KEYLEN) psio_error(unit,PSIO_ERROR_KEYLEN); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocread.cc:37:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). errcod = read(stream, (char *) &(this_unit->tocaddress.page), data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocread.cc:40:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). errcod = read(stream, (char *) &(this_unit->tocaddress.offset), data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocread.cc:43:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). errcod = read(stream, (char *) &(this_unit->toclen), sizeof(ULI)); data/mpqc-2.3.1/src/lib/util/psi3/libpsio/tocread.cc:69:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). errcod = read(this_unit->vol[volume].stream, (char *) this_entry, data/mpqc-2.3.1/src/lib/util/render/animate.cc:64:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (name) name_ = strcpy(new char[strlen(name)+1],name); data/mpqc-2.3.1/src/lib/util/render/object.cc:68:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (name) name_ = strcpy(new char[strlen(name)+1],name); data/mpqc-2.3.1/src/lib/util/render/oogl.cc:87:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lenobjname = strlen(animated_object->name()); data/mpqc-2.3.1/src/lib/util/render/oogl.cc:92:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *file = new char[strlen(base)+lenobjname+strlen(suf)+1]; data/mpqc-2.3.1/src/lib/util/render/oogl.cc:92:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *file = new char[strlen(base)+lenobjname+strlen(suf)+1]; data/mpqc-2.3.1/src/lib/util/render/oogl.cc:95:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(file,"."); data/mpqc-2.3.1/src/lib/util/render/oogl.cc:102:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). basename_ = new char[strlen(base)+lenobjname]; data/mpqc-2.3.1/src/lib/util/render/oogl.cc:105:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(basename_,"."); data/mpqc-2.3.1/src/lib/util/render/render.cc:178:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). basename = strcpy(new char[strlen(cbasename)+1],cbasename); data/mpqc-2.3.1/src/lib/util/render/render.cc:204:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (filename) filename_ = strcpy(new char[strlen(filename)+1],filename); data/mpqc-2.3.1/src/lib/util/render/render.cc:214:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (basename) basename_ = strcpy(new char[strlen(basename)+1],basename); data/mpqc-2.3.1/src/lib/util/render/render.cc:236:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). file = strcpy(new char[strlen(filename_) + 1],filename_); data/mpqc-2.3.1/src/lib/util/render/render.cc:243:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else lenobjectname = strlen(objectname); data/mpqc-2.3.1/src/lib/util/render/render.cc:245:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). file = new char[strlen(basename_)+lenobjectname+strlen(ext)+1]; data/mpqc-2.3.1/src/lib/util/render/render.cc:245:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). file = new char[strlen(basename_)+lenobjectname+strlen(ext)+1]; data/mpqc-2.3.1/src/lib/util/render/render.cc:248:11: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(file, "."); data/mpqc-2.3.1/src/lib/util/render/render.cc:256:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). file = new char[strlen(objectname)+strlen(ext)+1]; data/mpqc-2.3.1/src/lib/util/render/render.cc:256:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). file = new char[strlen(objectname)+strlen(ext)+1]; data/mpqc-2.3.1/src/lib/util/state/state_text.cc:142:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). StateInText::read(char*s) data/mpqc-2.3.1/src/lib/util/state/state_text.cc:150:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(s)+1; data/mpqc-2.3.1/src/lib/util/state/state_text.cc:154:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). StateInText::read(unsigned int&i) data/mpqc-2.3.1/src/lib/util/state/state_text.cc:166:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). StateInText::read(int&i) data/mpqc-2.3.1/src/lib/util/state/state_text.cc:178:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). StateInText::read(float&f) data/mpqc-2.3.1/src/lib/util/state/state_text.cc:190:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). StateInText::read(double&d) data/mpqc-2.3.1/src/lib/util/state/state_text.cc:520:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int size = strlen(s); data/mpqc-2.3.1/src/lib/util/state/state_text.cc:596:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread=read(d[i]); data/mpqc-2.3.1/src/lib/util/state/state_text.cc:620:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread=read(d[i]); data/mpqc-2.3.1/src/lib/util/state/state_text.cc:650:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread=read(d[i]); data/mpqc-2.3.1/src/lib/util/state/state_text.cc:680:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread=read(d[i]); data/mpqc-2.3.1/src/lib/util/state/state_text.h:97:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(char*); data/mpqc-2.3.1/src/lib/util/state/state_text.h:98:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(unsigned int&); data/mpqc-2.3.1/src/lib/util/state/state_text.h:99:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(int&); data/mpqc-2.3.1/src/lib/util/state/state_text.h:100:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(float&); data/mpqc-2.3.1/src/lib/util/state/state_text.h:101:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(double&); data/mpqc-2.3.1/src/lib/util/state/statein.cc:79:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(keyword); data/mpqc-2.3.1/src/lib/util/state/statein.cc:542:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else classname = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/util/state/statein.cc:546:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). classname = strcpy(new char[strlen(name)+1], name); data/mpqc-2.3.1/src/lib/util/state/statein.cc:759:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (d.name) name = strcpy(new char[strlen(d.name)+1], d.name); data/mpqc-2.3.1/src/lib/util/state/stateout.cc:209:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(userid, pw_name, 9); data/mpqc-2.3.1/src/lib/util/state/stateout.cc:278:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int size = strlen(s)+1; data/mpqc-2.3.1/src/lib/util/state/stateout.cc:374:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int size = strlen(name); data/mpqc-2.3.1/src/lib/util/state/stateout.cc:403:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int size = strlen(name); data/mpqc-2.3.1/src/lib/util/state/statetest.cc:108:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). t1c = strcpy(new char[strlen(t1)+1],t1); data/mpqc-2.3.1/src/lib/util/state/statetest.cc:109:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). t2c = strcpy(new char[strlen(t2)+1],t2); data/mpqc-2.3.1/src/lib/util/state/statetest.cc:123:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). t1c = strcpy(new char[strlen(t1)+1],t1); data/mpqc-2.3.1/src/lib/util/state/statetest.cc:124:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). t2c = strcpy(new char[strlen(t2)+1],t2); ANALYSIS SUMMARY: Hits = 1014 Lines analyzed = 336417 in approximately 6.96 seconds (48361 lines/second) Physical Source Lines of Code (SLOC) = 267228 Hits@level = [0] 312 [1] 259 [2] 383 [3] 48 [4] 324 [5] 0 Hits@level+ = [0+] 1326 [1+] 1014 [2+] 755 [3+] 372 [4+] 324 [5+] 0 Hits/KSLOC@level+ = [0+] 4.96205 [1+] 3.79451 [2+] 2.8253 [3+] 1.39207 [4+] 1.21245 [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.