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-sha3-perl-1.04/src/sdf.c Examining data/libdigest-sha3-perl-1.04/src/sha3.c Examining data/libdigest-sha3-perl-1.04/src/sha3.h FINAL RESULTS: data/libdigest-sha3-perl-1.04/src/sha3.c:394: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-sha3-perl-1.04/src/sha3.c:397: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-sha3-perl-1.04/src/sha3.c:386: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-sha3-perl-1.04/src/sha3.h:92: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[SHA3_MAX_BLOCK_BITS/8]; data/libdigest-sha3-perl-1.04/src/sha3.h:95: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[SHA3_MAX_DIGEST_BITS/8]; data/libdigest-sha3-perl-1.04/src/sha3.h:97: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[SHA3_MAX_HEX_LEN+1]; data/libdigest-sha3-perl-1.04/src/sha3.h:98: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[SHA3_MAX_BASE64_LEN+1]; data/libdigest-sha3-perl-1.04/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 = 8 Lines analyzed = 602 in approximately 0.07 seconds (9198 lines/second) Physical Source Lines of Code (SLOC) = 489 Hits@level = [0] 0 [1] 1 [2] 5 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 7 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 16.3599 [1+] 16.3599 [2+] 14.3149 [3+] 4.08998 [4+] 4.08998 [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.