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/festival-2.5.0/src/include/Phone.h
Examining data/festival-2.5.0/src/include/intonation.h
Examining data/festival-2.5.0/src/include/lexicon.h
Examining data/festival-2.5.0/src/include/text.h
Examining data/festival-2.5.0/src/include/fngram.h
Examining data/festival-2.5.0/src/include/modules.h
Examining data/festival-2.5.0/src/include/ModuleDescription.h
Examining data/festival-2.5.0/src/include/module_support.h
Examining data/festival-2.5.0/src/include/festival.h
Examining data/festival-2.5.0/src/arch/festival/Phone.cc
Examining data/festival-2.5.0/src/arch/festival/utterance.cc
Examining data/festival-2.5.0/src/arch/festival/features.cc
Examining data/festival-2.5.0/src/arch/festival/wagon_interp.cc
Examining data/festival-2.5.0/src/arch/festival/linreg.cc
Examining data/festival-2.5.0/src/arch/festival/server.cc
Examining data/festival-2.5.0/src/arch/festival/client.cc
Examining data/festival-2.5.0/src/arch/festival/web.cc
Examining data/festival-2.5.0/src/arch/festival/tcl.cc
Examining data/festival-2.5.0/src/arch/festival/wfst.cc
Examining data/festival-2.5.0/src/arch/festival/ngram.cc
Examining data/festival-2.5.0/src/arch/festival/viterbi.cc
Examining data/festival-2.5.0/src/arch/festival/ModuleDescription.cc
Examining data/festival-2.5.0/src/arch/festival/festivalP.h
Examining data/festival-2.5.0/src/arch/festival/wave.cc
Examining data/festival-2.5.0/src/arch/festival/audspio.cc
Examining data/festival-2.5.0/src/arch/festival/festival.cc
Examining data/festival-2.5.0/src/modules/Lexicon/lex_aux.cc
Examining data/festival-2.5.0/src/modules/Lexicon/lexicon.cc
Examining data/festival-2.5.0/src/modules/Lexicon/lts.cc
Examining data/festival-2.5.0/src/modules/Lexicon/lts_rules.cc
Examining data/festival-2.5.0/src/modules/Lexicon/complex.cc
Examining data/festival-2.5.0/src/modules/Lexicon/lex_ff.cc
Examining data/festival-2.5.0/src/modules/Lexicon/lts.h
Examining data/festival-2.5.0/src/modules/Lexicon/lexiconP.h
Examining data/festival-2.5.0/src/modules/base/modules.cc
Examining data/festival-2.5.0/src/modules/base/module_support.cc
Examining data/festival-2.5.0/src/modules/base/parameters.cc
Examining data/festival-2.5.0/src/modules/base/ff.cc
Examining data/festival-2.5.0/src/modules/base/pos.cc
Examining data/festival-2.5.0/src/modules/base/phrasify.cc
Examining data/festival-2.5.0/src/modules/base/word.cc
Examining data/festival-2.5.0/src/modules/base/postlex.cc
Examining data/festival-2.5.0/src/modules/base/phrinfo.cc
Examining data/festival-2.5.0/src/modules/Duration/dur_aux.cc
Examining data/festival-2.5.0/src/modules/Duration/duration.cc
Examining data/festival-2.5.0/src/modules/Duration/Klatt.cc
Examining data/festival-2.5.0/src/modules/Duration/durationP.h
Examining data/festival-2.5.0/src/modules/Intonation/int_aux.cc
Examining data/festival-2.5.0/src/modules/Intonation/duffint.cc
Examining data/festival-2.5.0/src/modules/Intonation/simple.cc
Examining data/festival-2.5.0/src/modules/Intonation/gen_int.cc
Examining data/festival-2.5.0/src/modules/Intonation/int_tree.cc
Examining data/festival-2.5.0/src/modules/Text/text_aux.cc
Examining data/festival-2.5.0/src/modules/Text/token.cc
Examining data/festival-2.5.0/src/modules/Text/text.cc
Examining data/festival-2.5.0/src/modules/Text/tok_ext.cc
Examining data/festival-2.5.0/src/modules/Text/token_pos.cc
Examining data/festival-2.5.0/src/modules/Text/xxml.cc
Examining data/festival-2.5.0/src/modules/Text/text_modes.cc
Examining data/festival-2.5.0/src/modules/Text/tokenP.h
Examining data/festival-2.5.0/src/modules/UniSyn/UniSyn.cc
Examining data/festival-2.5.0/src/modules/UniSyn/us_prosody.cc
Examining data/festival-2.5.0/src/modules/UniSyn/us_unit.cc
Examining data/festival-2.5.0/src/modules/UniSyn/ps_synthesis.cc
Examining data/festival-2.5.0/src/modules/UniSyn/us_mapping.cc
Examining data/festival-2.5.0/src/modules/UniSyn/us_features.cc
Examining data/festival-2.5.0/src/modules/UniSyn/UniSyn.h
Examining data/festival-2.5.0/src/modules/UniSyn/us_features.h
Examining data/festival-2.5.0/src/modules/UniSyn/us_synthesis.h
Examining data/festival-2.5.0/src/modules/donovan/makewav.c
Examining data/festival-2.5.0/src/modules/donovan/load_diphs.c
Examining data/festival-2.5.0/src/modules/donovan/coeffs.c
Examining data/festival-2.5.0/src/modules/donovan/excitation.c
Examining data/festival-2.5.0/src/modules/donovan/pitch.c
Examining data/festival-2.5.0/src/modules/donovan/durations.c
Examining data/festival-2.5.0/src/modules/donovan/donovan.cc
Examining data/festival-2.5.0/src/modules/donovan/donovan.h
Examining data/festival-2.5.0/src/modules/donovan/t2s.h
Examining data/festival-2.5.0/src/modules/parser/pparser.cc
Examining data/festival-2.5.0/src/modules/parser/parser.h
Examining data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_unit.cc
Examining data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_index.cc
Examining data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone.h
Examining data/festival-2.5.0/src/modules/UniSyn_diphone/UniSyn_diphone.cc
Examining data/festival-2.5.0/src/modules/diphone/di_reslpc.cc
Examining data/festival-2.5.0/src/modules/diphone/di_psola.cc
Examining data/festival-2.5.0/src/modules/diphone/di_select.cc
Examining data/festival-2.5.0/src/modules/diphone/di_pitch.cc
Examining data/festival-2.5.0/src/modules/diphone/oc.cc
Examining data/festival-2.5.0/src/modules/diphone/diphone.cc
Examining data/festival-2.5.0/src/modules/diphone/diphone.h
Examining data/festival-2.5.0/src/modules/diphone/di_io.cc
Examining data/festival-2.5.0/src/modules/clunits/acost.cc
Examining data/festival-2.5.0/src/modules/clunits/clunits.cc
Examining data/festival-2.5.0/src/modules/clunits/cldb.cc
Examining data/festival-2.5.0/src/modules/clunits/cljoin.cc
Examining data/festival-2.5.0/src/modules/clunits/clunits.h
Examining data/festival-2.5.0/src/modules/clustergen/clustergen.cc
Examining data/festival-2.5.0/src/modules/clustergen/mlsa_resynthesis.cc
Examining data/festival-2.5.0/src/modules/clustergen/vc.cc
Examining data/festival-2.5.0/src/modules/clustergen/simple_mlpg.cc
Examining data/festival-2.5.0/src/modules/clustergen/HTS_vocoder_me.cc
Examining data/festival-2.5.0/src/modules/clustergen/mlsa_resynthesis.h
Examining data/festival-2.5.0/src/modules/clustergen/HTS_vocoder_me.h
Examining data/festival-2.5.0/src/modules/clustergen/vc.h
Examining data/festival-2.5.0/src/modules/clustergen/simple_mlpg.h
Examining data/festival-2.5.0/src/modules/rxp/ttsxml.cc
Examining data/festival-2.5.0/src/modules/UniSyn_phonology/UniSyn_phonology.cc
Examining data/festival-2.5.0/src/modules/UniSyn_phonology/mettree.cc
Examining data/festival-2.5.0/src/modules/UniSyn_phonology/syllabify.cc
Examining data/festival-2.5.0/src/modules/UniSyn_phonology/subword.cc
Examining data/festival-2.5.0/src/modules/UniSyn_phonology/UniSyn_build.cc
Examining data/festival-2.5.0/src/modules/UniSyn_phonology/us_duration.cc
Examining data/festival-2.5.0/src/modules/UniSyn_phonology/unisyn_tilt.cc
Examining data/festival-2.5.0/src/modules/UniSyn_phonology/us_aux.cc
Examining data/festival-2.5.0/src/modules/UniSyn_phonology/us_duration.h
Examining data/festival-2.5.0/src/modules/MultiSyn/VoiceBase.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/DiphoneUnitVoice.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/VoiceModuleBase.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/DiphoneVoiceModule.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_TargetCost.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/TargetCostRescoring.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_JoinCost.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_JoinCostCache.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/DiphoneBackoff.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_DiphoneCoverage.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_FlatTargetCost.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_HybridTargetCost.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/UnitSelection.h
Examining data/festival-2.5.0/src/modules/MultiSyn/VoiceBase.h
Examining data/festival-2.5.0/src/modules/MultiSyn/DiphoneUnitVoice.h
Examining data/festival-2.5.0/src/modules/MultiSyn/VoiceModuleBase.h
Examining data/festival-2.5.0/src/modules/MultiSyn/DiphoneVoiceModule.h
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_TargetCost.h
Examining data/festival-2.5.0/src/modules/MultiSyn/TargetCostRescoring.h
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_JoinCost.h
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_JoinCostCache.h
Examining data/festival-2.5.0/src/modules/MultiSyn/DiphoneBackoff.h
Examining data/festival-2.5.0/src/modules/MultiSyn/safety.h
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_DiphoneCoverage.h
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_FlatTargetCost.h
Examining data/festival-2.5.0/src/modules/MultiSyn/EST_HybridTargetCost.h
Examining data/festival-2.5.0/src/modules/MultiSyn/inst_tmpl/hash_s_itemlistp_t.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/inst_tmpl/hash_itemp_tcdatap_t.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/inst_tmpl/list_uttp_t.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/inst_tmpl/list_itemp_t.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/inst_tmpl/list_voicemodulep_t.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/inst_tmpl/list_strlist_t.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/inst_tmpl/vector_jccp_t.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/inst_tmpl/list_scorepair_t.cc
Examining data/festival-2.5.0/src/modules/MultiSyn/UnitSelection.cc
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_audio.c
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_gstream.c
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_vocoder.c
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_pstream.c
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_sstream.c
Examining data/festival-2.5.0/src/modules/hts_engine/fest2hts_engine.cc
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_engine.c
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_engine.h
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_hidden.h
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_misc.c
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_model.c
Examining data/festival-2.5.0/src/modules/hts_engine/HTS_label.c
Examining data/festival-2.5.0/src/modules/hts21_engine/model.cc
Examining data/festival-2.5.0/src/modules/hts21_engine/mlpg.h
Examining data/festival-2.5.0/src/modules/hts21_engine/hts21_mlsa_resynthesis.cc
Examining data/festival-2.5.0/src/modules/hts21_engine/hts21_mlsa_resynthesis.h
Examining data/festival-2.5.0/src/modules/hts21_engine/global.h
Examining data/festival-2.5.0/src/modules/hts21_engine/defaults.h
Examining data/festival-2.5.0/src/modules/hts21_engine/vocoder.cc
Examining data/festival-2.5.0/src/modules/hts21_engine/tree.h
Examining data/festival-2.5.0/src/modules/hts21_engine/vocoder.h
Examining data/festival-2.5.0/src/modules/hts21_engine/hts_engine.cc
Examining data/festival-2.5.0/src/modules/hts21_engine/model.h
Examining data/festival-2.5.0/src/modules/hts21_engine/misc.cc
Examining data/festival-2.5.0/src/modules/hts21_engine/misc.h
Examining data/festival-2.5.0/src/modules/hts21_engine/mlpg.cc
Examining data/festival-2.5.0/src/modules/hts21_engine/tree.cc
Examining data/festival-2.5.0/src/main/audsp.cc
Examining data/festival-2.5.0/src/main/festival_client.cc
Examining data/festival-2.5.0/src/main/festival_main.cc
Examining data/festival-2.5.0/examples/festival_client.c
Examining data/festival-2.5.0/examples/festival_client.h

