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/libapache2-mod-watchcat-1.1.2/mod_watchcat.c FINAL RESULTS: data/libapache2-mod-watchcat-1.1.2/mod_watchcat.c:358:16: [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). assert(strcat); data/libapache2-mod-watchcat-1.1.2/mod_watchcat.c:359:47: [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). apr_table_set(real_r->notes, FD_UUID, strcat); data/libapache2-mod-watchcat-1.1.2/mod_watchcat.c:379:17: [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). const char *strcat; data/libapache2-mod-watchcat-1.1.2/mod_watchcat.c:385:9: [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). if (strcat && cat_close(atoi(strcat)) == -1) data/libapache2-mod-watchcat-1.1.2/mod_watchcat.c:385:34: [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). if (strcat && cat_close(atoi(strcat)) == -1) data/libapache2-mod-watchcat-1.1.2/mod_watchcat.c:388:23: [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, errno, strerror(errno)); data/libapache2-mod-watchcat-1.1.2/mod_watchcat.c:208:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). timeout = atoi(word2); data/libapache2-mod-watchcat-1.1.2/mod_watchcat.c:385:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (strcat && cat_close(atoi(strcat)) == -1) data/libapache2-mod-watchcat-1.1.2/mod_watchcat.c:254:12: [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). assert(strlen(path) < CAT_DEVICE_SIZE); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 442 in approximately 0.03 seconds (16621 lines/second) Physical Source Lines of Code (SLOC) = 335 Hits@level = [0] 0 [1] 1 [2] 2 [3] 0 [4] 6 [5] 0 Hits@level+ = [0+] 9 [1+] 9 [2+] 8 [3+] 6 [4+] 6 [5+] 0 Hits/KSLOC@level+ = [0+] 26.8657 [1+] 26.8657 [2+] 23.8806 [3+] 17.9104 [4+] 17.9104 [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.