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/autocutsel-0.10.0/common.c Examining data/autocutsel-0.10.0/cutsel.c Examining data/autocutsel-0.10.0/common.h Examining data/autocutsel-0.10.0/autocutsel.c FINAL RESULTS: data/autocutsel-0.10.0/autocutsel.c:142: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(options.value, value, options.length); data/autocutsel-0.10.0/autocutsel.c:370:3: [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 *names[6] = { data/autocutsel-0.10.0/autocutsel.c:383:135: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). XChangeProperty(dpy, XtWindow(top), atoms[_NET_WM_NAME], atoms[UTF8_STRING], 8, PropModeReplace, (const unsigned char*)window_name, strlen(window_name)); data/autocutsel-0.10.0/autocutsel.c:384:125: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). XChangeProperty(dpy, XtWindow(top), atoms[WM_NAME], atoms[STRING], 8, PropModeReplace, (const unsigned char*)window_name, strlen(window_name)); data/autocutsel-0.10.0/cutsel.c:217:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(argv[2]), data/autocutsel-0.10.0/cutsel.c:229:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). options.length = strlen(argv[2]); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 886 in approximately 0.04 seconds (22077 lines/second) Physical Source Lines of Code (SLOC) = 649 Hits@level = [0] 52 [1] 4 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 58 [1+] 6 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 89.3683 [1+] 9.24499 [2+] 3.08166 [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.