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/asterisk-flite-3.0/app_flite.c

FINAL RESULTS:

data/asterisk-flite-3.0/app_flite.c:130: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 cachefile[MAXLEN];
data/asterisk-flite-3.0/app_flite.c:131: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 tmp_name[18] = "/tmp/flite_XXXXXX";
data/asterisk-flite-3.0/app_flite.c:132: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 raw_tmp_name[24];
data/asterisk-flite-3.0/app_flite.c:162: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 MD5_name[33];
data/asterisk-flite-3.0/app_flite.c:188:16:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((raw_fd = mkstemp(tmp_name)) == -1) {
data/asterisk-flite-3.0/app_flite.c:164:7:  [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(cachedir) + strlen(MD5_name) + 6 <= MAXLEN) {
data/asterisk-flite-3.0/app_flite.c:164:26:  [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(cachedir) + strlen(MD5_name) + 6 <= MAXLEN) {

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 291 in approximately 0.03 seconds (11572 lines/second)
Physical Source Lines of Code (SLOC) = 218
Hits@level = [0]   2 [1]   2 [2]   5 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   9 [1+]   7 [2+]   5 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 41.2844 [1+] 32.1101 [2+] 22.9358 [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.