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/fflas-ffpack-2.4.3/autotune/arithprog.C Examining data/fflas-ffpack-2.4.3/autotune/charpoly.C Examining data/fflas-ffpack-2.4.3/autotune/fsyrk.C Examining data/fflas-ffpack-2.4.3/autotune/fsytrf.C Examining data/fflas-ffpack-2.4.3/autotune/ftrtri.C Examining data/fflas-ffpack-2.4.3/autotune/pluq.C Examining data/fflas-ffpack-2.4.3/autotune/winograd.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-charpoly-mp.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-charpoly.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-checkers.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-dgemm.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-dgetrf.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-dgetri.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-dsytrf.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-dtrsm.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-dtrtri.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fadd-lvl2.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fdot.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fgemm-mp.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fgemm-rns.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fgemm.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fgemv-mp.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fgemv.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fgesv.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fspmm.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fspmv.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fsyrk.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-fsytrf.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-ftrsm-mp.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-ftrsm.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-ftrsv.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-ftrtri.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-inverse.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-lqup-mp.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-lqup.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-pfspmv.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-pluq.C Examining data/fflas-ffpack-2.4.3/benchmarks/benchmark-wino.C Examining data/fflas-ffpack-2.4.3/examples/charpoly.C Examining data/fflas-ffpack-2.4.3/examples/det.C Examining data/fflas-ffpack-2.4.3/examples/matmul.C Examining data/fflas-ffpack-2.4.3/examples/pluq.C Examining data/fflas-ffpack-2.4.3/examples/rank.C Examining data/fflas-ffpack-2.4.3/examples/solve.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/checkers/checker_empty.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/checkers/checkers_fflas.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/checkers/checkers_ffpack.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/config-blas.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas-ffpack-config.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas-ffpack-default-thresholds.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas-ffpack.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_enum.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_fadd.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_fassign.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_freduce.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_fscal.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_igemm/igemm.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_igemm/igemm_kernels.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_igemm/igemm_tools.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_simd.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/coo.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/csr.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/csr_hyb.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/ell.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/ell_r.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/ell_simd.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/hyb_zo.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/read_sparse.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/sell.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/sparse_matrix_traits.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/utils.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/ffpack/ffpack.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/field/field-traits.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns-double-elt.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns-double.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns-integer-mod.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns-integer.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_L1_inst.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_L1_inst.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_L2_inst.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_L2_inst.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_L3_inst.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_L3_inst.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_c.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_lvl1.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_lvl2.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_lvl3.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/fflas_sparse.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/ffpack.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/ffpack_c.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/ffpack_inst.C Examining data/fflas-ffpack-2.4.3/fflas-ffpack/interfaces/libs/ffpack_inst.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/paladin/fflas_plevel1.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/paladin/parallel.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/align-allocator.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/bit_manipulation.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/cast.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/debug.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_intrinsic.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_memory.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_randommatrix.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/flimits.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/test-utils.h Examining data/fflas-ffpack-2.4.3/fflas-ffpack/utils/timer.h Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/avx.C Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/cblas.C Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/clapack.C Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/cuda.C Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/fblas.C Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/givaro.C Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/gmp.C Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/instrset.h Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/instrset_detect.cpp Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/lapack.C Examining data/fflas-ffpack-2.4.3/macros/CodeChunk/sse.C Examining data/fflas-ffpack-2.4.3/tests/dense_generator.C Examining data/fflas-ffpack-2.4.3/tests/regression-check.C Examining data/fflas-ffpack-2.4.3/tests/test-bini-p.C Examining data/fflas-ffpack-2.4.3/tests/test-charpoly-check.C Examining data/fflas-ffpack-2.4.3/tests/test-charpoly.C Examining data/fflas-ffpack-2.4.3/tests/test-compressQ.C Examining data/fflas-ffpack-2.4.3/tests/test-det-check.C Examining data/fflas-ffpack-2.4.3/tests/test-det.C Examining data/fflas-ffpack-2.4.3/tests/test-echelon.C Examining data/fflas-ffpack-2.4.3/tests/test-fadd.C Examining data/fflas-ffpack-2.4.3/tests/test-fdot.C Examining data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C Examining data/fflas-ffpack-2.4.3/tests/test-fgemm.C Examining data/fflas-ffpack-2.4.3/tests/test-fgemv.C Examining data/fflas-ffpack-2.4.3/tests/test-fger.C Examining data/fflas-ffpack-2.4.3/tests/test-fgesv.C Examining data/fflas-ffpack-2.4.3/tests/test-finit.C Examining data/fflas-ffpack-2.4.3/tests/test-frobenius.C Examining data/fflas-ffpack-2.4.3/tests/test-fscal.C Examining data/fflas-ffpack-2.4.3/tests/test-fspmm-dlp.C Examining data/fflas-ffpack-2.4.3/tests/test-fspmm-recint.C Examining data/fflas-ffpack-2.4.3/tests/test-fsyr2k.C Examining data/fflas-ffpack-2.4.3/tests/test-fsyrk.C Examining data/fflas-ffpack-2.4.3/tests/test-fsytrf.C Examining data/fflas-ffpack-2.4.3/tests/test-ftrmm.C Examining data/fflas-ffpack-2.4.3/tests/test-ftrmv.C Examining data/fflas-ffpack-2.4.3/tests/test-ftrsm-check.C Examining data/fflas-ffpack-2.4.3/tests/test-ftrsm.C Examining data/fflas-ffpack-2.4.3/tests/test-ftrssyr2k.C Examining data/fflas-ffpack-2.4.3/tests/test-ftrstr.C Examining data/fflas-ffpack-2.4.3/tests/test-ftrsv.C Examining data/fflas-ffpack-2.4.3/tests/test-ftrtri.C Examining data/fflas-ffpack-2.4.3/tests/test-fullranksubmatrix.C Examining data/fflas-ffpack-2.4.3/tests/test-igemm.C Examining data/fflas-ffpack-2.4.3/tests/test-interfaces-c.c Examining data/fflas-ffpack-2.4.3/tests/test-invert-check.C Examining data/fflas-ffpack-2.4.3/tests/test-invert.C Examining data/fflas-ffpack-2.4.3/tests/test-io.C Examining data/fflas-ffpack-2.4.3/tests/test-krylov-elim.C Examining data/fflas-ffpack-2.4.3/tests/test-lu.C Examining data/fflas-ffpack-2.4.3/tests/test-matrix-io.h Examining data/fflas-ffpack-2.4.3/tests/test-maxdelayeddim.C Examining data/fflas-ffpack-2.4.3/tests/test-minpoly.C Examining data/fflas-ffpack-2.4.3/tests/test-multifile1.C Examining data/fflas-ffpack-2.4.3/tests/test-multifile2.C Examining data/fflas-ffpack-2.4.3/tests/test-nullspace.C Examining data/fflas-ffpack-2.4.3/tests/test-paladin-splitter.C Examining data/fflas-ffpack-2.4.3/tests/test-paladin-task.C Examining data/fflas-ffpack-2.4.3/tests/test-permutations.C Examining data/fflas-ffpack-2.4.3/tests/test-pfgemm-DSL.C Examining data/fflas-ffpack-2.4.3/tests/test-pluq-check.C Examining data/fflas-ffpack-2.4.3/tests/test-pluq.C Examining data/fflas-ffpack-2.4.3/tests/test-ppluq.C Examining data/fflas-ffpack-2.4.3/tests/test-rankprofiles.C Examining data/fflas-ffpack-2.4.3/tests/test-rpm.C Examining data/fflas-ffpack-2.4.3/tests/test-simd.C Examining data/fflas-ffpack-2.4.3/tests/test-solve.C Examining data/fflas-ffpack-2.4.3/tests/test-sparse.C Examining data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C Examining data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C Examining data/fflas-ffpack-2.4.3/tests/testeur_lqup.C Examining data/fflas-ffpack-2.4.3/tutorials/101-fgemm.C Examining data/fflas-ffpack-2.4.3/tutorials/2x2-fgemm.C Examining data/fflas-ffpack-2.4.3/tutorials/2x2-ftrsv.C Examining data/fflas-ffpack-2.4.3/tutorials/2x2-pluq.C Examining data/fflas-ffpack-2.4.3/tutorials/fflas-101_1.C Examining data/fflas-ffpack-2.4.3/tutorials/fflas-101_3.C Examining data/fflas-ffpack-2.4.3/tutorials/fflas_101.C Examining data/fflas-ffpack-2.4.3/tutorials/fflas_101_lvl1.C Examining data/fflas-ffpack-2.4.3/tutorials/ffpack-fgesv.C Examining data/fflas-ffpack-2.4.3/tutorials/ffpack-solve.C FINAL RESULTS: data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:54:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(UT,"gunzip -c %s > %s", mat_file, File_Name); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:55:13: [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 (system(UT)) data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:57:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(UT,"\\rm %s", File_Name); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:84:13: [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 (system(UT)) data/fflas-ffpack-2.4.3/benchmarks/benchmark-charpoly-mp.C:84: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. G.random(*(A+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-checkers.C:68: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/fflas-ffpack-2.4.3/benchmarks/benchmark-checkers.C:151:52: [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. for( size_t i = 0; i < m*n; ++i ) Rand.random( *(B+i) ); data/fflas-ffpack-2.4.3/benchmarks/benchmark-checkers.C:154:65: [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. A[i*k+j]= (uplo == FFLAS::FflasLower)? Rand.random(tmp) : F.zero; data/fflas-ffpack-2.4.3/benchmarks/benchmark-checkers.C:155:65: [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. A[i*k+i]= (diag == FFLAS::FflasNonUnit)? NZRand.random(tmp) : F.one; data/fflas-ffpack-2.4.3/benchmarks/benchmark-checkers.C:157:65: [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. A[i*k+j]= (uplo == FFLAS::FflasUpper)? Rand.random(tmp) : F.zero; data/fflas-ffpack-2.4.3/benchmarks/benchmark-dgemm.C:91:23: [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. G.random(*(A+i*n+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-dgemm.C:103:23: [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. G.random(*(B+i*n+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-dgemm.C:127:23: [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. G.random(*(A+i*n+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-dgemm.C:139:23: [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. G.random(*(B+i*n+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-dgetri.C:91: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. G.random(*(A+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-dtrsm.C:77: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. G.random(*(A+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-dtrsm.C:86: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. G.random(*(A+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-dtrsm.C:90:32: [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. while (F.isZero( G.random(*(A+k*(n+1))))); data/fflas-ffpack-2.4.3/benchmarks/benchmark-dtrtri.C:75: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. G.random(*(A+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-dtrtri.C:77:36: [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. while (F.isZero( G.random(*(A+k*(n+1))))); data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:61:22: [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 index=lrand48() % Z.size(); data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:67:33: [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. while( F.isZero( G.random(U[ P[i]*lda+P[i] ]) ) ) {} data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:69:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. G.random(U[ P[i]*lda+j]); data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:93:22: [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 index=lrand48() % Z.size(); data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:99:22: [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 index=lrand48() % E.size(); data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:106: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. G.random(L[j*lda+P[perm]]); data/fflas-ffpack-2.4.3/benchmarks/benchmark-fgemm-mp.C:91: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( (int)seed); data/fflas-ffpack-2.4.3/benchmarks/benchmark-fgemv-mp.C:105: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( (int)seed); data/fflas-ffpack-2.4.3/benchmarks/benchmark-fsyrk.C:85: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. nzG.random(D[i]); data/fflas-ffpack-2.4.3/benchmarks/benchmark-ftrsm-mp.C:48: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((int)time(NULL)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-ftrsm-mp.C:88: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. Rand.random(A[ii]); data/fflas-ffpack-2.4.3/benchmarks/benchmark-ftrsm-mp.C:90: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. Rand.random(B[ii]); data/fflas-ffpack-2.4.3/benchmarks/benchmark-ftrsm.C:88:32: [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. while (F.isZero( G.random(*(A+k*(m+1))))); data/fflas-ffpack-2.4.3/benchmarks/benchmark-inverse.C:68: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. G.random(*(A+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-lqup-mp.C:38: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((int)time(NULL)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-lqup-mp.C:78: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. Rand.random(A[ii]); data/fflas-ffpack-2.4.3/benchmarks/benchmark-lqup.C:70: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. G.random(*(A+j)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-wino.C:57:11: [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. G.random(A[i]); data/fflas-ffpack-2.4.3/benchmarks/benchmark-wino.C:134: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((uint32_t)seed); data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns-double.h:437:32: [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. typename RNS::Element& random(typename RNS::Element& elt) const { data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns-double.h:440:22: [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. iter.random( *coefficient ); data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns-double.h:447: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. return this->random(elt); data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns-double.h:454:31: [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. typename RNS::Element random() const { data/fflas-ffpack-2.4.3/fflas-ffpack/field/rns-integer-mod.h:80:36: [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. typename RNS::Element& random(typename RNS::Element& elt) const { data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_randommatrix.h:61:37: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (!F.isZero(G.random (A[i*lda+j]))) data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_randommatrix.h:98: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. G.random (A[i*lda+j]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_randommatrix.h:139:23: [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. G.random (A[i*lda+j]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_randommatrix.h:144:23: [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. G.random (A[i*lda+j]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_randommatrix.h:155:25: [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. nzG.random (A[i*(lda+1)]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_randommatrix.h:425: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. nzG.random (L [i*N+j]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_randommatrix.h:427: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. G.random (L [l*N+j]); data/fflas-ffpack-2.4.3/tests/dense_generator.C:33:24: [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. return r = T( (lrand48() % (-size-size)) + size ); data/fflas-ffpack-2.4.3/tests/dense_generator.C:35:24: [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. return r = T( lrand48() % size ) ; data/fflas-ffpack-2.4.3/tests/regression-check.C:48:11: [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. R.random(elt); data/fflas-ffpack-2.4.3/tests/test-bini-p.C:2435: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/fflas-ffpack-2.4.3/tests/test-charpoly-check.C:87: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/fflas-ffpack-2.4.3/tests/test-charpoly.C:214: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/fflas-ffpack-2.4.3/tests/test-det-check.C:72:5: [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(seed); data/fflas-ffpack-2.4.3/tests/test-det-check.C:81: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. n = random() % MAXN + 1; data/fflas-ffpack-2.4.3/tests/test-det.C:61: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. G.random(dt); data/fflas-ffpack-2.4.3/tests/test-echelon.C:461: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/fflas-ffpack-2.4.3/tests/test-fadd.C:294:2: [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/fflas-ffpack-2.4.3/tests/test-fdot.C:203: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/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:56:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2) ta = FFLAS::FflasTrans ; data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:57:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2) tb = FFLAS::FflasTrans ; data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:60:23: [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. m = 1+(size_t)random() % -mm; data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:63:23: [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. n = 1+(size_t)random() % -nn; data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:66:23: [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. k = 1+(size_t)random() % -kk; data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:69:33: [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. lda = std::max(k,m)+(size_t)random()%ld; data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:70:33: [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. ldb = std::max(n,k)+(size_t)random()%ld; data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:71:21: [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. ldc = n+(size_t)random()%ld; data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:130:9: [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(local_seed); data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:161:13: [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. NZR.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:170: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. R.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fgemm-check.C:171: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. R.random(beta); data/fflas-ffpack-2.4.3/tests/test-fgemm.C:243: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. if (random()%2) ta = FflasTrans ; data/fflas-ffpack-2.4.3/tests/test-fgemm.C:244: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. if (random()%2) tb = FflasTrans ; data/fflas-ffpack-2.4.3/tests/test-fgemm.C:248:27: [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. m = 1+(size_t)random() % -mm; data/fflas-ffpack-2.4.3/tests/test-fgemm.C:251:27: [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. n = 1+(size_t)random() % -nn; data/fflas-ffpack-2.4.3/tests/test-fgemm.C:254:27: [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. k = 1+(size_t)random() % -kk; data/fflas-ffpack-2.4.3/tests/test-fgemm.C:260:37: [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. lda = std::max(k,m)+(size_t)random()%ld; data/fflas-ffpack-2.4.3/tests/test-fgemm.C:261:37: [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. ldb = std::max(n,k)+(size_t)random()%ld; data/fflas-ffpack-2.4.3/tests/test-fgemm.C:262:25: [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. ldc = n+(size_t)random()%ld; data/fflas-ffpack-2.4.3/tests/test-fgemm.C:302:25: [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. nbw = (int) random() % 7; data/fflas-ffpack-2.4.3/tests/test-fgemm.C:332:13: [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. NZR.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fgemm.C:347: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. R.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fgemm.C:348: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. R.random(beta); data/fflas-ffpack-2.4.3/tests/test-fgemm.C:396: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/fflas-ffpack-2.4.3/tests/test-fgemv.C:274:27: [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. m = 1+(size_t)random() % -mm; data/fflas-ffpack-2.4.3/tests/test-fgemv.C:277:27: [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. k = 1+(size_t)random() % -kk; data/fflas-ffpack-2.4.3/tests/test-fgemv.C:280:25: [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. lda = k+(size_t)random()%ld; data/fflas-ffpack-2.4.3/tests/test-fgemv.C:281: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. incX = 1+(size_t)random()%ld; data/fflas-ffpack-2.4.3/tests/test-fgemv.C:282: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. incY = 1+(size_t)random()%ld; data/fflas-ffpack-2.4.3/tests/test-fgemv.C:340:13: [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. NZR.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fgemv.C:355: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. R.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fgemv.C:356: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. R.random(beta); data/fflas-ffpack-2.4.3/tests/test-fgemv.C:402: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/fflas-ffpack-2.4.3/tests/test-fger.C:195:23: [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. m = 1+(size_t)random()%nn; data/fflas-ffpack-2.4.3/tests/test-fger.C:196:23: [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. n = 1+(size_t)random()%nn; data/fflas-ffpack-2.4.3/tests/test-fger.C:251:11: [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. R.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fgesv.C:272: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/fflas-ffpack-2.4.3/tests/test-fscal.C:107:4: [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. G.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fscal.C:109:4: [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. G.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fscal.C:178:4: [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. G.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fscal.C:180:4: [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. G.random(alpha); data/fflas-ffpack-2.4.3/tests/test-fscal.C:212:2: [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/fflas-ffpack-2.4.3/tests/test-fsyrk.C:128:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. nzRand.random(D[i*incD]); data/fflas-ffpack-2.4.3/tests/test-fsyrk.C:229: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. nzRand.random(D[i*incD]); data/fflas-ffpack-2.4.3/tests/test-fsyrk.C:231: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. nzRand.random(D[i*incD]); data/fflas-ffpack-2.4.3/tests/test-fsyrk.C:415: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/fflas-ffpack-2.4.3/tests/test-fsytrf.C:235: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/fflas-ffpack-2.4.3/tests/test-ftrsm-check.C:57:5: [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(seed); data/fflas-ffpack-2.4.3/tests/test-ftrsm-check.C:66: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. size_t m = random() % MAXN + 1; data/fflas-ffpack-2.4.3/tests/test-ftrsm-check.C:67: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. size_t n = random() % MAXN + 1; data/fflas-ffpack-2.4.3/tests/test-ftrsm-check.C:69:14: [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. Rand.random(alpha); data/fflas-ffpack-2.4.3/tests/test-ftrsm-check.C:85:61: [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. A[i*k+j]= (uplo == FFLAS::FflasLower)? Rand.random(tmp) : F.zero; data/fflas-ffpack-2.4.3/tests/test-ftrsm-check.C:86:61: [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. A[i*k+i]= (diag == FFLAS::FflasNonUnit)? NZRand.random(tmp) : F.one; data/fflas-ffpack-2.4.3/tests/test-ftrsm-check.C:88:61: [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. A[i*k+j]= (uplo == FFLAS::FflasUpper)? Rand.random(tmp) : F.zero; data/fflas-ffpack-2.4.3/tests/test-ftrssyr2k.C:157: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/fflas-ffpack-2.4.3/tests/test-ftrstr.C:155: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/fflas-ffpack-2.4.3/tests/test-igemm.C:50: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((unsigned int)time(NULL)); data/fflas-ffpack-2.4.3/tests/test-invert-check.C:55: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/fflas-ffpack-2.4.3/tests/test-invert-check.C:63:5: [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(seed); data/fflas-ffpack-2.4.3/tests/test-invert-check.C:68:13: [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. m = random() % MAXM + 1; data/fflas-ffpack-2.4.3/tests/test-invert.C:124: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/fflas-ffpack-2.4.3/tests/test-io.C:156: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/fflas-ffpack-2.4.3/tests/test-lu.C:404: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/fflas-ffpack-2.4.3/tests/test-nullspace.C:189: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/fflas-ffpack-2.4.3/tests/test-paladin-splitter.C:94: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. G.random (*(A+i*n+j)); data/fflas-ffpack-2.4.3/tests/test-paladin-splitter.C:99: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. G.random (*(B+i*n+j)); data/fflas-ffpack-2.4.3/tests/test-paladin-splitter.C:104: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. G.random (*(C+i*n+j)); data/fflas-ffpack-2.4.3/tests/test-paladin-splitter.C:113:43: [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. G.random (*(A+i));); data/fflas-ffpack-2.4.3/tests/test-paladin-splitter.C:117:43: [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. G.random (*(B+i));); data/fflas-ffpack-2.4.3/tests/test-paladin-splitter.C:121:43: [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. G.random (*(C+i));); data/fflas-ffpack-2.4.3/tests/test-pluq-check.C:64:5: [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 (seed); data/fflas-ffpack-2.4.3/tests/test-pluq-check.C:76: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. m = random() % MAXM + 1; data/fflas-ffpack-2.4.3/tests/test-pluq-check.C:77: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. n = random() % MAXN + 1; data/fflas-ffpack-2.4.3/tests/test-ppluq.C:190: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. G.random (*(Acop+i*n+j)); data/fflas-ffpack-2.4.3/tests/test-rankprofiles.C:279: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/fflas-ffpack-2.4.3/tests/test-rpm.C:131: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/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:96:9: [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(_p); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:99: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. _p = random();//max % (2<<30); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:111:27: [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. M = (size_t) random() % TMAXM; data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:112:27: [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. K = (size_t) random() % TMAXK; data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:113:27: [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. N = (size_t) random() % TMAXN; data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:114: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. Wino = random() % WINOMAX; data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:117:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2){ data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:125:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2){ data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:141: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. RValue.random( *(A+i) ); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:143: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. RValue.random( *(B+i) ); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:145:43: [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. *(Cter+i) = *(Cbis+i)= RValue.random( *(C+i) ); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:147:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. RValue.random( alpha ); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:148:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. RValue.random( beta ); data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:75:9: [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(_p); data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:78: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. _p = random();//max % (2<<30); data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:87:27: [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. M = (size_t) random() % TMAX; data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:88:27: [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. N = (size_t) random() % TMAX; data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:93:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2) data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:99:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2) data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:104:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2){ data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:114:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2) data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:119:32: [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. while (F.isZero(RValue.random (alpha))); data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:127:24: [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. RValue.random (*(B + i*N + j)); data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:132:44: [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. *(Abis + i*K + j) = RValue.random (*(A + i*K + j)); data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:134:36: [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. while (F.isZero(RValue.random (*(A + i*(K+1))))); data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:78:9: [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(_p); data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:81: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. _p = random();//max % (2<<30); data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:91:27: [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. M = (size_t) random() % TMAX; data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:92:27: [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. N = (size_t) random() % TMAX; data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:95:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2) data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:101:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random()%2){ data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:125: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. t = (size_t) random() % 10; data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:128: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. if (!(random() % t)) data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:130: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. RValue.random (*(G+i*M+j)); data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:138: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. if (!(random() % t)) data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:140: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. RValue.random (*(H+i*N+j)); data/fflas-ffpack-2.4.3/autotune/arithprog.C:60:14: [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_t n=atoi(argv[1]); // starting value for the block size data/fflas-ffpack-2.4.3/autotune/arithprog.C:61:17: [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_t nmax=atoi(argv[2]); // max value for the block size data/fflas-ffpack-2.4.3/autotune/arithprog.C:62:17: [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_t step=atoi(argv[3]); // step for the search data/fflas-ffpack-2.4.3/autotune/arithprog.C:63:22: [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_t confirm = atoi(argv[4]); // number of increasing values in a row to trigger termination data/fflas-ffpack-2.4.3/autotune/arithprog.C:64: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). size_t dim = atoi(argv[5]); // matrix dimension data/fflas-ffpack-2.4.3/autotune/arithprog.C:65: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). size_t iter = atoi(argv[6]); // number of repetitions data/fflas-ffpack-2.4.3/examples/charpoly.C:38:13: [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 p = atoi(argv[1]); data/fflas-ffpack-2.4.3/examples/det.C:41:13: [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 p = atoi(argv[1]); data/fflas-ffpack-2.4.3/examples/matmul.C:38:13: [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 p = atoi(argv[1]); data/fflas-ffpack-2.4.3/examples/pluq.C:36:13: [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 p = atoi(argv[1]); data/fflas-ffpack-2.4.3/examples/rank.C:38:13: [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 p = atoi(argv[1]); data/fflas-ffpack-2.4.3/examples/solve.C:37:13: [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 p = atoi(argv[1]); data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse.h:97: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 metaChar[4] = {'G', ' ', ' ', 'C'}; data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse.h:98: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 trans[1] = {'N'}; data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:49:13: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). if (mkstemp(tmp_nam)) data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:62:21: [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* FileDes = fopen(File_Name, "r"); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:64: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 tmp [200];// unsigned long tni, tnj; data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:195: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). int j = atoi(instring.substr((size_t)start,(size_t)count).c_str()); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:218:13: [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 j = atoi(instring.substr((size_t)start,(size_t)count).c_str()); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:263:54: [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 *) current->data = atoi (argv[i+1]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:270:59: [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). *(uint64_t *) current->data = atol (argv[i+1]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:277:60: [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). *(long long *) current->data = atol (argv[i+1]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:287:48: [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). type_integer tmp = atol(argv[i+1]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h:57: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 st[9] = {0}; data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h:125:30: [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 st[9]; data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h:251:30: [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 st[9]="FFBinFmt"; data/fflas-ffpack-2.4.3/tests/dense_generator.C:47:14: [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). ni = atoi( argv[offset] ); data/fflas-ffpack-2.4.3/tests/dense_generator.C:49:14: [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). nj = atoi( argv[offset] ); data/fflas-ffpack-2.4.3/tests/dense_generator.C:51: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). max = atoi( argv[offset] ); data/fflas-ffpack-2.4.3/tests/test-frobenius.C:68:14: [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). Field F( atoi(argv[1]) ); data/fflas-ffpack-2.4.3/tests/test-frobenius.C:71: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). size_t c = atoi(argv[3]); data/fflas-ffpack-2.4.3/tests/test-fullranksubmatrix.C:57:14: [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). Field F (atoi(argv[1])); data/fflas-ffpack-2.4.3/tests/test-krylov-elim.C:66:13: [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). Field F(atoi(argv[1])); data/fflas-ffpack-2.4.3/tests/test-pfgemm-DSL.C:87:13: [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). Field F(atoi(argv[1])); data/fflas-ffpack-2.4.3/tests/test-pfgemm-DSL.C:95:13: [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 nbw=atoi(argv[4]); // number of winograd levels data/fflas-ffpack-2.4.3/tests/test-pfgemm-DSL.C:96:14: [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 nbit=atoi(argv[5]); // number of times the product is performed data/fflas-ffpack-2.4.3/tests/test-pfgemm-DSL.C:101:37: [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). F.assign( alpha, Field::Element(atoi(argv[6]))); data/fflas-ffpack-2.4.3/tests/test-pfgemm-DSL.C:103: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). F.assign( beta, Field::Element(atoi(argv[7]))); data/fflas-ffpack-2.4.3/tests/test-pluq.C:78: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). size_t nbf = atoi(argv[3]); data/fflas-ffpack-2.4.3/tests/test-ppluq.C:151: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). p = (argc>1 ? atoi( argv[1] ) : 1009); data/fflas-ffpack-2.4.3/tests/test-ppluq.C:153: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). m = (argc>2 ? atoi( argv[2] ) : 1024); data/fflas-ffpack-2.4.3/tests/test-ppluq.C:154: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). n = (argc>3 ? atoi( argv[3] ) : 1024); data/fflas-ffpack-2.4.3/tests/test-ppluq.C:156: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). nbf = (argc>4 ? atoi( argv[4] ) : 1); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:74:17: [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). TMAXM = atoi(argv[1]); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:76: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). PRIMESIZE = atoi(argv[2]); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:78: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). WINOMAX = atoi(argv[3]); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:80:17: [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). TMAXK = atoi(argv[4]); data/fflas-ffpack-2.4.3/tests/testeur_fgemm.C:84:17: [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). TMAXN = atoi(argv[5]); data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:61: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). TMAX = atoi(argv[1]); data/fflas-ffpack-2.4.3/tests/testeur_ftrsm.C:63: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). PRIMESIZE = atoi(argv[2]); data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:67: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). TMAX = atoi(argv[1]); data/fflas-ffpack-2.4.3/tests/testeur_lqup.C:69: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). PRIMESIZE = atoi(argv[2]); data/fflas-ffpack-2.4.3/tutorials/2x2-pluq.C:37: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). int64_t p = (argc>1?atoi(argv[1]):5); data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:258:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). f.read(reinterpret_cast<char*>(&seed1), sizeof(seed1)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:259:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). f.read(reinterpret_cast<char*>(&seed2), sizeof(seed2)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:260:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). f.read(reinterpret_cast<char*>(&seed3), sizeof(seed3)); data/fflas-ffpack-2.4.3/benchmarks/benchmark-echelon.C:261:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). f.read(reinterpret_cast<char*>(&seed4), sizeof(seed4)); data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/read_sparse.h:323:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read((char*) &modulo_read, sizeof(T)); data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/read_sparse.h:328:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read((char*)data_read,sizeof(T)); data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/read_sparse.h:423:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read((char*) &magic , sizeof(int64_t)) ; data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/read_sparse.h:427:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read((char*) &field_desc, sizeof(int64_t)) ; data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/read_sparse.h:428:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read((char*) &data_type , sizeof(int64_t)) ; data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/read_sparse.h:429:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read((char*) &rowdim , sizeof(int64_t)) ; data/fflas-ffpack-2.4.3/fflas-ffpack/fflas/fflas_sparse/read_sparse.h:430:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read((char*) &coldim , sizeof(int64_t)) ; data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:42: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). size_t s = strlen(mat_file); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:53: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). UT = FFLAS::fflas_new<char>(s+34+strlen(File_Name)); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/Matio.h:65:13: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (fscanf(FileDes,"%lu %lu %199s\n",tni, tnj, tmp)<0) data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:80: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). if (!strncmp (program, "lt-", strlen ("lt-"))) data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:81: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). program += strlen ("lt-"); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:92: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). l = 10 - (int)strlen (args[i].example); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/args-parser.h:106: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). l = 54 - (int)strlen (args[i].helpString); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h:58:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs.read(st, 8); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h:96:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). F.read (ifs, A[i]); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h:119:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). F.read (ifs, val); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h:132:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs.read(reinterpret_cast<char *>(&mm), sizeof(size_t)); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h:133:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs.read(reinterpret_cast<char *>(&nn), sizeof(size_t)); data/fflas-ffpack-2.4.3/fflas-ffpack/utils/fflas_io.h:136:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ifs.read (reinterpret_cast<char *>(A), sizeof(typename Field::Element)*m*n); data/fflas-ffpack-2.4.3/tests/test-simd.C:56:12: [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. using std::equal; data/fflas-ffpack-2.4.3/tests/test-simd.C:185: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). << " " << string (60 - fname.size() - strlen(TypeName<Element>()), '.') data/fflas-ffpack-2.4.3/tests/test-sparse.C:217:34: [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. cout << "CSR_ZO: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:227:31: [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. cout << "COO: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:237:31: [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. cout << "ELL: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:247:36: [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. cout << "ELL_simd: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:257:35: [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. cout << "CSR_HYB: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:267:34: [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. cout << "HYB_ZO: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:277:32: [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. cout << "SELL: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:294:31: [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. cout << "CSR: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:304:31: [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. cout << "ELL: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:314:36: [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. cout << "ELL_simd: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:324:35: [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. cout << "CSR_HYB: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:334:34: [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. cout << "HYB_ZO: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") data/fflas-ffpack-2.4.3/tests/test-sparse.C:344:32: [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. cout << "SELL: " << ((std::equal(y, y + rowdim, y1)) ? "OK" : "ERROR") ANALYSIS SUMMARY: Hits = 268 Lines analyzed = 40500 in approximately 1.27 seconds (32009 lines/second) Physical Source Lines of Code (SLOC) = 25461 Hits@level = [0] 11 [1] 39 [2] 53 [3] 172 [4] 4 [5] 0 Hits@level+ = [0+] 279 [1+] 268 [2+] 229 [3+] 176 [4+] 4 [5+] 0 Hits/KSLOC@level+ = [0+] 10.9579 [1+] 10.5259 [2+] 8.99415 [3+] 6.91253 [4+] 0.157103 [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.