mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<<foo
|
||||
Reference in New Issue
Block a user