#! /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