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/liblocale-hebrew-perl-1.05/bidi.c FINAL RESULTS: data/liblocale-hebrew-perl-1.05/bidi.c:1325:2: [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(s, argv[1]); data/liblocale-hebrew-perl-1.05/bidi.c:1230:5: [2] (buffer) TCHAR: 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. TCHAR pszTypes[MAX_CCH+1]; data/liblocale-hebrew-perl-1.05/bidi.c:1241:5: [2] (buffer) TCHAR: 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. TCHAR pszTypes[MAX_CCH+1]; data/liblocale-hebrew-perl-1.05/bidi.c:1252:5: [2] (buffer) TCHAR: 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. TCHAR pszLevel[MAX_CCH+1]; data/liblocale-hebrew-perl-1.05/bidi.c:1322:2: [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 s[8192]; data/liblocale-hebrew-perl-1.05/bidi.c:1327:14: [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). bidimain(s, strlen(s)); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1329 in approximately 0.07 seconds (19406 lines/second) Physical Source Lines of Code (SLOC) = 660 Hits@level = [0] 10 [1] 1 [2] 4 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 16 [1+] 6 [2+] 5 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 24.2424 [1+] 9.09091 [2+] 7.57576 [3+] 1.51515 [4+] 1.51515 [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.