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/libmediawiki-dumpfile-perl-0.2.2/speed_test/bin/expat.c Examining data/libmediawiki-dumpfile-perl-0.2.2/speed_test/bin/iksemel.c Examining data/libmediawiki-dumpfile-perl-0.2.2/speed_test/bin/libxml.c FINAL RESULTS: data/libmediawiki-dumpfile-perl-0.2.2/speed_test/bin/expat.c:92:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(copy, newstring, len); data/libmediawiki-dumpfile-perl-0.2.2/speed_test/bin/expat.c:118:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, cur->data, cur->len); data/libmediawiki-dumpfile-perl-0.2.2/speed_test/bin/iksemel.c:96:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(copy, newstring, len); data/libmediawiki-dumpfile-perl-0.2.2/speed_test/bin/iksemel.c:122:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, cur->data, cur->len); data/libmediawiki-dumpfile-perl-0.2.2/speed_test/bin/libxml.c:93:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(copy, newstring, len); data/libmediawiki-dumpfile-perl-0.2.2/speed_test/bin/libxml.c:119:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, cur->data, cur->len); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 753 in approximately 0.05 seconds (16678 lines/second) Physical Source Lines of Code (SLOC) = 508 Hits@level = [0] 20 [1] 5 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 26 [1+] 6 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 51.1811 [1+] 11.811 [2+] 1.9685 [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.