blob: 28e314ef0ad713314508cdfaa101909bf229807b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#! /bin/sh -vx
# $Id$
# Public domain. Various buffer overflows, reported by
# Andy Nguyen of ETH Zurich. The program should detect and abort.
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
|