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/tinyarray-1.2.3/src/arithmetic.cc Examining data/tinyarray-1.2.3/src/array.cc Examining data/tinyarray-1.2.3/src/functions.cc FINAL RESULTS: data/tinyarray-1.2.3/src/array.cc:45:9: [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 c[4]; data/tinyarray-1.2.3/src/array.cc:1062:9: [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. if (equal) { data/tinyarray-1.2.3/src/array.cc:1065:18: [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. result = equal ? Py_True : Py_False; data/tinyarray-1.2.3/src/array.cc:1111:14: [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. result = equal ? Py_True : Py_False; data/tinyarray-1.2.3/src/array.cc:1116:32: [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. result = ((op == Py_EQ) == equal) ? Py_True : Py_False; ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 3014 in approximately 0.09 seconds (34364 lines/second) Physical Source Lines of Code (SLOC) = 2439 Hits@level = [0] 0 [1] 4 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.05002 [1+] 2.05002 [2+] 0.410004 [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.