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/gtk3-nocsd-3/gtk3-nocsd.c Examining data/gtk3-nocsd-3/test-dummylib.c Examining data/gtk3-nocsd-3/test-now.c Examining data/gtk3-nocsd-3/test-static-tls.c FINAL RESULTS: data/gtk3-nocsd-3/gtk3-nocsd.c:82:14: [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. static const char *library_sonames[NUM_LIBRARIES] = { data/gtk3-nocsd-3/gtk3-nocsd.c:90:14: [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. static const char *library_sonames_v2[NUM_LIBRARIES] = { data/gtk3-nocsd-3/gtk3-nocsd.c:712: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 new_layout[256]; data/gtk3-nocsd-3/gtk3-nocsd.c:1308:47: [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. ptr_in_priv = (const gchar **) &((char *)header_bar_priv)[offset]; data/gtk3-nocsd-3/gtk3-nocsd.c:609:9: [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). if (strlen (old_layout) > 255) ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 1497 in approximately 0.10 seconds (15168 lines/second) Physical Source Lines of Code (SLOC) = 1058 Hits@level = [0] 6 [1] 1 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 11 [1+] 5 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 10.397 [1+] 4.7259 [2+] 3.78072 [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.