FINAL RESULTS:

data/festival-2.5.0/src/arch/festival/audspio.cc:68:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmpfilename,"%s_aud_%05d",(const char *)tpref,audsp_num++);
data/festival-2.5.0/src/arch/festival/audspio.cc:224:2:  [4] (shell) execvp:
  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.
	execvp(argv[0],argv);
data/festival-2.5.0/src/arch/festival/festival.cc:56:9:  [4] (format) snprintf:
  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.
#define snprintf _snprintf
data/festival-2.5.0/src/arch/festival/festival.cc:56:18:  [4] (format) _snprintf:
  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.
#define snprintf _snprintf
data/festival-2.5.0/src/arch/festival/festival.cc:315:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access((const char *)initfile,R_OK) == 0)
data/festival-2.5.0/src/arch/festival/festival.cc:370:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(etcdir,"%s/etc/%s/",festival_libdir,FTOSTYPE);
data/festival-2.5.0/src/arch/festival/festival.cc:372:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(etcdircommon,"%s/etc/",festival_libdir);
data/festival-2.5.0/src/arch/festival/festival.cc:382:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(newpath,"PATH=%s:%s:%s",path,etcdir,etcdircommon);
data/festival-2.5.0/src/arch/festival/server.cc:259:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message,"accepted from %s",client_hostname);
data/festival-2.5.0/src/arch/festival/server.cc:264:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message,"rejected from %s %s",client_hostname,reason);
data/festival-2.5.0/src/arch/festival/server.cc:290:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lst,"server    %s : ",cthetime);
data/festival-2.5.0/src/arch/festival/server.cc:292:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lst,"client(%d) %s : ",client,cthetime);
data/festival-2.5.0/src/arch/festival/web.cc:107:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(comm,"telnet %s %s",(const char *)host,(const char *)port);
data/festival-2.5.0/src/main/festival_client.cc:166:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer,"%s\n",al.val("--passwd"));
data/festival-2.5.0/src/main/festival_client.cc:439:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(command,"FILE=\"%s\"; %s",(const char *)tmpfile2,
data/festival-2.5.0/src/main/festival_client.cc:441:2:  [4] (shell) system:
  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.
	system(command);
data/festival-2.5.0/src/modules/Text/text_modes.cc:123:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(infile,R_OK) != 0)
data/festival-2.5.0/src/modules/Text/text_modes.cc:156:2:  [4] (shell) system:
  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.
	system(command);  // should test if this is successful or not
