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/libspiro-20200505/spiro.h Examining data/libspiro-20200505/bezctx.h Examining data/libspiro-20200505/spiro.c Examining data/libspiro-20200505/bezctx.c Examining data/libspiro-20200505/bezctx_intf.h Examining data/libspiro-20200505/tests/call-test0.c Examining data/libspiro-20200505/tests/call-test4.c Examining data/libspiro-20200505/tests/call-test3.c Examining data/libspiro-20200505/tests/call-test19.c Examining data/libspiro-20200505/tests/call-test7.c Examining data/libspiro-20200505/tests/call-test5.c Examining data/libspiro-20200505/tests/unit-test.c Examining data/libspiro-20200505/tests/call-test.c Examining data/libspiro-20200505/tests/call-test12.c Examining data/libspiro-20200505/tests/call-test16.c Examining data/libspiro-20200505/tests/call-test1.c Examining data/libspiro-20200505/tests/call-test15.c Examining data/libspiro-20200505/tests/call-test20.c Examining data/libspiro-20200505/tests/call-test11.c Examining data/libspiro-20200505/tests/call-test18.c Examining data/libspiro-20200505/tests/call-test14.c Examining data/libspiro-20200505/tests/call-test17.c Examining data/libspiro-20200505/tests/call-test2.c Examining data/libspiro-20200505/tests/call-test13.c Examining data/libspiro-20200505/tests/call-testm.c Examining data/libspiro-20200505/tests/call-test10.c Examining data/libspiro-20200505/tests/call-test6.c Examining data/libspiro-20200505/tests/call-test8.c Examining data/libspiro-20200505/tests/call-test9.c Examining data/libspiro-20200505/spiroentrypoints.h Examining data/libspiro-20200505/spiroentrypoints.c FINAL RESULTS: data/libspiro-20200505/spiro.c:886: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(m + nmat, m, l); data/libspiro-20200505/spiro.c:887: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(m + 2 * nmat, m, l); data/libspiro-20200505/spiro.c:889: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(v + nmat, v, l); data/libspiro-20200505/spiro.c:890: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(v + 2 * nmat, v, l); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 3204 in approximately 0.14 seconds (23718 lines/second) Physical Source Lines of Code (SLOC) = 2661 Hits@level = [0] 111 [1] 0 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 115 [1+] 4 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 43.2168 [1+] 1.50319 [2+] 1.50319 [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.