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/libint2-2.6.0/doc/progman/lstusecpp.cc
Examining data/libint2-2.6.0/export/fortran/test-eri.cc
Examining data/libint2-2.6.0/export/fortran/test.cc
Examining data/libint2-2.6.0/include/libint2.h
Examining data/libint2-2.6.0/include/libint2.hpp
Examining data/libint2-2.6.0/include/libint2/atom.h
Parsing failed to find end of parameter list; semicolon terminated it in (a.begin(), a.end(), b.begin(), [](char a, char b) {
           return ::tolower(a) == ::tolower(b);
         });
}

/// reads the list of atoms from a file in the standard or PBC-extended XYZ format

Examining data/libint2-2.6.0/include/libint2/boys_cheb7.h
Examining data/libint2-2.6.0/include/libint2/boys_cheb7_v2.h
Examining data/libint2-2.6.0/include/libint2/boys_fwd.h
Examining data/libint2-2.6.0/include/libint2/cartesian.h
Examining data/libint2-2.6.0/include/libint2/cgshell_ordering.h
Examining data/libint2-2.6.0/include/libint2/cgshellinfo.h
Examining data/libint2-2.6.0/include/libint2/chemistry/elements.h
Examining data/libint2-2.6.0/include/libint2/chemistry/sto3g_atomic_density.h
Examining data/libint2-2.6.0/include/libint2/cxxapi.h
Examining data/libint2-2.6.0/include/libint2/deriv_iter.h
Examining data/libint2-2.6.0/include/libint2/diis.h
Examining data/libint2-2.6.0/include/libint2/engine.h
Examining data/libint2-2.6.0/include/libint2/engine.impl.h
Examining data/libint2-2.6.0/include/libint2/initialize.h
Examining data/libint2-2.6.0/include/libint2/lcao/1body.h
Examining data/libint2-2.6.0/include/libint2/lcao/molden.h
Examining data/libint2-2.6.0/include/libint2/numeric.h
Examining data/libint2-2.6.0/include/libint2/shell.h
Examining data/libint2-2.6.0/include/libint2/shgshell_ordering.h
Examining data/libint2-2.6.0/include/libint2/solidharmonics.h
Examining data/libint2-2.6.0/include/libint2/statics_definition.h
Examining data/libint2-2.6.0/include/libint2/tenno_cheb.h
Examining data/libint2-2.6.0/include/libint2/tenno_cheb15.h
Examining data/libint2-2.6.0/include/libint2/util/any.h
Examining data/libint2-2.6.0/include/libint2/util/array_adaptor.h
Examining data/libint2-2.6.0/include/libint2/util/compressed_pair.h
Examining data/libint2-2.6.0/include/libint2/util/cxxstd.h
Examining data/libint2-2.6.0/include/libint2/util/deprecated.h
Examining data/libint2-2.6.0/include/libint2/util/generated/libint2_iface.h
Examining data/libint2-2.6.0/include/libint2/util/generated/libint2_params.h
Examining data/libint2-2.6.0/include/libint2/util/generated/libint2_types.h
Examining data/libint2-2.6.0/include/libint2/util/intpart_iter.h
Examining data/libint2-2.6.0/include/libint2/util/intrinsic_operations.h
Examining data/libint2-2.6.0/include/libint2/util/intrinsic_types.h
Examining data/libint2-2.6.0/include/libint2/util/memory.h
Examining data/libint2-2.6.0/include/libint2/util/singleton.h
Examining data/libint2-2.6.0/include/libint2/util/small_vector.h
Examining data/libint2-2.6.0/include/libint2/util/timer.h
Examining data/libint2-2.6.0/include/libint2/util/type_traits.h
Examining data/libint2-2.6.0/include/libint2/util/vector.h
Examining data/libint2-2.6.0/include/libint2/util/vector_ppc.h
Examining data/libint2-2.6.0/include/libint2/util/vector_x86.h
Examining data/libint2-2.6.0/include/libint2/boys.h
Examining data/libint2-2.6.0/src/bin/constants.h
Examining data/libint2-2.6.0/src/bin/libint/algebra.cc
Examining data/libint2-2.6.0/src/bin/libint/algebra.h
Examining data/libint2-2.6.0/src/bin/libint/bfset.h
Examining data/libint2-2.6.0/src/bin/libint/braket.h
Examining data/libint2-2.6.0/src/bin/libint/build_libint.cc
Examining data/libint2-2.6.0/src/bin/libint/buildtest.cc
Examining data/libint2-2.6.0/src/bin/libint/buildtest.h
Examining data/libint2-2.6.0/src/bin/libint/class_registry.cc
Examining data/libint2-2.6.0/src/bin/libint/class_registry.h
Examining data/libint2-2.6.0/src/bin/libint/code.cc
Examining data/libint2-2.6.0/src/bin/libint/code.h
Examining data/libint2-2.6.0/src/bin/libint/codeblock.cc
Examining data/libint2-2.6.0/src/bin/libint/codeblock.h
Examining data/libint2-2.6.0/src/bin/libint/comp_11_DivG12prime_xTx_11.h
Examining data/libint2-2.6.0/src/bin/libint/comp_11_g12tig12_11.h
Examining data/libint2-2.6.0/src/bin/libint/comp_11_gtg_11_1d.h
Examining data/libint2-2.6.0/src/bin/libint/comp_11_r12kr12lg12_11.h
Examining data/libint2-2.6.0/src/bin/libint/comp_11_r1dotr1g12_11.h
Examining data/libint2-2.6.0/src/bin/libint/comp_11_r1dotr2g12_11.h
Examining data/libint2-2.6.0/src/bin/libint/comp_11_r2dotr2g12_11.h
Examining data/libint2-2.6.0/src/bin/libint/comp_11_tig12_11.h
Examining data/libint2-2.6.0/src/bin/libint/comp_deriv_gauss.cc
Examining data/libint2-2.6.0/src/bin/libint/comp_deriv_gauss.h
Examining data/libint2-2.6.0/src/bin/libint/comp_xyz.cc
Examining data/libint2-2.6.0/src/bin/libint/comp_xyz.h
Examining data/libint2-2.6.0/src/bin/libint/context.cc
Examining data/libint2-2.6.0/src/bin/libint/context.h
Examining data/libint2-2.6.0/src/bin/libint/contractable.h
Examining data/libint2-2.6.0/src/bin/libint/default_params.cc
Examining data/libint2-2.6.0/src/bin/libint/default_params.h
Examining data/libint2-2.6.0/src/bin/libint/dg.cc
Examining data/libint2-2.6.0/src/bin/libint/dg.h
Examining data/libint2-2.6.0/src/bin/libint/dgarc.cc
Examining data/libint2-2.6.0/src/bin/libint/dgarc.h
Examining data/libint2-2.6.0/src/bin/libint/dgvertex.cc
Examining data/libint2-2.6.0/src/bin/libint/dgvertex.h
Examining data/libint2-2.6.0/src/bin/libint/dims.cc
Examining data/libint2-2.6.0/src/bin/libint/dims.h
Examining data/libint2-2.6.0/src/bin/libint/drtree.cc
Examining data/libint2-2.6.0/src/bin/libint/drtree.h
Examining data/libint2-2.6.0/src/bin/libint/entity.h
Examining data/libint2-2.6.0/src/bin/libint/equiv.h
Examining data/libint2-2.6.0/src/bin/libint/exception.h
Examining data/libint2-2.6.0/src/bin/libint/extract.cc
Examining data/libint2-2.6.0/src/bin/libint/extract.h
Examining data/libint2-2.6.0/src/bin/libint/flop.cc
Examining data/libint2-2.6.0/src/bin/libint/flop.h
Examining data/libint2-2.6.0/src/bin/libint/gauss.cc
Examining data/libint2-2.6.0/src/bin/libint/gaussoper.h
Examining data/libint2-2.6.0/src/bin/libint/generic_rr.h
Examining data/libint2-2.6.0/src/bin/libint/global_macros.h
Examining data/libint2-2.6.0/src/bin/libint/graph_registry.cc
Examining data/libint2-2.6.0/src/bin/libint/graph_registry.h
Examining data/libint2-2.6.0/src/bin/libint/hashable.h
Examining data/libint2-2.6.0/src/bin/libint/hrr.h
Examining data/libint2-2.6.0/src/bin/libint/iface.cc
Examining data/libint2-2.6.0/src/bin/libint/iface.h
Examining data/libint2-2.6.0/src/bin/libint/integral.h
Examining data/libint2-2.6.0/src/bin/libint/integral_11_11.h
Examining data/libint2-2.6.0/src/bin/libint/integral_11_11.impl.h
Examining data/libint2-2.6.0/src/bin/libint/integral_1_1.h
Examining data/libint2-2.6.0/src/bin/libint/integral_1_1.impl.h
Examining data/libint2-2.6.0/src/bin/libint/integral_decl.h
Examining data/libint2-2.6.0/src/bin/libint/intset_to_ints.h
Examining data/libint2-2.6.0/src/bin/libint/iter.cc
Examining data/libint2-2.6.0/src/bin/libint/iter.h
Examining data/libint2-2.6.0/src/bin/libint/itr_11_twoprep_11.h
Examining data/libint2-2.6.0/src/bin/libint/key.h
Examining data/libint2-2.6.0/src/bin/libint/master_ints_list.h
Examining data/libint2-2.6.0/src/bin/libint/master_rrs_list.h
Examining data/libint2-2.6.0/src/bin/libint/memory.cc
Examining data/libint2-2.6.0/src/bin/libint/memory.h
Examining data/libint2-2.6.0/src/bin/libint/multipole.cc
Examining data/libint2-2.6.0/src/bin/libint/multipole.h
Examining data/libint2-2.6.0/src/bin/libint/onep_1_1.h
Examining data/libint2-2.6.0/src/bin/libint/oper.cc
Examining data/libint2-2.6.0/src/bin/libint/oper.h
Examining data/libint2-2.6.0/src/bin/libint/policy.cc
Examining data/libint2-2.6.0/src/bin/libint/policy.h
Examining data/libint2-2.6.0/src/bin/libint/policy_spec.cc
Examining data/libint2-2.6.0/src/bin/libint/policy_spec.h
Examining data/libint2-2.6.0/src/bin/libint/polyconstr.h
Examining data/libint2-2.6.0/src/bin/libint/prefactors.cc
Examining data/libint2-2.6.0/src/bin/libint/prefactors.h
Examining data/libint2-2.6.0/src/bin/libint/purgeable.cc
Examining data/libint2-2.6.0/src/bin/libint/purgeable.h
Examining data/libint2-2.6.0/src/bin/libint/quanta.h
Examining data/libint2-2.6.0/src/bin/libint/r12kg12_11_11.h
Examining data/libint2-2.6.0/src/bin/libint/r1dotr1g12_11_11.h
Examining data/libint2-2.6.0/src/bin/libint/r1dotr2g12_11_11.h
Examining data/libint2-2.6.0/src/bin/libint/r2dotr2g12_11_11.h
Examining data/libint2-2.6.0/src/bin/libint/rr.cc
Examining data/libint2-2.6.0/src/bin/libint/rr.h
Examining data/libint2-2.6.0/src/bin/libint/singl_stack.h
Examining data/libint2-2.6.0/src/bin/libint/smart_ptr.h
Examining data/libint2-2.6.0/src/bin/libint/stdarray.h
Examining data/libint2-2.6.0/src/bin/libint/stdarray_bits.h
Examining data/libint2-2.6.0/src/bin/libint/strategy.cc
Examining data/libint2-2.6.0/src/bin/libint/strategy.h
Examining data/libint2-2.6.0/src/bin/libint/tactic.cc
Examining data/libint2-2.6.0/src/bin/libint/tactic.h
Examining data/libint2-2.6.0/src/bin/libint/task.cc
Examining data/libint2-2.6.0/src/bin/libint/task.h
Examining data/libint2-2.6.0/src/bin/libint/test.cc
Examining data/libint2-2.6.0/src/bin/libint/tig12_11_11.h
Examining data/libint2-2.6.0/src/bin/libint/traits.h
Examining data/libint2-2.6.0/src/bin/libint/twoprep_11_11.h
Examining data/libint2-2.6.0/src/bin/libint/uncontract.h
Examining data/libint2-2.6.0/src/bin/libint/util.cc
Examining data/libint2-2.6.0/src/bin/libint/util.h
Examining data/libint2-2.6.0/src/bin/libint/util_types.h
Examining data/libint2-2.6.0/src/bin/libint/vectorn.h
Examining data/libint2-2.6.0/src/bin/libint/vrr_11_r12kg12_11.h
Examining data/libint2-2.6.0/src/bin/libint/vrr_11_twoprep_11.h
Examining data/libint2-2.6.0/src/bin/libint/vrr_1_onep_1.h
Examining data/libint2-2.6.0/src/bin/profile/chrono.cc
Examining data/libint2-2.6.0/src/bin/profile/generate_t0g12_code.cc
Examining data/libint2-2.6.0/src/bin/profile/profile.cc
Examining data/libint2-2.6.0/src/bin/test_eri/eri.h
Examining data/libint2-2.6.0/src/bin/test_eri/generate_eri_code.cc
Examining data/libint2-2.6.0/src/bin/test_eri/prep_libint2.h
Examining data/libint2-2.6.0/src/bin/test_eri/simd_wrapped_vector.hpp
Examining data/libint2-2.6.0/src/bin/test_eri/test_eri.cc
Examining data/libint2-2.6.0/src/bin/test_eri/test_eri_rys.cc
Examining data/libint2-2.6.0/src/bin/test_eri/test_eri_rys_vec.cc
Examining data/libint2-2.6.0/src/bin/test_eri/time_eri.cc
Examining data/libint2-2.6.0/src/lib/libint/GenericContract.h
Examining data/libint2-2.6.0/src/lib/libint/GenericGaussDeriv.h
Examining data/libint2-2.6.0/src/lib/libint/GenericGaussDeriv.impl.h
Examining data/libint2-2.6.0/src/lib/libint/GenericScale.h
Examining data/libint2-2.6.0/src/lib/libint/ITR_xs_xs.h
Examining data/libint2-2.6.0/src/lib/libint/OSVRR_sx_sx.h
Examining data/libint2-2.6.0/src/lib/libint/OSVRR_sx_sx_deriv.h
Examining data/libint2-2.6.0/src/lib/libint/OSVRR_xs_xs.h
Examining data/libint2-2.6.0/src/lib/libint/OSVRR_xs_xs_deriv.h
Examining data/libint2-2.6.0/src/lib/libint/VRR_GTG_1d_xx_xx.h
Examining data/libint2-2.6.0/src/lib/libint/VRR_GTG_1d_xx_xx_vec.h
Examining data/libint2-2.6.0/src/lib/libint/VRR_r12kg12_xs_xs.h
Examining data/libint2-2.6.0/tests/eri/test.cc
Examining data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc
Examining data/libint2-2.6.0/tests/hartree-fock/hartree-fock.cc
Examining data/libint2-2.6.0/tests/unit/c-api-util.cc
Examining data/libint2-2.6.0/tests/unit/c-api.c
Examining data/libint2-2.6.0/tests/unit/catch.hpp
Examining data/libint2-2.6.0/tests/unit/fixture.h
Examining data/libint2-2.6.0/tests/unit/test-1body.cc
Examining data/libint2-2.6.0/tests/unit/test-2body.cc
Examining data/libint2-2.6.0/tests/unit/test-c-api.cc
Examining data/libint2-2.6.0/tests/unit/test-core-ints.cc
Examining data/libint2-2.6.0/tests/unit/test-core.cc
Examining data/libint2-2.6.0/tests/unit/test-permute.cc
Examining data/libint2-2.6.0/tests/unit/test-shell-order.cc
Examining data/libint2-2.6.0/tests/unit/test-util.cc
Examining data/libint2-2.6.0/tests/unit/test.cc

