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/uapevent-1.4/uapevent.c Examining data/uapevent-1.4/uapevent.h FINAL RESULTS: data/uapevent-1.4/uapevent.c:758:19: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt_long(argc, argv, "hvt", long_opts, NULL)) > 0) { data/uapevent-1.4/uapevent.c:282: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(&frmctl, &mgmt_tlv->FrameControl, sizeof(u16)); data/uapevent-1.4/uapevent.c:668: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(buffer, NLMSG_DATA(nlh), count - NLMSG_HDRLEN); ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 1407 in approximately 0.05 seconds (28946 lines/second) Physical Source Lines of Code (SLOC) = 935 Hits@level = [0] 142 [1] 0 [2] 2 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 145 [1+] 3 [2+] 3 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 155.08 [1+] 3.20856 [2+] 3.20856 [3+] 1.06952 [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.