Browse Source

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.
master
Christopher Brannon 4 years ago
parent
commit
8810fa330e
No account linked to committer's email address

+ 3
- 1
src/libespeak-ng/readclause.c 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
- 0
tests/ssml/malformed-tag1.expected View File

@@ -0,0 +1 @@


+ 1
- 0
tests/ssml/malformed-tag1.ssml View File

@@ -0,0 +1 @@
<<foo

Loading…
Cancel
Save