Debian Codegraph @

texk/dvipsk/test-overflow-buffers.test

raw
1 #! /bin/sh -vx
2 # $Id: test-overflow-buffers.test 67885 2023-08-11 14:25:18Z takuji $
3 # Public domain. Various buffer overflows, reported by
4 # Andy Nguyen of ETH Zurich. The program should detect and abort.
5
6 BinDir=${BinDir:-.}
7 ExeExt=${ExeExt:-}
8 _dvips=$BinDir/dvips$ExeExt
9
10 for tst in overflow-color-push overflow-epsfile \
11 overflow-ifffile overflow-psbox; do
12 :
13 if $_dvips $srcdir/testdata/$tst.dvi -o; then
14 echo "$0: test $tst should have failed." >&2
15 exit 1
16 fi
17 done
18
19 # overflow-keyword succeeds, because the special is ignored,
20 # because the file (named with 999 a's) does not exist.
21 tst=overflow-keyword
22 $_dvips $srcdir/testdata/$tst.dvi -o || exit 1
23 grep ' @setspecial' $tst.ps || exit 1
24
25 exit 0