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/mate-polkit-1.24.0/src/main.c Examining data/mate-polkit-1.24.0/src/polkitmateauthenticationdialog.c Examining data/mate-polkit-1.24.0/src/polkitmateauthenticationdialog.h Examining data/mate-polkit-1.24.0/src/polkitmateauthenticator.c Examining data/mate-polkit-1.24.0/src/polkitmateauthenticator.h Examining data/mate-polkit-1.24.0/src/polkitmatelistener.c Examining data/mate-polkit-1.24.0/src/polkitmatelistener.h FINAL RESULTS: data/mate-polkit-1.24.0/src/polkitmateauthenticationdialog.c:302:28: [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 (gecos != NULL && strlen (gecos) > 0) data/mate-polkit-1.24.0/src/polkitmateauthenticationdialog.c:309:28: [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 (gecos != NULL && strlen (gecos) > 0 && strcmp (gecos, dialog->priv->users[n]) != 0) data/mate-polkit-1.24.0/src/polkitmateauthenticationdialog.c:394:42: [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 (dialog->priv->icon_name == NULL || strlen (dialog->priv->icon_name) == 0) ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 2637 in approximately 0.07 seconds (36001 lines/second) Physical Source Lines of Code (SLOC) = 1931 Hits@level = [0] 0 [1] 3 [2] 0 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 1.5536 [1+] 1.5536 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Dot directories skipped = 3 (--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.