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/plf-colony-5.42/plf_colony.h Examining data/plf-colony-5.42/plf_colony_test_suite.cpp Examining data/plf-colony-5.42/debian/tests/simple.cc FINAL RESULTS: data/plf-colony-5.42/plf_colony.h:3010:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(static_cast<void *>(this), &source, sizeof(colony)); data/plf-colony-5.42/plf_colony.h:4098: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 temp[sizeof(colony)]; data/plf-colony-5.42/plf_colony.h:4099:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&temp, static_cast<void *>(this), sizeof(colony)); data/plf-colony-5.42/plf_colony.h:4100:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(static_cast<void *>(this), static_cast<void *>(&source), sizeof(colony)); data/plf-colony-5.42/plf_colony.h:4101:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(static_cast<void *>(&source), &temp, sizeof(colony)); data/plf-colony-5.42/plf_colony_test_suite.cpp:171:3: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1021:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1028:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1075:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1082:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1094:8: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1101:8: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1115:8: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1257:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1264:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/plf-colony-5.42/plf_colony_test_suite.cpp:1865:2: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); ANALYSIS SUMMARY: Hits = 16 Lines analyzed = 6063 in approximately 0.18 seconds (33773 lines/second) Physical Source Lines of Code (SLOC) = 4432 Hits@level = [0] 17 [1] 11 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 33 [1+] 16 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 7.44585 [1+] 3.61011 [2+] 1.12816 [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.