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/libspnav-0.2.3/spnav.h Examining data/libspnav-0.2.3/examples/cube/cube.c Examining data/libspnav-0.2.3/examples/cube/vmath.c Examining data/libspnav-0.2.3/examples/cube/vmath.h Examining data/libspnav-0.2.3/examples/simple/simple.c Examining data/libspnav-0.2.3/spnav_config.h Examining data/libspnav-0.2.3/spnav_magellan.h Examining data/libspnav-0.2.3/spnav_magellan.c Examining data/libspnav-0.2.3/spnav.c FINAL RESULTS: data/libspnav-0.2.3/spnav.c:314:3: [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(event, &node->event, sizeof *event); data/libspnav-0.2.3/spnav.c:554: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/libspnav-0.2.3/spnav.c:95:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(addr.sun_path, SPNAV_SOCK_PATH, sizeof(addr.sun_path)); data/libspnav-0.2.3/spnav.c:321:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rd = read(s, data, sizeof data); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 1351 in approximately 0.04 seconds (31909 lines/second) Physical Source Lines of Code (SLOC) = 896 Hits@level = [0] 13 [1] 2 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 17 [1+] 4 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 18.9732 [1+] 4.46429 [2+] 2.23214 [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.