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/tmispell-voikko-0.7.1/src/ui/pipeui.cc
Examining data/tmispell-voikko-0.7.1/src/ui/listui.cc
Examining data/tmispell-voikko-0.7.1/src/ui/cursesui.cc
Examining data/tmispell-voikko-0.7.1/src/tmerror.cc
Examining data/tmispell-voikko-0.7.1/src/common.cc
Examining data/tmispell-voikko-0.7.1/src/i18n.cc
Examining data/tmispell-voikko-0.7.1/src/config_file.cc
Examining data/tmispell-voikko-0.7.1/src/personal_dictionary.cc
Examining data/tmispell-voikko-0.7.1/src/filter.cc
Examining data/tmispell-voikko-0.7.1/src/regexp.cc
Examining data/tmispell-voikko-0.7.1/src/tmispell.cc
Examining data/tmispell-voikko-0.7.1/src/spell.cc
Examining data/tmispell-voikko-0.7.1/src/charset.cc
Examining data/tmispell-voikko-0.7.1/src/options.cc
Examining data/tmispell-voikko-0.7.1/enchant/voikko_provider.cc

FINAL RESULTS:

data/tmispell-voikko-0.7.1/src/common.cc:68:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buf, 4096, fmt, va);
data/tmispell-voikko-0.7.1/src/tmerror.cc:29:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, 4096, fmt, va);
data/tmispell-voikko-0.7.1/src/tmispell.cc:279:2:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execv(ispell.c_str(), 
data/tmispell-voikko-0.7.1/src/options.cc:47:24:  [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.
	char const* homedir = getenv("HOME");
data/tmispell-voikko-0.7.1/src/options.cc:337: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.
			if (getenv("INCLUDE_STRING")) {
data/tmispell-voikko-0.7.1/src/options.cc:338:27:  [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.
				pipe_include_command_=getenv("INCLUDE_STRING");
data/tmispell-voikko-0.7.1/src/common.cc:65: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[4096];
data/tmispell-voikko-0.7.1/src/config_file.cc:202: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 buf[1024];
data/tmispell-voikko-0.7.1/src/regexp.cc:30: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[length];
data/tmispell-voikko-0.7.1/src/tmerror.cc: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 buf[4096];
data/tmispell-voikko-0.7.1/src/ui/cursesui.cc:268:3:  [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[maxlen+1];
data/tmispell-voikko-0.7.1/src/ui/cursesui.cc:420:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		out = tmpfile();
data/tmispell-voikko-0.7.1/src/ui/cursesui.cc:469:3:  [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[1024];
data/tmispell-voikko-0.7.1/src/ui/cursesui.cc:658: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 buf[1024];
data/tmispell-voikko-0.7.1/src/config_file.cc:285:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		(*options)[i.sub(optre, 1)] = read;
data/tmispell-voikko-0.7.1/src/options.cc:227: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).
	int opt_len = strlen(opt);
data/tmispell-voikko-0.7.1/src/options.cc:386:19:  [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).
						      arg + strlen(arg));
data/tmispell-voikko-0.7.1/src/ui/pipeui.cc:106:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	    std::equal(prefix.begin(), prefix.end(), str.begin())) 

ANALYSIS SUMMARY:

Hits = 18
Lines analyzed = 4378 in approximately 0.15 seconds (29658 lines/second)
Physical Source Lines of Code (SLOC) = 2652
Hits@level = [0]   1 [1]   4 [2]   8 [3]   3 [4]   3 [5]   0
Hits@level+ = [0+]  19 [1+]  18 [2+]  14 [3+]   6 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 7.1644 [1+] 6.78733 [2+] 5.27903 [3+] 2.26244 [4+] 1.13122 [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.