250 lines
9.2 KiB
Diff
250 lines
9.2 KiB
Diff
|
diff --git a/tests/crash.test b/tests/crash.test
|
|||
|
new file mode 100755
|
|||
|
index 0000000000..184faf6eb8
|
|||
|
--- /dev/null
|
|||
|
+++ b/tests/crash.test
|
|||
|
@@ -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
|
|||
|
diff --git a/tests/crash_vectors/cve-2023-49990.txt b/tests/crash_vectors/cve-2023-49990.txt
|
|||
|
new file mode 100644
|
|||
|
index 0000000000..6708ca8895
|
|||
|
--- /dev/null
|
|||
|
+++ b/tests/crash_vectors/cve-2023-49990.txt
|
|||
|
@@ -0,0 +1 @@
|
|||
|
+<2B><><EFBFBD><EFBFBD>V<><56><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>V
<0A><>V<><07><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>eeeeeeeeseee<65><65><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
\ No newline at end of file
|
|||
|
diff --git a/tests/crash_vectors/cve-2023-49991.txt b/tests/crash_vectors/cve-2023-49991.txt
|
|||
|
new file mode 100644
|
|||
|
index 0000000000..118f5b6131
|
|||
|
--- /dev/null
|
|||
|
+++ b/tests/crash_vectors/cve-2023-49991.txt
|
|||
|
@@ -0,0 +1 @@
|
|||
|
+<2B><>V<>
<EFBFBD><EFBFBD>V<><56>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD>VD<56>Z<EFBFBD><5A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><10><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>컻<EFBFBD><ECBBBB>־<EFBFBD><D6BE><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><08><>ֻ<EFBFBD><D6BB><EFBFBD>ժ<EFBFBD><D5AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>`v
|
|||
|
\ No newline at end of file
|
|||
|
diff --git a/tests/crash_vectors/cve-2023-49992.txt b/tests/crash_vectors/cve-2023-49992.txt
|
|||
|
new file mode 100644
|
|||
|
--- /dev/null
|
|||
|
+++ b/tests/crash_vectors/cve-2023-49992.txt
|
|||
|
@@ -0,0 +1 @@
|
|||
|
+<2B><><EFBFBD><EFBFBD><EFBFBD><03>!<21><><EFBFBD><EFBFBD><EFBFBD>bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbIbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb<62> |