Debian Codegraph @

src/tests/t.crash-invalid-base64

raw
1 #! /bin/sh
2
3 . ${srcdir:=.}/t.frame
4
5 # make sure that we do not crash on excessively long tokens
6 # Test program by Julius Plenz, TU Berlin.
7 perl -e '
8 print <<EOF
9 Content-Type: multipart/mixed;boundary="----=_20121014031204_57463"
10
11 ------=_20121014031204_57463
12 Content-Type: text/plain; charset="utf-8"
13
14 ------=_20121014031204_57463
15 Content-Transfer-Encoding: base64
16
17 EOF
18 ;
19 print(("vfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvfvf\n")x600);
20 print "------=_20121014031204_57463--";' \
21 | $VAL $BOGOFILTER -p -e -C > /dev/null