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/libpam-ufpidentity-1.0/check_user.c Examining data/libpam-ufpidentity-1.0/pam_ufpidentity.c FINAL RESULTS: data/libpam-ufpidentity-1.0/pam_ufpidentity.c:96:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ip , inet_ntoa(*addr_list[i]) ); data/libpam-ufpidentity-1.0/pam_ufpidentity.c:204:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s (%s):", display_item->display_name, display_item->nickname); data/libpam-ufpidentity-1.0/pam_ufpidentity.c:52: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 logname[80]; data/libpam-ufpidentity-1.0/pam_ufpidentity.c:107:9: [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 ip[100]; data/libpam-ufpidentity-1.0/pam_ufpidentity.c:201:18: [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). int length = strlen(display_item->display_name) + strlen(display_item->nickname) + 5; // a space, two parens, colon and terminating null data/libpam-ufpidentity-1.0/pam_ufpidentity.c:201:55: [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). int length = strlen(display_item->display_name) + strlen(display_item->nickname) + 5; // a space, two parens, colon and terminating null ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 272 in approximately 0.03 seconds (8684 lines/second) Physical Source Lines of Code (SLOC) = 216 Hits@level = [0] 5 [1] 2 [2] 2 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 11 [1+] 6 [2+] 4 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 50.9259 [1+] 27.7778 [2+] 18.5185 [3+] 9.25926 [4+] 9.25926 [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.