Debian Codegraph @

tests/crash.test

raw
1 #!/bin/sh
2 # include common script
3 . "`dirname $0`/common"
4
5 test_crash() {
6 TEST_NAME=$1
7
8 echo "testing CVE-${TEST_NAME}"
9 ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
10 $VALGRIND src/espeak-ng -f "$(dirname $0)/crash_vectors/${TEST_NAME}.txt" -w /dev/null || exit 1
11 }
12
13 test_crash cve-2023-49990
14 test_crash cve-2023-49991
15 test_crash cve-2023-49992
16 test_crash cve-2023-49993
17 test_crash cve-2023-49994