Fix another out-of-bounds read in SSML parsing.

A malformed tag like <foo could cause espeak to read past
the end of the string.
This commit is contained in:
Christopher Brannon
2021-05-15 15:19:57 -07:00
parent 2a7080f411
commit 8810fa330e
3 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -614,7 +614,9 @@ int ReadClause(Translator *tr, char *buf, short *charix, int *charix_top, int n_
return terminator;
}
c1 = ' ';
c2 = GetC();
if (!Eof()) {
c2 = GetC();
}
continue;
}
}
+1
View File
@@ -0,0 +1 @@
+1
View File
@@ -0,0 +1 @@
<<foo