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/libpcl1-1.12/include/pcl_private.h Examining data/libpcl1-1.12/include/pcl_config.h Examining data/libpcl1-1.12/include/pcl.h Examining data/libpcl1-1.12/test/cothread.c Examining data/libpcl1-1.12/test/cobench.c Examining data/libpcl1-1.12/winconfig.h Examining data/libpcl1-1.12/pcl/pcl.c Examining data/libpcl1-1.12/pcl/pcl_version.c Examining data/libpcl1-1.12/pcl/pcl_private.c FINAL RESULTS: data/libpcl1-1.12/include/pcl_private.h:66:2: [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 stk[CO_MIN_SIZE]; data/libpcl1-1.12/pcl/pcl.c:287:2: [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(&ctx_creating_sigs, &osigs, sizeof(sigset_t)); data/libpcl1-1.12/test/cobench.c:125: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). nthreads = atoi(argv[i]); data/libpcl1-1.12/test/cothread.c:299:2: [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[256]; data/libpcl1-1.12/test/cothread.c:353: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). nthreads = atoi(argv[i]); data/libpcl1-1.12/test/cothread.c:305:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((n = read(in, buf, sizeof(buf))) <= 0) ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1455 in approximately 0.06 seconds (25288 lines/second) Physical Source Lines of Code (SLOC) = 875 Hits@level = [0] 16 [1] 1 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 22 [1+] 6 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 25.1429 [1+] 6.85714 [2+] 5.71429 [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.