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/hmisc-4.4-2/src/ranksort.c Examining data/hmisc-4.4-2/src/nstr.c Examining data/hmisc-4.4-2/src/init.c Examining data/hmisc-4.4-2/src/Hmisc.c Examining data/hmisc-4.4-2/src/Hmisc.h Examining data/hmisc-4.4-2/src/string_box.c Examining data/hmisc-4.4-2/src/mChoice.c FINAL RESULTS: data/hmisc-4.4-2/src/nstr.c:49:13: [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(buf, seg); data/hmisc-4.4-2/src/mChoice.c:41:9: [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). if(strlen(begin) == 0) data/hmisc-4.4-2/src/mChoice.c:100:18: [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). slen = strlen(str) + 1; data/hmisc-4.4-2/src/mChoice.c:103:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str_ptr, str, slen); data/hmisc-4.4-2/src/mChoice.c:169:16: [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). slen = strlen(str) + 1; data/hmisc-4.4-2/src/mChoice.c:182:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str_ptr, str, slen); data/hmisc-4.4-2/src/nstr.c:44:20: [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). seg_len = strlen(seg); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 553 in approximately 0.09 seconds (6030 lines/second) Physical Source Lines of Code (SLOC) = 411 Hits@level = [0] 0 [1] 6 [2] 0 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 7 [1+] 7 [2+] 1 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 17.0316 [1+] 17.0316 [2+] 2.43309 [3+] 2.43309 [4+] 2.43309 [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.