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/libtabixpp-1.1.0/main.cpp Examining data/libtabixpp-1.1.0/tabix.cpp Examining data/libtabixpp-1.1.0/tabix.hpp FINAL RESULTS: data/libtabixpp-1.1.0/tabix.cpp:14:12: [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). strcat(strcpy(fnidx, cfilename), ".tbi"); data/libtabixpp-1.1.0/tabix.cpp:14:5: [2] (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). Risk is low because the source is a constant string. strcat(strcpy(fnidx, cfilename), ".tbi"); data/libtabixpp-1.1.0/tabix.cpp:13:34: [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 *fnidx = (char*) calloc(strlen(cfilename) + 5, 1); ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 233 in approximately 0.01 seconds (16332 lines/second) Physical Source Lines of Code (SLOC) = 194 Hits@level = [0] 0 [1] 1 [2] 1 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 2 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 15.4639 [1+] 15.4639 [2+] 10.3093 [3+] 5.15464 [4+] 5.15464 [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.