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-purrrlyr-0.0.6/src/map.h Examining data/r-cran-purrrlyr-0.0.6/src/fast-copy.cpp Examining data/r-cran-purrrlyr-0.0.6/src/rows-data.h Examining data/r-cran-purrrlyr-0.0.6/src/init.c Examining data/r-cran-purrrlyr-0.0.6/src/vector.c Examining data/r-cran-purrrlyr-0.0.6/src/fast-copy.h Examining data/r-cran-purrrlyr-0.0.6/src/utils.h Examining data/r-cran-purrrlyr-0.0.6/src/map.c Examining data/r-cran-purrrlyr-0.0.6/src/rows-formatter.cpp Examining data/r-cran-purrrlyr-0.0.6/src/utils.cpp Examining data/r-cran-purrrlyr-0.0.6/src/vector.h Examining data/r-cran-purrrlyr-0.0.6/src/rows-data.cpp Examining data/r-cran-purrrlyr-0.0.6/src/rows.cpp Examining data/r-cran-purrrlyr-0.0.6/src/rows-formatter.h FINAL RESULTS: data/r-cran-purrrlyr-0.0.6/src/fast-copy.cpp:66:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*) ACCESSOR(to) + offset_to * sizeof(C_TYPE), \ data/r-cran-purrrlyr-0.0.6/src/vector.c:45: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 buf[100]; data/r-cran-purrrlyr-0.0.6/src/vector.c:62:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/r-cran-purrrlyr-0.0.6/src/utils.cpp:132:24: [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. equi_typed *= std::equal(ref.begin(), ref.end(), names.begin()); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 1409 in approximately 0.04 seconds (35790 lines/second) Physical Source Lines of Code (SLOC) = 1109 Hits@level = [0] 2 [1] 1 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 6 [1+] 4 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 5.41028 [1+] 3.60685 [2+] 2.70514 [3+] 0 [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.