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-eipack-0.2-1/src/rbycei.c Examining data/r-cran-eipack-0.2-1/src/init.c Examining data/r-cran-eipack-0.2-1/src/eiutil.h Examining data/r-cran-eipack-0.2-1/src/rbyceicov2.c Examining data/r-cran-eipack-0.2-1/src/rbycei2.c Examining data/r-cran-eipack-0.2-1/src/rbyceicov4.c Examining data/r-cran-eipack-0.2-1/src/eiutil.c FINAL RESULTS: data/r-cran-eipack-0.2-1/src/eiutil.c:132:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "echo \"%.16f\" | gzip >> %s", REAL(betaarray)[ii], CHAR(STRING_ELT(filenames,ii))); data/r-cran-eipack-0.2-1/src/eiutil.c:133:9: [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. ret=system(tmp); data/r-cran-eipack-0.2-1/src/eiutil.c:131:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[500]; ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 1720 in approximately 0.08 seconds (22859 lines/second) Physical Source Lines of Code (SLOC) = 1155 Hits@level = [0] 0 [1] 0 [2] 1 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 3 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 2.5974 [1+] 2.5974 [2+] 2.5974 [3+] 1.7316 [4+] 1.7316 [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.