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/jnr-ffi-2.1.7/libtest/Benchmark.c Examining data/jnr-ffi-2.1.7/libtest/BufferTest.c Examining data/jnr-ffi-2.1.7/libtest/ClosureTest.c Examining data/jnr-ffi-2.1.7/libtest/GlobalVariable.c Examining data/jnr-ffi-2.1.7/libtest/LastErrorTest.c Examining data/jnr-ffi-2.1.7/libtest/NumberTest.c Examining data/jnr-ffi-2.1.7/libtest/PointerTest.c Examining data/jnr-ffi-2.1.7/libtest/ReferenceTest.c Examining data/jnr-ffi-2.1.7/libtest/StringTest.c Examining data/jnr-ffi-2.1.7/libtest/StructTest.c FINAL RESULTS: data/jnr-ffi-2.1.7/libtest/StringTest.c:30:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(s1, s2); data/jnr-ffi-2.1.7/libtest/StringTest.c:39:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ep, src); data/jnr-ffi-2.1.7/libtest/StructTest.c:63:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(t->string, s); data/jnr-ffi-2.1.7/libtest/PointerTest.c:42: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((caddr_t) arg1 + offset, &value, sizeof(value)); \ data/jnr-ffi-2.1.7/libtest/StructTest.c:41: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 string[32]; ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 838 in approximately 0.08 seconds (9879 lines/second) Physical Source Lines of Code (SLOC) = 590 Hits@level = [0] 0 [1] 0 [2] 2 [3] 0 [4] 3 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 5 [3+] 3 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 8.47458 [1+] 8.47458 [2+] 8.47458 [3+] 5.08475 [4+] 5.08475 [5+] 0 Dot directories skipped = 2 (--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.