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-parser-perl-3.75/hparser.h Examining data/libhtml-parser-perl-3.75/util.c Examining data/libhtml-parser-perl-3.75/pfunc.h Examining data/libhtml-parser-perl-3.75/tokenpos.h Examining data/libhtml-parser-perl-3.75/hctype.h Examining data/libhtml-parser-perl-3.75/hparser.c FINAL RESULTS: data/libhtml-parser-perl-3.75/hparser.c:753:12: [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 buf[2]; data/libhtml-parser-perl-3.75/hparser.c:1733: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 dummy[1]; data/libhtml-parser-perl-3.75/hparser.c:1740: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 empty[1]; data/libhtml-parser-perl-3.75/util.c:76: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 buf[UTF8_MAXLEN]; data/libhtml-parser-perl-3.75/util.c:80: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 buf[1]; data/libhtml-parser-perl-3.75/hparser.c:192:37: [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). t.end = p_state->pending_end_tag + strlen(p_state->pending_end_tag); data/libhtml-parser-perl-3.75/hparser.c:1765:36: [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). t.end = p_state->literal_mode + strlen(p_state->literal_mode); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 2711 in approximately 0.28 seconds (9687 lines/second) Physical Source Lines of Code (SLOC) = 2283 Hits@level = [0] 11 [1] 2 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 18 [1+] 7 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 7.88436 [1+] 3.06614 [2+] 2.1901 [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.