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