data/festival-2.5.0/src/modules/diphone/diphone.cc:442:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ps->diphs[ph],"%s-%s",ps->phons[ph],ps->phons[ph+1]);
data/festival-2.5.0/src/modules/diphone/diphone.cc:458:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(diphone,"%s-%s",p1,p2);
data/festival-2.5.0/src/modules/diphone/diphone.cc:469:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(diphone,"%s-%s",p1,get_c_string(car(cdr(alt2))));
data/festival-2.5.0/src/modules/diphone/diphone.cc:481:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(diphone,"%s-%s",get_c_string(car(cdr(alt1))),p2);
data/festival-2.5.0/src/modules/diphone/diphone.cc:493:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(diphone,"%s-%s",
data/festival-2.5.0/src/modules/donovan/load_diphs.c:76:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		sscanf(s,"%s %d %d %d",indx[i].diph,&indx[i].beg,&indx[i].mid,&indx[i].end);
data/festival-2.5.0/src/modules/donovan/load_diphs.c:157:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(ps->diphs[i],"%s-%s",ps->phons[i],ps->phons[i+1]);
data/festival-2.5.0/src/modules/hts_engine/HTS_misc.c:562:4:  [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(buff, string);
data/festival-2.5.0/src/modules/hts_engine/HTS_misc.c:602:4:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   vfprintf(stderr, message, arg);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1455:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buff1, "GV-Off { %s }", gv_off_context);
data/festival-2.5.0/src/modules/hts_engine/fest2hts_engine.cc:282:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str,
data/festival-2.5.0/src/modules/hts_engine/fest2hts_engine.cc:286:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str,
data/festival-2.5.0/src/modules/hts_engine/fest2hts_engine.cc:289:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(str,
data/festival-2.5.0/src/modules/hts_engine/fest2hts_engine.cc:292:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str, "%sAll rights reserved.\n", str);
data/festival-2.5.0/src/arch/festival/festival.cc:377: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.
    const char *path = getenv("PATH");
data/festival-2.5.0/src/main/festival_main.cc:130:14:  [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.
    else if (getenv("FESTLIBDIR") != 0)
data/festival-2.5.0/src/main/festival_main.cc:131:20:  [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.
	festival_libdir = getenv("FESTLIBDIR");
data/festival-2.5.0/src/main/festival_main.cc:135:14:  [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.
    else if (getenv("FESTDATADIR") != 0)
data/festival-2.5.0/src/main/festival_main.cc:136:21:  [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.
	festival_datadir = getenv("FESTDATADIR");
data/festival-2.5.0/src/main/festival_main.cc:217:6:  [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("FESTLIBDIR") != 0)
data/festival-2.5.0/src/main/festival_main.cc:218: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.
	    festival_libdir = getenv("FESTLIBDIR");
data/festival-2.5.0/src/main/festival_main.cc:249:20:  [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.
    siodheapsize = getenv("SIODHEAPSIZE");
data/festival-2.5.0/examples/festival_client.c:99:20:  [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).
    else if ((fd = fopen(filename,"wb")) == NULL)
data/festival-2.5.0/examples/festival_client.c:345: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 ack[4];
data/festival-2.5.0/examples/festival_client.c:419:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    port = atoi(argv[++i]);
data/festival-2.5.0/src/arch/festival/ModuleDescription.cc:68: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[10];
data/festival-2.5.0/src/arch/festival/ModuleDescription.cc:85:5:  [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.
    sprintf(buf, "%.2f", desc.version);
data/festival-2.5.0/src/arch/festival/audspio.cc:77: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 reply[4];
data/festival-2.5.0/src/arch/festival/festival.cc:108:13:  [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).
	stddebug = fopen("/dev/null","w");
data/festival-2.5.0/src/arch/festival/festival.cc:295:13:  [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).
	stddebug = fopen("/dev/null","w");
data/festival-2.5.0/src/arch/festival/festival.cc:337:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    major = atoi(ts.get().string());
data/festival-2.5.0/src/arch/festival/festival.cc:338:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    minor = atoi(ts.get().string());
data/festival-2.5.0/src/arch/festival/festival.cc:339:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    subminor = atoi(ts.get().string());
data/festival-2.5.0/src/arch/festival/festival.cc:413: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 utf8char[5];
data/festival-2.5.0/src/arch/festival/festival.cc:545: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 ch[5];
data/festival-2.5.0/src/arch/festival/server.cc:284: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 lst[1024];
data/festival-2.5.0/src/arch/festival/wave.cc:658:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    w->save(tmpfile,type);
data/festival-2.5.0/src/arch/festival/wave.cc:664:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    socket_send_file(ft_server_socket,tmpfile);
data/festival-2.5.0/src/arch/festival/wave.cc:665:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/festival-2.5.0/src/arch/festival/wave.cc:696:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    w->save(tmpfile,type);
data/festival-2.5.0/src/arch/festival/wave.cc:702:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    socket_send_file(ft_server_socket,tmpfile);
data/festival-2.5.0/src/arch/festival/wave.cc:703:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/festival-2.5.0/src/arch/festival/wave.cc:714:10:  [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).
    fd = fopen(tmpfile,"w");
data/festival-2.5.0/src/arch/festival/wave.cc:714:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fd = fopen(tmpfile,"w");
data/festival-2.5.0/src/arch/festival/wave.cc:724:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    socket_send_file(ft_server_socket,tmpfile);
data/festival-2.5.0/src/arch/festival/wave.cc:725:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/festival-2.5.0/src/arch/festival/web.cc:108:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	wwwserver = festival_socket_client(host,atoi(port));
data/festival-2.5.0/src/arch/festival/web.cc:118:10:  [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).
	if ((fd=fopen(get_c_string(filename),"wb")) == NULL)
data/festival-2.5.0/src/arch/festival/web.cc:144:13:  [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).
	if ((fin = fopen(file,"rb")) == NULL)
data/festival-2.5.0/src/arch/festival/web.cc:150:10:  [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).
	if ((fd=fopen(get_c_string(filename),"wb")) == NULL)
data/festival-2.5.0/src/include/ModuleDescription.h:100:9:  [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.
  const char * description[MD_MAX_DESCRIPTION_LINES];
data/festival-2.5.0/src/main/audsp.cc:324:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(nline,line,maxsize);
data/festival-2.5.0/src/main/audsp.cc:360:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int rate = atoi(ts.get().string());
data/festival-2.5.0/src/main/festival_client.cc:181: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).
	FILE *pfd = fopen(al.val("--prolog"),"rb");
data/festival-2.5.0/src/main/festival_client.cc:200:16:  [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).
	    if ((infd=fopen(files.nth(0),"rb")) == NULL)
data/festival-2.5.0/src/main/festival_client.cc:224:13:  [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).
    if ((fd=fopen(tmpfile,"wb")) == NULL)
data/festival-2.5.0/src/main/festival_client.cc:224:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fd=fopen(tmpfile,"wb")) == NULL)
data/festival-2.5.0/src/main/festival_client.cc:227:6:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	    tmpfile << "\"\n";
data/festival-2.5.0/src/main/festival_client.cc:247:19:  [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).
    else if ((tfd=fopen(file,"rb")) == NULL)
data/festival-2.5.0/src/main/festival_client.cc:268:13:  [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).
    if ((fd=fopen(tmpfile,"rb")) == NULL)
data/festival-2.5.0/src/main/festival_client.cc:268:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if ((fd=fopen(tmpfile,"rb")) == NULL)
data/festival-2.5.0/src/main/festival_client.cc:271:6:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	    tmpfile << "\" mysteriously disappeared\n";
data/festival-2.5.0/src/main/festival_client.cc:276:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/festival-2.5.0/src/main/festival_client.cc:286: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 ack[4];
data/festival-2.5.0/src/main/festival_client.cc:428:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    socket_receive_file((SOCKET)fd,tmpfile);
data/festival-2.5.0/src/main/festival_client.cc:430:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    socket_receive_file(fileno(fd),tmpfile);
data/festival-2.5.0/src/main/festival_client.cc:432:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    sig.load(tmpfile);
data/festival-2.5.0/src/main/festival_client.cc:449:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/festival-2.5.0/src/main/festival_client.cc:461:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    socket_receive_file((SOCKET)fd,tmpfile);
data/festival-2.5.0/src/main/festival_client.cc:463:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    socket_receive_file(fileno(fd),tmpfile);
data/festival-2.5.0/src/main/festival_client.cc:468:13:  [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).
	if (( tf = fopen(tmpfile,"rb")) == NULL)
data/festival-2.5.0/src/main/festival_client.cc:468:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (( tf = fopen(tmpfile,"rb")) == NULL)
data/festival-2.5.0/src/main/festival_client.cc:480:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/festival-2.5.0/src/main/festival_main.cc:251:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	festival_initialize(FALSE,atoi(siodheapsize));
data/festival-2.5.0/src/modules/Lexicon/complex.cc:92: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).
    if ((fin=fopen(get_c_string(finname),"rb")) == NULL)
data/festival-2.5.0/src/modules/Lexicon/complex.cc:123:15:  [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).
    if ((fout=fopen(get_c_string(foutname),"wb")) == NULL)
data/festival-2.5.0/src/modules/Lexicon/lexicon.cc:257: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 magic_number[20];
data/festival-2.5.0/src/modules/Lexicon/lexicon.cc:267:13:  [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).
	binlexfp = fopen(bl_filename,"rb");
data/festival-2.5.0/src/modules/Text/text.cc:143:12:  [2] (misc) open:
  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).
    if (ts.open(stream->storage_as.c_file.f, FALSE) == -1)
data/festival-2.5.0/src/modules/Text/text_modes.cc:133: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 buff[256];
data/festival-2.5.0/src/modules/Text/text_modes.cc:135: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).
	if ((fdin = fopen(infile,"rb")) == NULL)
data/festival-2.5.0/src/modules/Text/text_modes.cc:141:15:  [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).
	if ((fdout = fopen(outfile,"wb")) == NULL)
data/festival-2.5.0/src/modules/Text/tok_ext.cc:80:12:  [2] (misc) open:
  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).
    if (ts.open(filename) == -1)
data/festival-2.5.0/src/modules/Text/tok_ext.cc:91:21:  [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).
    else if ((ofd = fopen(get_c_string(ofile),"a")) == NULL)
data/festival-2.5.0/src/modules/Text/token.cc:410:25:  [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.
      if (strchr((const char *)PunctuationChars,tokch[i]) == NULL)
data/festival-2.5.0/src/modules/Text/token.cc:430:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    LISP numwords = num_2_words(atoi(num));
data/festival-2.5.0/src/modules/Text/token.cc:494:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return num_2_words(atoi(num));
data/festival-2.5.0/src/modules/Text/token.cc:499:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int iword = atoi(num);
data/festival-2.5.0/src/modules/Text/xxml.cc:69:12:  [2] (misc) open:
  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).
    if (ts.open(inname) == -1)
data/festival-2.5.0/src/modules/UniSyn/us_unit.cc:574:17:  [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).
  FILE *ofile = fopen( "./join_times.est", "w" );
data/festival-2.5.0/src/modules/UniSyn_diphone/UniSyn_diphone.cc:115:18:  [2] (misc) open:
  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).
	if (d_index->ts.open(d_index->index_file) != 0)
