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/libfile-fcntllock-perl-0.22/Pure_build/builder.c FINAL RESULTS: data/libfile-fcntllock-perl-0.22/Pure_build/builder.c:69: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 packstr[ 128 ] = ""; data/libfile-fcntllock-perl-0.22/Pure_build/builder.c:106:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( packstr + strlen( packstr ), "x%lu", data/libfile-fcntllock-perl-0.22/Pure_build/builder.c:145:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( packstr + strlen( packstr ), "x%lu", data/libfile-fcntllock-perl-0.22/Pure_build/builder.c:106:23: [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). sprintf( packstr + strlen( packstr ), "x%lu", data/libfile-fcntllock-perl-0.22/Pure_build/builder.c:113:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat( packstr, "c" ); data/libfile-fcntllock-perl-0.22/Pure_build/builder.c:117:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat( packstr, "s" ); data/libfile-fcntllock-perl-0.22/Pure_build/builder.c:121:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat( packstr, "l" ); data/libfile-fcntllock-perl-0.22/Pure_build/builder.c:134:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat( packstr, "q" ); data/libfile-fcntllock-perl-0.22/Pure_build/builder.c:145: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). sprintf( packstr + strlen( packstr ), "x%lu", ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 183 in approximately 0.02 seconds (8975 lines/second) Physical Source Lines of Code (SLOC) = 116 Hits@level = [0] 5 [1] 6 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 14 [1+] 9 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 120.69 [1+] 77.5862 [2+] 25.8621 [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.