FINAL RESULTS:

data/libint2-2.6.0/src/bin/libint/prefactors.cc:42:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(XY_X_str,"%s%s",XY[p],X[p][braket]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:47:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(W_XY_str,"W%s",XY[p]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:55:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(XY_X_i_str,"%s_%c",XY_X_str,xyz_str[xyz]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:60:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(W_XY_i_str,"%s_%c",W_XY_str,xyz_str[xyz]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:68:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(X_Y_str,"%s%s",X[p][0],X[p][1]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:74:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(X_Y_i_str,"%s_%c",X_Y_str,xyz_str[xyz]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:80:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(Y_X_str,"%s%s",X[p][1],X[p][0]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:85:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(Y_X_i_str,"%s_%c",Y_X_str,xyz_str[xyz]);
data/libint2-2.6.0/include/libint2/lcao/1body.h:213:28:  [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.
      auto nthreads_cstr = getenv("LIBINT_NUM_THREADS");
data/libint2-2.6.0/src/bin/libint/tactic.cc:103:3:  [3] (random) srandom:
  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.
  srandom(time(&crap));
data/libint2-2.6.0/src/bin/libint/tactic.cc:110:26:  [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.
    unsigned long rand = random();
data/libint2-2.6.0/src/bin/libint/tactic.h:203:7:  [3] (random) srandom:
  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.
      srandom(time(&t));
data/libint2-2.6.0/src/bin/libint/tactic.h:207:28:  [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.
      unsigned long rand = random();
data/libint2-2.6.0/src/bin/profile/profile.cc:80: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(seed);
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:225:28:  [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.
      auto nthreads_cstr = getenv("LIBINT_NUM_THREADS");
data/libint2-2.6.0/tests/unit/catch.hpp:4109:1:  [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.
random(T a, T b) {
data/libint2-2.6.0/tests/unit/catch.hpp:4118:1:  [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.
random(T a, T b) {
data/libint2-2.6.0/tests/unit/catch.hpp:9955:18:  [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.
            std::srand( config.rngSeed() );
data/libint2-2.6.0/include/libint2/engine.h:812: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 buf[1024];
data/libint2-2.6.0/include/libint2/engine.h:844: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 task_name_[65];
data/libint2-2.6.0/include/libint2/lcao/1body.h:778: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 errmsg[256] = "Could not open file ";
data/libint2-2.6.0/include/libint2/util/vector_x86.h:109: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(&(d0[0]), &d, sizeof(__m128d));
data/libint2-2.6.0/include/libint2/util/vector_x86.h:405: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(&(d0[0]), &d, sizeof(__m128));
data/libint2-2.6.0/include/libint2/util/vector_x86.h:705: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(&(d0[0]), &d, sizeof(__m256d));
data/libint2-2.6.0/include/libint2/util/vector_x86.h:1012: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(&(d0[0]), &d, sizeof(__m256));
data/libint2-2.6.0/src/bin/libint/bfset.h:177: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 result[NDIM+1];
data/libint2-2.6.0/src/bin/libint/buildtest.h:422:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	const unsigned int am = atoi(argv[i]);
data/libint2-2.6.0/src/bin/libint/buildtest.h:427:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      size_to_unroll_ = atoi(argv[N+1]);
data/libint2-2.6.0/src/bin/libint/buildtest.h:431: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).
	veclen_ = atoi(argv[N+2]);
data/libint2-2.6.0/src/bin/libint/buildtest.h:435:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	vectorize_by_line_ = (1 == atoi(argv[N+3]));
data/libint2-2.6.0/src/bin/libint/buildtest.h:439: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).
	do_cse_ = (1 == atoi(argv[N+4]));
data/libint2-2.6.0/src/bin/libint/codeblock.cc:76: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).
ForLoop::open()
data/libint2-2.6.0/src/bin/libint/codeblock.h:42: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).
    virtual std::string open() =0;
data/libint2-2.6.0/src/bin/libint/codeblock.h:57: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).
    std::string open();
data/libint2-2.6.0/src/bin/libint/context.cc:149:16:  [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 const char chars[nchars][2] = {
data/libint2-2.6.0/src/bin/libint/context.cc:167:16:  [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 const char subst_chars[nchars][20] = {
data/libint2-2.6.0/src/bin/libint/context.cc:673: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 result[80];
data/libint2-2.6.0/src/bin/libint/context.cc:674: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,"fp%d", next_fp_index());
data/libint2-2.6.0/src/bin/libint/context.cc:681: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 result[80];
data/libint2-2.6.0/src/bin/libint/context.cc:682: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,"i%d", next_int_index());
data/libint2-2.6.0/src/bin/libint/default_params.h:363:18:  [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 const char am_letters[num_am_letters+1];
data/libint2-2.6.0/src/bin/libint/dg.cc:129: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];  sprintf(label,"vertex%d",num_vertices());
data/libint2-2.6.0/src/bin/libint/dg.cc:129:20:  [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.
  char label[80];  sprintf(label,"vertex%d",num_vertices());
data/libint2-2.6.0/src/bin/libint/dg.cc:1161: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).
    def << contr_loop->open();
data/libint2-2.6.0/src/bin/libint/dg.cc:1694: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).
      os << loop.open();
data/libint2-2.6.0/src/bin/libint/dg.cc:1714: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).
  os << hsi_loop->open();
data/libint2-2.6.0/src/bin/libint/dg.cc:1718: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).
  os << lsi_loop->open();
data/libint2-2.6.0/src/bin/libint/dg.cc:1747:22:  [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).
  os << outer_vloop->open();
data/libint2-2.6.0/src/bin/libint/dg.cc:1915:31:  [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).
            os << line_vloop->open();
data/libint2-2.6.0/src/bin/libint/dg.cc:2012:31:  [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).
            os << line_vloop->open();
data/libint2-2.6.0/src/bin/libint/dg.cc:2118: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).
      os << loop.open();
data/libint2-2.6.0/src/bin/libint/iface.cc:397: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).
          N_ = atoi(N_str.c_str());
data/libint2-2.6.0/src/bin/libint/memory.cc:550:16:  [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 const char labels_[MemoryManagerFactory::ntypes][80] = {
data/libint2-2.6.0/src/bin/libint/multipole.h:115: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 result[NDIM+1];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:34: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 XY[np][2] = { "P", "Q" };
data/libint2-2.6.0/src/bin/libint/prefactors.cc:35: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 X[np][2][2] = { {"A", "B"},
data/libint2-2.6.0/src/bin/libint/prefactors.cc:41: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 XY_X_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:46: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 W_XY_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:54: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 XY_X_i_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:59: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 W_XY_i_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:67: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 X_Y_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:73: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 X_Y_i_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:79: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 Y_X_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:84: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 Y_X_i_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:97: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 tmp_str[40];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:98: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(tmp_str,"TwoPRepITR_pfac0_%d",p);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:102: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(tmp_str,"TwoPRepITR_pfac1_%d",p);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:108: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 tmp_str[40];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:109: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(tmp_str,"TwoPRepITR_pfac0_%d_%c",p,xyz_str[xyz]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:123: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 tmp_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:124: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(tmp_str,"R12kG12_pfac0_%d",p);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:128: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(tmp_str,"R12kG12_pfac1_%d",p);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:132: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(tmp_str,"R12kG12_pfac3_%d",p);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:136: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(tmp_str,"R12kG12_pfac4_%d",p);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:142: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 tmp_str[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:143: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(tmp_str,"R12kG12_pfac0_%d_%c",p,xyz_str[xyz]);
data/libint2-2.6.0/src/bin/libint/prefactors.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(tmp_str,"R12kG12_pfac4_%d_%c",p,xyz_str[xyz]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:155: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 tmpstr[200];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:156: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(tmpstr,"zeta_%c",X[p][braket][0]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:164: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 tmpstr[200];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:165: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(tmpstr,"zeta_%c_2",X[p][braket][0]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:171: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 alpha12_str[np][20] = { "zeta", "eta" };
data/libint2-2.6.0/src/bin/libint/prefactors.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 alpha12_char[np+1] = "ze";
data/libint2-2.6.0/src/bin/libint/prefactors.cc:177: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 oo2z[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:178: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(oo2z,"oo2%c",alpha12_char[p]);
data/libint2-2.6.0/src/bin/libint/prefactors.cc:182: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 roz[20];
data/libint2-2.6.0/src/bin/libint/prefactors.cc:183: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(roz,"ro%c",alpha12_char[p]);
data/libint2-2.6.0/src/bin/profile/profile.cc:327:21:  [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).
  const int mmax  = atoi(argv[1]);
data/libint2-2.6.0/src/bin/profile/profile.cc:328:21:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  const double T  = atol(argv[2]);
data/libint2-2.6.0/src/bin/profile/profile.cc:330:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  const int nrepeats  = atoi(argv[3]);
data/libint2-2.6.0/src/bin/test_eri/time_eri.cc:64: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).
  uint niter = atoi(argv[1]);
data/libint2-2.6.0/tests/eri/test.cc:86:63:  [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).
  const unsigned int deriv_order = (argc == 2 || argc == 3) ? atoi(argv[1]) : 0u;
data/libint2-2.6.0/tests/eri/test.cc:87:47:  [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).
  const unsigned int lmax_max = (argc == 3) ? atoi(argv[2]) : UINT_MAX;
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:856: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 errmsg[256] = "Could not open file ";
data/libint2-2.6.0/tests/unit/catch.hpp:1816: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 timeStamp[timeStampSize];
data/libint2-2.6.0/tests/unit/catch.hpp:4871:29:  [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.
        alignas(alignof(T)) char storage[sizeof(T)];
data/libint2-2.6.0/tests/unit/catch.hpp:5333:16:  [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 line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/libint2-2.6.0/tests/unit/catch.hpp:5897: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).
        void open();
data/libint2-2.6.0/tests/unit/catch.hpp:9330:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &f, sizeof(f));
data/libint2-2.6.0/tests/unit/catch.hpp:9339:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &d, sizeof(d));
data/libint2-2.6.0/tests/unit/catch.hpp:9754: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 m_buffer[L_tmpnam] = { 0 };
data/libint2-2.6.0/tests/unit/catch.hpp:9841: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 buffer[100];
data/libint2-2.6.0/tests/unit/catch.hpp:9850:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        m_file = std::tmpfile();
data/libint2-2.6.0/tests/unit/catch.hpp:9874: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 buffer[100] = {};
data/libint2-2.6.0/tests/unit/catch.hpp:10290:30:  [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).
                    tracker->open();
data/libint2-2.6.0/tests/unit/catch.hpp:11045:31:  [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 **utf8Argv = new char *[ argc ];
data/libint2-2.6.0/tests/unit/catch.hpp:11199: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 data[bufferSize];
data/libint2-2.6.0/tests/unit/catch.hpp:11248:23:  [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).
                m_ofs.open( filename.c_str() );
data/libint2-2.6.0/tests/unit/catch.hpp:11479: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( m_data, m_start, m_size );
data/libint2-2.6.0/tests/unit/catch.hpp:11998:23:  [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 TrackerBase::open() {
data/libint2-2.6.0/tests/unit/catch.hpp:12098: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).
            open();
data/libint2-2.6.0/tests/unit/catch.hpp:12383:21:  [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 asChar[sizeof (int)];
data/libint2-2.6.0/tests/unit/catch.hpp:13040: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 buffer[maxDoubleSize];
data/libint2-2.6.0/tests/unit/catch.hpp:13047:14:  [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.
        std::sprintf(buffer, "%.3f", duration);
data/libint2-2.6.0/tests/unit/catch.hpp:13630: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/libint2-2.6.0/tests/unit/catch.hpp:13659: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).
        tp.open();
data/libint2-2.6.0/tests/unit/catch.hpp:14014: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 timeStamp[timeStampSize];
data/libint2-2.6.0/include/libint2/atom.h:68:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
         std::equal(a.begin(), a.end(), b.begin(), [](char a, char b) {
data/libint2-2.6.0/include/libint2/engine.h:797:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os << "timers: prereq = " << timers.read(0);
data/libint2-2.6.0/include/libint2/engine.h:801:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os << " build = " << timers.read(1);
data/libint2-2.6.0/include/libint2/engine.h:803:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os << " tform = " << timers.read(2) << std::endl;
data/libint2-2.6.0/include/libint2/engine.h:806:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os << "build timers: hrr = " << primdata_[0].timers->read(0)
data/libint2-2.6.0/include/libint2/engine.h:807:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       << " vrr = " << primdata_[0].timers->read(1) << std::endl;
data/libint2-2.6.0/include/libint2/engine.h:832:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(task_name_, task_name, 64);
data/libint2-2.6.0/include/libint2/engine.impl.h:1672:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const auto t1_hrr_start = primdata_[0].timers->read(0);
data/libint2-2.6.0/include/libint2/engine.impl.h:1673:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const auto t1_vrr_start = primdata_[0].timers->read(1);
data/libint2-2.6.0/include/libint2/engine.impl.h:1748:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    class_profiles[id].build_hrr += primdata_[0].timers->read(0) - t1_hrr_start;
data/libint2-2.6.0/include/libint2/engine.impl.h:1749:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    class_profiles[id].build_vrr += primdata_[0].timers->read(1) - t1_vrr_start;
data/libint2-2.6.0/include/libint2/lcao/1body.h:779:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(errmsg + 20, filename.c_str(), 235);
data/libint2-2.6.0/include/libint2/lcao/1body.h:1191:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "done (" << timer.read(0) << " s)" << std::endl;
data/libint2-2.6.0/include/libint2/lcao/1body.h:1285:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "done (" << timer.read(0) << " s)" << std::endl;
data/libint2-2.6.0/include/libint2/lcao/1body.h:1603:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    time_for_ints += t.read(0);
data/libint2-2.6.0/include/libint2/lcao/1body.h:1865:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    time_for_ints += t.read(0);
data/libint2-2.6.0/include/libint2/lcao/1body.h:2108:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for(const auto& timer: timers) ints_time += timer.read(0);
data/libint2-2.6.0/include/libint2/lcao/1body.h:2111:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for(const auto& timer: timers) copy_time += timer.read(1);
data/libint2-2.6.0/include/libint2/lcao/1body.h:2113:72:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::cout << "wall time for Zxy integrals + copy = " << wall_timer.read(0) << std::endl;
data/libint2-2.6.0/include/libint2/lcao/1body.h:2139:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::cout << "time for integrals metric tform = " << timers[0].read(2)
data/libint2-2.6.0/include/libint2/lcao/1body.h:2156:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "time for exchange = " << timers[0].read(3) << std::endl;
data/libint2-2.6.0/include/libint2/lcao/1body.h:2167:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "time for coulomb = " << timers[0].read(4) << std::endl;
data/libint2-2.6.0/include/libint2/util/timer.h:74:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      double read(size_t t) const {
data/libint2-2.6.0/src/bin/libint/stdarray_bits.h:187:29:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                return std::equal(x.begin(), x.end(), y.begin());
data/libint2-2.6.0/src/bin/profile/profile.cc:437:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Time = " << fixed << timer.read(0) << endl;
data/libint2-2.6.0/src/bin/profile/profile.cc:438:69:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Rate = " << fixed << nrepeats * k.ops_per_eval() / timer.read(0) << endl;
data/libint2-2.6.0/src/bin/profile/profile.cc:475:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Time = " << fixed << timer.read(0) << endl;
data/libint2-2.6.0/src/bin/profile/profile.cc:476:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Rate = " << fixed << nrepeats / timer.read(0)  << endl;
data/libint2-2.6.0/src/bin/profile/profile.cc:512:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Time = " << fixed << timer.read(0) << endl;
data/libint2-2.6.0/src/bin/profile/profile.cc:513:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Rate = " << fixed << nrepeats / timer.read(0)  << endl;
data/libint2-2.6.0/src/bin/profile/profile.cc:582:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Time = " << fixed << timer.read(0) << endl;
data/libint2-2.6.0/src/bin/profile/profile.cc:583:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Rate = " << fixed << nrepeats / timer.read(0)  << endl;
data/libint2-2.6.0/src/bin/profile/profile.cc:623:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Time = " << fixed << timer.read(0) << endl;
data/libint2-2.6.0/src/bin/profile/profile.cc:624:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cout << "Rate = " << fixed << nrepeats / timer.read(0)  << endl;
data/libint2-2.6.0/src/bin/test_eri/test_eri_rys.cc:529:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "Timers{Rys,2d-build} = {" << timers.read(0) << "," << timers.read(1) << "}\n";
data/libint2-2.6.0/src/bin/test_eri/test_eri_rys.cc:529:78:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "Timers{Rys,2d-build} = {" << timers.read(0) << "," << timers.read(1) << "}\n";
data/libint2-2.6.0/src/bin/test_eri/test_eri_rys.cc:581:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
cout<<"6d build time per shell set: "<<timers.read(2)/max_num_ints<<std::endl;
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:857:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(errmsg + 20, filename.c_str(), 235);
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:1268:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "done (" << timer.read(0) << " s)" << std::endl;
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:1379:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "done (" << timer.read(0) << " s)" << std::endl;
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:1708:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    time_for_ints += t.read(0);
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:1970:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    time_for_ints += t.read(0);
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:2213:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for(const auto& timer: timers) ints_time += timer.read(0);
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:2216:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for(const auto& timer: timers) copy_time += timer.read(1);
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:2218:72:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::cout << "wall time for Zxy integrals + copy = " << wall_timer.read(0) << std::endl;
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:2244:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::cout << "time for integrals metric tform = " << timers[0].read(2)
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:2261:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "time for exchange = " << timers[0].read(3) << std::endl;
data/libint2-2.6.0/tests/hartree-fock/hartree-fock++.cc:2272:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  std::cout << "time for coulomb = " << timers[0].read(4) << std::endl;
data/libint2-2.6.0/tests/unit/catch.hpp:11074:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/libint2-2.6.0/tests/unit/catch.hpp:11079:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/libint2-2.6.0/tests/unit/catch.hpp:11370:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
data/libint2-2.6.0/tests/unit/catch.hpp:11376:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
data/libint2-2.6.0/tests/unit/catch.hpp:11447:67:  [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).
    : StringRef( rawChars, static_cast<StringRef::size_type>(std::strlen(rawChars) ) )

ANALYSIS SUMMARY:

Hits = 170
Lines analyzed = 944026 in approximately 40.65 seconds (23221 lines/second)
Physical Source Lines of Code (SLOC) = 886805
Hits@level = [0]   7 [1]  53 [2]  99 [3]  10 [4]   8 [5]   0
Hits@level+ = [0+] 177 [1+] 170 [2+] 117 [3+]  18 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 0.199593 [1+] 0.191699 [2+] 0.131934 [3+] 0.0202976 [4+] 0.00902115 [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.