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/pidgin-mpris-0.2.3/src/pidgin-mpris.c FINAL RESULTS: data/pidgin-mpris-0.2.3/src/pidgin-mpris.c:97:34: [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). g_return_if_fail(old != NULL && strlen(old) != 0); data/pidgin-mpris-0.2.3/src/pidgin-mpris.c:106:25: [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). tmp2 = g_strndup(tmp1, strlen(tmp1) - strlen(begin) + strlen(MPRIS_START)); data/pidgin-mpris-0.2.3/src/pidgin-mpris.c:106:40: [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). tmp2 = g_strndup(tmp1, strlen(tmp1) - strlen(begin) + strlen(MPRIS_START)); data/pidgin-mpris-0.2.3/src/pidgin-mpris.c:106:56: [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). tmp2 = g_strndup(tmp1, strlen(tmp1) - strlen(begin) + strlen(MPRIS_START)); data/pidgin-mpris-0.2.3/src/pidgin-mpris.c:140:34: [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). g_return_if_fail(old != NULL && strlen(old) != 0); ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 448 in approximately 0.02 seconds (25319 lines/second) Physical Source Lines of Code (SLOC) = 331 Hits@level = [0] 0 [1] 5 [2] 0 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 15.1057 [1+] 15.1057 [2+] 0 [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.