Browse Source

tests: add CVE crash vectors

master
Yury Popov 1 year ago
parent
commit
c4c05820c4
No account linked to committer's email address

+ 1
- 0
tests/CMakeLists.txt View File

@@ -61,6 +61,7 @@ shell_test(ssml)
shell_test(translate)
shell_test(variants)
shell_test(voices)
shell_test(crash)

# shell_test(windows-data)
# shell_test(windows-installer)

+ 17
- 0
tests/crash.test View File

@@ -0,0 +1,17 @@
#!/bin/sh
# include common script
. "`dirname $0`/common"

test_crash() {
TEST_NAME=$1

echo "testing CVE-${TEST_NAME}"
ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
$VALGRIND src/espeak-ng -f "$(dirname $0)/crash_vectors/${TEST_NAME}.txt" -w /dev/null || exit 1
}

test_crash cve-2023-49990
test_crash cve-2023-49991
test_crash cve-2023-49992
test_crash cve-2023-49993
test_crash cve-2023-49994

+ 1
- 0
tests/crash_vectors/cve-2023-49990.txt View File

@@ -0,0 +1 @@
ã¦à»Vñ€¦ñ €¦V €äVñ€ãÂà¦æsññâñþâññà¶æØØsññâñþâññeeeeeeeeseee€ññûñ

+ 1
- 0
tests/crash_vectors/cve-2023-49991.txt View File

@@ -0,0 +1 @@
€¦Vń €ńVđŐhńůâ˙ńVDíZ»»ŐöÖÖÖÖÖÖÖÖÖě»»ş»ÖľÖÖÖÖÖÖ´ÖÖÖ»ţţ÷ÜÖÖÖ»»ş»ŐŞ»»®î˙˙€ę`v

BIN
tests/crash_vectors/cve-2023-49992.txt View File


BIN
tests/crash_vectors/cve-2023-49993.txt View File


+ 1
- 0
tests/crash_vectors/cve-2023-49994.txt View File

@@ -0,0 +1 @@
"[[-#,- -1-2. r--Ş#--O)C--!˙E-1‹@5-!-V-1--

Loading…
Cancel
Save