data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_index.cc:209:15:  [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).
    if ((fp = fopen(group_file, "wb")) == NULL)
data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_index.cc:227:15:  [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).
    if ((fp = fopen(index_file, "wb")) == NULL)
data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_index.cc:248: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[block_size];
data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_index.cc:251:21:  [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).
    if ((fp_group = fopen(group_file, "rb")) == NULL)
data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_index.cc:296:12:  [2] (misc) open:
  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).
    if (ts.open(filename) != 0)
data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_index.cc:321:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    di.diphone[i].set("track_start", atoi(ts.get().string()));
data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_index.cc:322:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    di.diphone[i].set("wave_start", atoi(ts.get().string()));
data/festival-2.5.0/src/modules/UniSyn_diphone/us_diphone_index.cc:323:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    di.diphone[i].set("middle_frame", atoi(ts.get().string()));
data/festival-2.5.0/src/modules/UniSyn_phonology/UniSyn_build.cc:962:10:  [2] (misc) open:
  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).
    outf.open(get_c_string(lf_output));
data/festival-2.5.0/src/modules/base/ff.cc:53: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 a[1024];
data/festival-2.5.0/src/modules/base/ff.cc:57:5:  [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.
    sprintf(a,"%p",i->contents());  
data/festival-2.5.0/src/modules/clunits/cldb.cc:118:34:  [2] (misc) open:
  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).
    if (((indexfile == "-") ? ts.open(cin) : ts.open(indexfile)) != 0)
