Add tests on SSML parsing

A corpus of SSML input files will also be needed for fuzzing.
https://github.com/espeak-ng/espeak-ng/issues/407
This commit is contained in:
Sascha Brawer
2018-03-02 11:32:36 +01:00
parent 8c41f6bd0c
commit 7e669f1812
11 changed files with 106 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- SSML version of the “XML External Entity” attack
https://en.wikipedia.org/wiki/XML_external_entity_attack
-->
<!DOCTYPE test [
<!ENTITY xxeattack SYSTEM "file:///etc/passwd">
]>
<speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis"
xml:lang="en-US">
<p>Here are the passwords:</p>
<p>&xxeattack;</p>
</speak>