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/r-cran-luminescence-0.9.8/src/create_UID.cpp Examining data/r-cran-luminescence-0.9.8/src/src_analyse_IRSARRF_SRS.cpp Examining data/r-cran-luminescence-0.9.8/src/src_get_XSYG_curve_values.cpp Examining data/r-cran-luminescence-0.9.8/src/src_EED_Calc_Overall_StatUncertainty.cpp Examining data/r-cran-luminescence-0.9.8/src/src_create_RLumDataCurve_matrix.cpp Examining data/r-cran-luminescence-0.9.8/src/RcppExports.cpp FINAL RESULTS: data/r-cran-luminescence-0.9.8/src/create_UID.cpp:19: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. CharacterVector random; data/r-cran-luminescence-0.9.8/src/create_UID.cpp:34: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. return timestamp + Rcpp::as<std::string>(random); data/r-cran-luminescence-0.9.8/src/create_UID.cpp:22:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timestamp [80]; ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 638 in approximately 0.04 seconds (14661 lines/second) Physical Source Lines of Code (SLOC) = 327 Hits@level = [0] 0 [1] 0 [2] 1 [3] 2 [4] 0 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 3 [3+] 2 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 9.17431 [1+] 9.17431 [2+] 9.17431 [3+] 6.11621 [4+] 0 [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.