data/festival-2.5.0/src/modules/clunits/cldb.cc:118:49:  [2] (misc) open:
  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).
    if (((indexfile == "-") ? ts.open(cin) : ts.open(indexfile)) != 0)
data/festival-2.5.0/src/modules/diphone/di_io.cc:103:12:  [2] (misc) open:
  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).
    if (ts.open(database->index_file) == -1)
data/festival-2.5.0/src/modules/diphone/di_io.cc:536: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 s[100];
data/festival-2.5.0/src/modules/diphone/di_io.cc:549:13:  [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).
    if((pfd=fopen(pitch_file,"rb")) == NULL) 
data/festival-2.5.0/src/modules/diphone/di_io.cc:730:18:  [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).
    if ((db->gfd=fopen(filename,"rb")) == NULL)
data/festival-2.5.0/src/modules/diphone/di_io.cc:1010:13:  [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).
    if ((fd=fopen(filename,"wb")) == NULL)
data/festival-2.5.0/src/modules/diphone/diphone.cc:455: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 diphone[20];
data/festival-2.5.0/src/modules/donovan/load_diphs.c:64: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 s[100];
data/festival-2.5.0/src/modules/donovan/load_diphs.c:70:18:  [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).
	if((config->xfd=fopen(config->index_file,"rb")) == NULL) {
data/festival-2.5.0/src/modules/donovan/load_diphs.c:91:18:  [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).
	if((config->dfd=fopen(config->diphone_file,"rb")) == NULL) {
data/festival-2.5.0/src/modules/donovan/t2s.h:117: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 phoneme[5];
data/festival-2.5.0/src/modules/donovan/t2s.h:133:9:  [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 diph[10];
data/festival-2.5.0/src/modules/hts21_engine/hts_engine.cc:96:4:  [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[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts21_engine/hts_engine.cc:127:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            start = atoi(buf);
data/festival-2.5.0/src/modules/hts21_engine/hts_engine.cc:129:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            end = atoi(buf);
data/festival-2.5.0/src/modules/hts21_engine/hts_engine.cc:134:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            start = atoi(buf);
data/festival-2.5.0/src/modules/hts21_engine/hts_engine.cc:136:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            end = atoi(buf);
data/festival-2.5.0/src/modules/hts21_engine/hts_engine.cc:177:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            start = atoi(buf);
data/festival-2.5.0/src/modules/hts21_engine/hts_engine.cc:179:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            end = atoi(buf);
data/festival-2.5.0/src/modules/hts21_engine/hts_engine.cc:278:10:  [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).
    fd = fopen(fname,mode);
data/festival-2.5.0/src/modules/hts21_engine/misc.cc:54:12:  [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).
   if ((fp=fopen(name, opt)) == NULL) {
data/festival-2.5.0/src/modules/hts21_engine/mlpg.cc:435:20:  [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).
         if ((fp = fopen (pst->dw.fn[i], "r")) == NULL) {
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:122:4:  [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[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:151:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      tree->state = atoi(s);
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:184:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   return (atoi(strrchr(buf,'_')+1));
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:207:4:  [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[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:216:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         node = FindNode(tree->root, atoi(buf));
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:225:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            node->no->idx = atoi(buf);
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:233:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            node->yes->idx = atoi(buf);
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:247:4:  [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[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_audio.c:112:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(audio_interface->buff_1.lpData, buff, buff_size * sizeof(short));
data/festival-2.5.0/src/modules/hts_engine/HTS_audio.c:120:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(audio_interface->buff_2.lpData, buff, buff_size * sizeof(short));
data/festival-2.5.0/src/modules/hts_engine/HTS_engine.c:142:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      engine->condition.stage = (size_t) atoi(&find[strlen("GAMMA=")]);
data/festival-2.5.0/src/modules/hts_engine/HTS_engine.c:145:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      engine->condition.use_log_gain = atoi(&find[strlen("LN_GAIN=")]) == 1 ? TRUE : FALSE;
data/festival-2.5.0/src/modules/hts_engine/HTS_label.c:108:4:  [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 buff[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_label.c:159:4:  [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 buff[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_misc.c:84:27:  [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).
   fp->pointer = (void *) fopen(name, opt);
data/festival-2.5.0/src/modules/hts_engine/HTS_misc.c:126:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tmp2->data, &tmp1->data[tmp1->index], size);
data/festival-2.5.0/src/modules/hts_engine/HTS_misc.c:152:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(d->data, data, size);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:91:4:  [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 buff[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:142:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   return (size_t) atoi(&buff[i]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:159:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   return (size_t) atoi(left);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:188:4:  [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 buff[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:355:4:  [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 buff[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:371:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         node = HTS_Node_find(last_node, atoi(buff));
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:373:67:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            HTS_error(0, "HTS_Tree_load: Cannot find node %d.\n", atoi(buff));
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:400:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            node->no->index = atoi(buff);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:414:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            node->yes->index = atoi(buff);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:485:4:  [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 buff[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:502:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         fsize = atoi(buff);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:593:4:  [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 buff[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:892:4:  [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 buff1[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:893:4:  [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 buff2[HTS_MAXBUFLEN];
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:982:48:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            temp_sampling_frequency = (size_t) atoi(&buff1[matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:984:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            temp_frame_period = (size_t) atoi(&buff1[matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:986:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            temp_num_states = (size_t) atoi(&buff1[matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:988:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            temp_num_streams = (size_t) atoi(&buff1[matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1096:58:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        temp_vector_length[j] = (size_t) atoi(&buff1[matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1116:56:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        temp_num_windows[j] = (size_t) atoi(&buff1[matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1188:32:  [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.
         temp_stream_win[j] = (char **) HTS_calloc(num_windows[j], sizeof(char *));
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1329:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         s = (size_t) atoi(buff2);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1330:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         e = (size_t) atoi(&temp_duration_pdf[matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1337:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         s = (size_t) atoi(buff2);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1338:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         e = (size_t) atoi(&temp_duration_tree[matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1355:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
               s = (size_t) atoi(buff2);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1356:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
               e = (size_t) atoi(&temp_stream_win[j][k][matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1374:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            s = (size_t) atoi(buff2);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1375:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            e = (size_t) atoi(&temp_stream_pdf[j][matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1382:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            s = (size_t) atoi(buff2);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1383:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            e = (size_t) atoi(&temp_stream_tree[j][matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1399:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            s = (size_t) atoi(buff2);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1400:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            e = (size_t) atoi(&temp_gv_pdf[j][matched_size]);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1407:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            s = (size_t) atoi(buff2);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1408:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            e = (size_t) atoi(&temp_gv_tree[j][matched_size]);
data/festival-2.5.0/src/modules/hts_engine/fest2hts_engine.cc:64: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).
  FILE *fp = fopen(name, opt);
data/festival-2.5.0/src/modules/hts_engine/fest2hts_engine.cc:250:12:  [2] (misc) open:
  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).
  ts_label.open(labelstream);
data/festival-2.5.0/src/modules/hts_engine/fest2hts_engine.cc:279:3:  [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.
  sprintf(str,
data/festival-2.5.0/src/modules/hts_engine/fest2hts_engine.cc:299: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[4096];
data/festival-2.5.0/examples/festival_client.c:204: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).
	(strncmp(" -i ",p+strlen(field),4) == 0))
data/festival-2.5.0/examples/festival_client.c:206:11:  [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).
	sscanf(p+strlen(field)+4,"%d",&val);
data/festival-2.5.0/examples/festival_client.c:220:28:  [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 (((strncmp(" -s2 01",p+strlen(field),7) == 0) && FAPI_BIG_ENDIAN) ||
data/festival-2.5.0/examples/festival_client.c:221:28:  [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).
	    ((strncmp(" -s2 10",p+strlen(field),7) == 0) 
data/festival-2.5.0/examples/festival_client.c:291:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd,&c,1);
data/festival-2.5.0/examples/festival_client.c:374:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    n += read(info->server_fd,ack+n,3-n);
data/festival-2.5.0/src/arch/festival/audspio.cc:89:23:  [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).
    write(audfds[0],c,strlen(c));
data/festival-2.5.0/src/arch/festival/audspio.cc:91:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(audfds[1],reply,3);  /* confirmation */
data/festival-2.5.0/src/arch/festival/festival.cc:334: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).
		  strcons(strlen(festival_version),festival_version));
data/festival-2.5.0/src/arch/festival/festival.cc:368:32:  [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 *etcdir = walloc(char,strlen(festival_libdir)+strlen("etc/")+
data/festival-2.5.0/src/arch/festival/festival.cc:368:56:  [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 *etcdir = walloc(char,strlen(festival_libdir)+strlen("etc/")+
data/festival-2.5.0/src/arch/festival/festival.cc:369:6:  [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).
			  strlen(FTOSTYPE)+3);
data/festival-2.5.0/src/arch/festival/festival.cc:371:38:  [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 *etcdircommon = walloc(char,strlen(festival_libdir)+strlen("etc/")+3);
data/festival-2.5.0/src/arch/festival/festival.cc:371:62:  [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 *etcdircommon = walloc(char,strlen(festival_libdir)+strlen("etc/")+3);
data/festival-2.5.0/src/arch/festival/festival.cc:380:38:  [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 *newpath = walloc(char,1024+strlen(path)+strlen(etcdir)+
data/festival-2.5.0/src/arch/festival/festival.cc:380:51:  [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 *newpath = walloc(char,1024+strlen(path)+strlen(etcdir)+
data/festival-2.5.0/src/arch/festival/festival.cc:381: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).
			   strlen(etcdircommon));
data/festival-2.5.0/src/arch/festival/festival.cc:439: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).
       (len != strlen(utf8_seq))) {
data/festival-2.5.0/src/arch/festival/server.cc:243:36:  [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 *client_passwd = walloc(char,strlen(get_c_string(passwd))+1);
data/festival-2.5.0/src/arch/festival/server.cc:244:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fd,client_passwd,strlen(get_c_string(passwd)));
data/festival-2.5.0/src/arch/festival/server.cc:244:24:  [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).
	read(fd,client_passwd,strlen(get_c_string(passwd)));
data/festival-2.5.0/src/arch/festival/server.cc:245: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).
	client_passwd[strlen(get_c_string(passwd))] = '\0';
data/festival-2.5.0/src/arch/festival/server.cc:255:36:  [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 *message = walloc(char,20+strlen(client_hostname)+strlen(reason));
data/festival-2.5.0/src/arch/festival/server.cc:255:60:  [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 *message = walloc(char,20+strlen(client_hostname)+strlen(reason));
data/festival-2.5.0/src/arch/festival/web.cc:78:33:  [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 *comm = walloc(char,32+strlen(get_c_string(url)));
data/festival-2.5.0/src/arch/festival/web.cc:79:35:  [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 *getstr = walloc(char,32+strlen(get_c_string(filename)));
data/festival-2.5.0/src/arch/festival/web.cc:159:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while ((c=getc(fin)) != EOF)
data/festival-2.5.0/src/arch/festival/web.cc:211:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(fd,&c,1);
data/festival-2.5.0/src/main/audsp.cc:301:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(fd,&c,1);
data/festival-2.5.0/src/main/festival_client.cc:164:28:  [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).
		DWORD passwdlen = (DWORD)strlen(al.val("--passwd"))+1;
data/festival-2.5.0/src/main/festival_client.cc:254:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c=getc(tfd)) != EOF)
data/festival-2.5.0/src/main/festival_client.cc:288:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while((c=getc(fdin)) != EOF)
data/festival-2.5.0/src/main/festival_client.cc:326:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    n += read(fileno(serverfd),ack+n,3-n);
data/festival-2.5.0/src/main/festival_client.cc:474:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while ((c=getc(tf)) != EOF)
data/festival-2.5.0/src/modules/Lexicon/lex_aux.cc:137:10:  [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(ph) > 1) &&
data/festival-2.5.0/src/modules/Lexicon/lex_aux.cc:138: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).
        ((ph[strlen(ph)-1] == '1') || 
data/festival-2.5.0/src/modules/Lexicon/lex_aux.cc:139: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).
         (ph[strlen(ph)-1] == '2') ||
data/festival-2.5.0/src/modules/Lexicon/lex_aux.cc:140: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).
         (ph[strlen(ph)-1] == '0')))
data/festival-2.5.0/src/modules/Lexicon/lex_aux.cc:142: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).
	stress = ph[strlen(ph)-1]-'0';
data/festival-2.5.0/src/modules/Lexicon/lex_aux.cc:144:6:  [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).
	nph[strlen(ph)-1] = '\0';
data/festival-2.5.0/src/modules/Lexicon/lexicon.cc:380:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(binlexfp)) != '\n')
data/festival-2.5.0/src/modules/Lexicon/lts.cc:73:25:  [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).
    return cons(strcons(strlen(word),word),
data/festival-2.5.0/src/modules/MultiSyn/EST_JoinCostCache.cc:148:19:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
      if( cost >= ulimit )
data/festival-2.5.0/src/modules/Text/token.cc:463:30:  [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).
    else if (streq(&lastword[strlen(lastword)-4],"teen"))
data/festival-2.5.0/src/modules/Text/token.cc:465:30:  [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).
    else if (streq(&lastword[strlen(lastword)-2],"ty"))
data/festival-2.5.0/src/modules/Text/token.cc:471:30:  [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).
    else if (streq(&lastword[strlen(lastword)-6],"illion"))
data/festival-2.5.0/src/modules/Text/xxml.cc:190: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 *procline = walloc(char,strlen(line)+1);
data/festival-2.5.0/src/modules/diphone/di_io.cc:1024: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).
	strsize += strlen(db->indx[i]->diph)+1;
data/festival-2.5.0/src/modules/diphone/di_io.cc:1027:40:  [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).
	fwrite(db->indx[i]->diph,sizeof(char),strlen(db->indx[i]->diph)+1,fd);
data/festival-2.5.0/src/modules/hts21_engine/misc.cc:68:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   c = fgetc (fp);
data/festival-2.5.0/src/modules/hts21_engine/misc.cc:71:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc (fp);
data/festival-2.5.0/src/modules/hts21_engine/misc.cc:74:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc (fp);
data/festival-2.5.0/src/modules/hts21_engine/misc.cc:79:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc (fp);
data/festival-2.5.0/src/modules/hts21_engine/misc.cc:84:7:  [1] (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). Risk is low because the source is a constant character.
      strcpy (buff, ",");
data/festival-2.5.0/src/modules/hts21_engine/misc.cc:91:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc (fp);
data/festival-2.5.0/src/modules/hts21_engine/mlpg.cc:130:22:  [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).
   buf = walloc(char,strlen(c));
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:80:22:  [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).
   for(i=0; i < (int)strlen(pat); i++)
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:83:32:  [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).
   return DPMatch(str, pat, 0, strlen(str)-max);
data/festival-2.5.0/src/modules/hts21_engine/tree.cc:161: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).
   for (i=0; i<(int)strlen(buf); i++)
data/festival-2.5.0/src/modules/hts_engine/HTS_engine.c:142:53:  [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).
      engine->condition.stage = (size_t) atoi(&find[strlen("GAMMA=")]);
data/festival-2.5.0/src/modules/hts_engine/HTS_engine.c:145:51:  [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).
      engine->condition.use_log_gain = atoi(&find[strlen("LN_GAIN=")]) == 1 ? TRUE : FALSE;
data/festival-2.5.0/src/modules/hts_engine/HTS_engine.c:148:44:  [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).
      engine->condition.alpha = atof(&find[strlen("ALPHA=")]);
data/festival-2.5.0/src/modules/hts_engine/HTS_misc.c:190:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return fgetc((FILE *) fp->pointer);
data/festival-2.5.0/src/modules/hts_engine/HTS_misc.c:367:7:  [1] (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). Risk is low because the source is a constant character.
      strcpy(buff, ",");
data/festival-2.5.0/src/modules/hts_engine/HTS_misc.c:561:37:  [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 *buff = (char *) HTS_calloc(strlen(string) + 1, sizeof(char));
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:92:28:  [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 pattern_length = strlen(pattern);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:118:47:  [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).
      return HTS_dp_match(string, pattern, 0, strlen(string) - max);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:125: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).
   size_t length = strlen(buff);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:139: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).
   for (i = strlen(buff) - 1; '0' <= buff[i] && buff[i] <= '9' && i >= 0; i--);
data/festival-2.5.0/src/modules/hts_engine/HTS_model.c:1456:63:  [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).
      gv_off_context_fp = HTS_fopen_from_data((void *) buff1, strlen(buff1) + 1);

ANALYSIS SUMMARY:

Hits = 269
Lines analyzed = 53997 in approximately 1.61 seconds (33532 lines/second)
Physical Source Lines of Code (SLOC) = 33543
Hits@level = [0] 187 [1]  70 [2] 159 [3]   8 [4]  32 [5]   0
Hits@level+ = [0+] 456 [1+] 269 [2+] 199 [3+]  40 [4+]  32 [5+]   0
Hits/KSLOC@level+ = [0+] 13.5945 [1+] 8.01956 [2+] 5.93268 [3+] 1.1925 [4+] 0.953999 [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.