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/libhtml-strip-perl-2.10/strip_html.c Examining data/libhtml-strip-perl-2.10/strip_html.h FINAL RESULTS: data/libhtml-strip-perl-2.10/strip_html.c:84:19: [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( stripper->striptag, stripper->tagname ); data/libhtml-strip-perl-2.10/strip_html.c:256:5: [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(stripper->o_striptags[stripper->numstriptags++], striptag); data/libhtml-strip-perl-2.10/strip_html.h:9:3: [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 tagname[MAX_TAGNAMELENGTH]; data/libhtml-strip-perl-2.10/strip_html.h:24:3: [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 striptag[MAX_TAGNAMELENGTH]; data/libhtml-strip-perl-2.10/strip_html.h:25:3: [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 o_striptags[MAX_STRIPTAGS][MAX_TAGNAMELENGTH]; data/libhtml-strip-perl-2.10/strip_html.c:14:26: [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). char * raw_end = raw + strlen(raw); data/libhtml-strip-perl-2.10/strip_html.c:164:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p_output, p_raw, width); data/libhtml-strip-perl-2.10/strip_html.c:249:3: [1] (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). Risk is low because the source is a constant character. strcpy(stripper->o_striptags[0], ""); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 328 in approximately 0.04 seconds (8262 lines/second) Physical Source Lines of Code (SLOC) = 251 Hits@level = [0] 7 [1] 3 [2] 3 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 15 [1+] 8 [2+] 5 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 59.761 [1+] 31.8725 [2+] 19.9203 [3+] 7.96813 [4+] 7.96813 [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.