mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[1.36.02]
Fix for crash on word with abnormally large number of vowels (eg "Hiiiiii.....") git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@167 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+1
-1
@@ -805,7 +805,7 @@ static int GetVowelStress(Translator *tr, unsigned char *phonemes, unsigned char
|
||||
int primary_posn = 0;
|
||||
|
||||
vowel_stress[0] = 0;
|
||||
while((phcode = *phonemes++) != 0)
|
||||
while(((phcode = *phonemes++) != 0) && (count < (N_WORD_PHONEMES/2)-1))
|
||||
{
|
||||
if((ph = phoneme_tab[phcode]) == NULL)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user