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/libdigest-sha-perl-6.02/src/sdf.c Examining data/libdigest-sha-perl-6.02/src/sha64bit.c Examining data/libdigest-sha-perl-6.02/src/sha64bit.h Examining data/libdigest-sha-perl-6.02/src/sha.h Examining data/libdigest-sha-perl-6.02/src/sha.c FINAL RESULTS: data/libdigest-sha-perl-6.02/src/sha.c:476:3: [4] (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). strcat(s->base64, out); data/libdigest-sha-perl-6.02/src/sha.c:479:2: [4] (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). strcat(s->base64, out); data/libdigest-sha-perl-6.02/src/sha.c:468: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 out[5]; data/libdigest-sha-perl-6.02/src/sha.h:143:11: [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. unsigned char block[SHA_MAX_BLOCK_BITS/8]; data/libdigest-sha-perl-6.02/src/sha.h:147:11: [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. unsigned char digest[SHA_MAX_DIGEST_BITS/8]; data/libdigest-sha-perl-6.02/src/sha.h:149: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 hex[SHA_MAX_HEX_LEN+1]; data/libdigest-sha-perl-6.02/src/sha.h:150: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 base64[SHA_MAX_BASE64_LEN+1]; data/libdigest-sha-perl-6.02/src/sha.h:157:11: [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. unsigned char key[SHA_MAX_BLOCK_BITS/8]; data/libdigest-sha-perl-6.02/src/sdf.c:96:47: [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). (stash && isa_lookup(stash, name, strlen(name), 0) == &sv_yes) ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 943 in approximately 0.08 seconds (11759 lines/second) Physical Source Lines of Code (SLOC) = 730 Hits@level = [0] 0 [1] 1 [2] 6 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 9 [1+] 9 [2+] 8 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 12.3288 [1+] 12.3288 [2+] 10.9589 [3+] 2.73973 [4+] 2.73973 [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.