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/mini18n-0.2.1/src/mini18n_pv_file_yts.c
Examining data/mini18n-0.2.1/src/mini18n_pv_list.h
Examining data/mini18n-0.2.1/src/mini18n_pv_list.c
Examining data/mini18n-0.2.1/src/mini18n_pv_hash.h
Examining data/mini18n-0.2.1/src/mini18n_pv_file.h
Examining data/mini18n-0.2.1/src/mini18n_pv_data.c
Examining data/mini18n-0.2.1/src/mini18n-multi.h
Examining data/mini18n-0.2.1/src/mini18n_pv_conv_windows.h
Examining data/mini18n-0.2.1/src/mini18n_pv_file_po.c
Examining data/mini18n-0.2.1/src/mini18n-multi.c
Examining data/mini18n-0.2.1/src/mini18n_pv_conv_windows.c
Examining data/mini18n-0.2.1/src/mini18n_pv_conv.h
Examining data/mini18n-0.2.1/src/mini18n_pv_file_yts.h
Examining data/mini18n-0.2.1/src/mini18n.h
Examining data/mini18n-0.2.1/src/mini18n_pv_data.h
Examining data/mini18n-0.2.1/src/mini18n.c
Examining data/mini18n-0.2.1/src/mini18n_pv_file_po.h
Examining data/mini18n-0.2.1/src/mini18n_pv_hash.c
Examining data/mini18n-0.2.1/cmake/check_wcs_functions.c
Examining data/mini18n-0.2.1/example/main.c
Examining data/mini18n-0.2.1/example/multi.c

FINAL RESULTS:

data/mini18n-0.2.1/src/mini18n-multi.c:140:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			pos += sprintf(pos, "%s", folder);
data/mini18n-0.2.1/src/mini18n-multi.c:142:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(pos, "%s.yts", lang_s);
data/mini18n-0.2.1/src/mini18n-multi.c:151:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				pos += sprintf(pos, "%s", folder);
data/mini18n-0.2.1/src/mini18n-multi.c:153:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(pos, "%s.yts", country);
data/mini18n-0.2.1/src/mini18n-multi.c:92:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	tmp = getenv("LANG");
data/mini18n-0.2.1/src/mini18n-multi.c:63: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 buffer[11];
data/mini18n-0.2.1/src/mini18n-multi.c:141:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			if (! trailing) pos += sprintf(pos, "%c", pathsep);
data/mini18n-0.2.1/src/mini18n-multi.c:152:28:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				if (! trailing) pos += sprintf(pos, "%c", pathsep);
data/mini18n-0.2.1/src/mini18n-multi.c:189:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	impl->log = fopen(filename, "a");
data/mini18n-0.2.1/src/mini18n_pv_conv_windows.c:26:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	int needed = MultiByteToWideChar(CP_UTF8, 0, source, -1, NULL, 0);
data/mini18n-0.2.1/src/mini18n_pv_conv_windows.c:28:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_UTF8, 0, source, -1, utf16, needed);
data/mini18n-0.2.1/src/mini18n_pv_file_po.c:24: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 buffer[1024];
data/mini18n-0.2.1/src/mini18n_pv_file_po.c:25: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 key[1024];
data/mini18n-0.2.1/src/mini18n_pv_file_po.c:26: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 value[1024];
data/mini18n-0.2.1/src/mini18n_pv_file_yts.c:24: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 buffer[1024];
data/mini18n-0.2.1/src/mini18n_pv_file_yts.c:25: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 key[1024];
data/mini18n-0.2.1/src/mini18n_pv_file_yts.c:26: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 value[1024];
data/mini18n-0.2.1/src/mini18n_pv_hash.c:111:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(filename, "r");
data/mini18n-0.2.1/cmake/check_wcs_functions.c:15:21:  [1] (buffer) wcslen:
  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).
	(mini18n_len_func) wcslen,
data/mini18n-0.2.1/src/mini18n-multi.c:127:14:  [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).
		size_t n = strlen(folder);
data/mini18n-0.2.1/src/mini18n-multi.c:136:12:  [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).
			s = n + strlen(lang_s) + 5 + (1 - trailing);
data/mini18n-0.2.1/src/mini18n-multi.c:147:13:  [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).
				s = n + strlen(country) + 5 + (1 - trailing);
data/mini18n-0.2.1/src/mini18n-multi.c:210: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).
		unsigned int n = strlen(source);
data/mini18n-0.2.1/src/mini18n_pv_data.c:33:18:  [1] (buffer) wcslen:
  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).
    size_t len = wcslen(string) + 1;
data/mini18n-0.2.1/src/mini18n_pv_data.c:42:12:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    return wcsncpy(rv, string, len);
data/mini18n-0.2.1/src/mini18n_pv_data.c:48:21:  [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).
	(mini18n_len_func) strlen,
data/mini18n-0.2.1/src/mini18n_pv_data.c:56:9:  [1] (buffer) wcslen:
  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).
	return wcslen(s);
data/mini18n-0.2.1/src/mini18n_pv_data.c:69:21:  [1] (buffer) wcslen:
  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).
	(mini18n_len_func) wcslen,

ANALYSIS SUMMARY:

Hits = 28
Lines analyzed = 1355 in approximately 0.07 seconds (20709 lines/second)
Physical Source Lines of Code (SLOC) = 729
Hits@level = [0]   9 [1]  10 [2]  13 [3]   1 [4]   4 [5]   0
Hits@level+ = [0+]  37 [1+]  28 [2+]  18 [3+]   5 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 50.7545 [1+] 38.4088 [2+] 24.6914 [3+] 6.85871 [4+] 5.48697 [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.