commit 29deeb526d27743e36370e57681e1595aba56478 from: Sergey Bronnikov date: Mon Nov 27 12:14:05 2017 UTC update corpus and script itself commit - ef37f495c09743f4022058ab89ac472087a02d97 commit + 29deeb526d27743e36370e57681e1595aba56478 blob - 4ec17c3ef20c1b2aa4db46a00945bdac35ab8eea blob + 42fc8d7ccb0d3914c560b674f2e8945730e6499c --- tests/afl-fuzz/afl_run +++ tests/afl-fuzz/afl_run @@ -20,9 +20,7 @@ # radiusd ctfdump ctfconf sasyncd libutil pfctl # # TODO: -# ldomd ypldap -# sed last nm bc lex fold ssh mandoc ksh ctags -# m4 yacc deroff cwm ctfdump ctfconf pfctl +# ldomd ypldap sed nm lex fold ssh mandoc ksh ctags yacc cwm ctfdump ctfconf pfctl # libfuzzer candidates: # chio @@ -47,21 +45,30 @@ afl_exec () return fi - _app_dir=$(basename "$_path") - _run_cmd="cd $_path; CC=afl-gcc make; rm -rf in out; mkdir in out; cp /root/afl-static/$_app_dir/* in/; cp /root/afl-static/* .; $_cmd" + _app_name=$(basename "$_path") + _run_cmd="cd $_path; CC=afl-gcc make; rm -rf in out; mkdir in out; cp /root/afl-static/$_app_name/* in/; cp /root/afl-static/$_app_name.dict .; $_cmd" tmux new-window -d -n "$_path" "$_run_cmd" tmux set-window-option -t "$_path" remain-on-exit on + echo "$_app_name started" } tmux new-session -d -c $SRC_BASE -s afl-run || true -afl_exec "bin/ed" "afl-fuzz -i in -o out ./ed @@ < ed.text" # KNOWN ISSUE with disk space -afl_exec "sbin/dhclient" "afl-fuzz -i in -o out ./dhclient -n -c @@ em0" # FIXME: dict +afl_exec "bin/ed" "afl-fuzz -i in -o out ./ed @@ < POSIX" +afl_exec "sbin/dhclient" "afl-fuzz -i in -o out ./dhclient -n -c @@ em0" +afl_exec "sbin/dhclient" "afl-fuzz -i in -o out -x dhclient.dict ./dhclient -n -c @@ em0" afl_exec "sbin/isakmpd" "afl-fuzz -i in -o out ./isakmpd -n -f @@" # FIXME: dict afl_exec "sbin/iked" "afl-fuzz -i in -o out ./iked -n -f @@" # FIXME: dict afl_exec "usr.bin/cap_mkdb" "afl-fuzz -i in -o out ./cap_mkdb -f outfile @@" -afl_exec "usr.bin/doas" "afl-fuzz -i in -o out ./doas -C @@ ls" # FIXME: dict +afl_exec "usr.bin/dc" "afl-fuzz -i in -o out ./dc -x @@" # FIXME: dict +afl_exec "usr.bin/deroff" "afl-fuzz -i in -o out ./deroff @@" # FIXME: dict +afl_exec "usr.bin/last" "afl-fuzz -i in -o out ./last -f @@" # FIXME: dict +afl_exec "usr.bin/m4" "afl-fuzz -i in -o out ./m4 @@" # FIXME: dict +# FIXME: afl_exec "usr.bin/bc" "afl-fuzz -i in -o out ./bc -d < @@" +afl_exec "usr.bin/doas" "afl-fuzz -i in -o out ./doas -C @@ ls" +afl_exec "usr.bin/doas" "afl-fuzz -i in -o out -x doas.dict ./doas -C @@ ls" afl_exec "usr.bin/make" "afl-fuzz -i in -o out ./make -q -f @@" +afl_exec "usr.bin/patch" "afl-fuzz -i in -o out ./patch -p1 -R README @@" afl_exec "usr.bin/kdump" "afl-fuzz -i in -o out ./kdump -f @@" afl_exec "usr.bin/keynote" "afl-fuzz -i in -o out ./keynote verify -e @@" # FIXME: corpus afl_exec "usr.bin/keynote" "afl-fuzz -i in -o out ./keynote verify -l @@" # FIXME: corpus @@ -76,7 +83,8 @@ afl_exec "usr.sbin/httpd" "afl-fuzz -i in -o out ./htt afl_exec "usr.sbin/ifstated" "afl-fuzz -i in -o out ./ifstated -n -f @@" # FIXME: dict afl_exec "usr.sbin/ldapd" "afl-fuzz -i in -o out ./ldapd -n -f @@" # FIXME: dict afl_exec "usr.sbin/ldpd" "afl-fuzz -i in -o out ./ldpd -n -f @@" # FIXME: dict -afl_exec "usr.sbin/mtree" "afl-fuzz -i in -o out ./mtree -f @@ -p /" # FIXME: dict +afl_exec "usr.sbin/mtree" "afl-fuzz -i in -o out ./mtree -f @@ -p /" +afl_exec "usr.sbin/mtree" "afl-fuzz -i in -o out -x mtree.dict ./mtree -f @@ -p /" afl_exec "usr.sbin/npppd" "afl-fuzz -i in -o out ./npppd/npppd -n -f @@" # FIXME: dict afl_exec "usr.sbin/ntpd" "afl-fuzz -i in -o out ./ntpd -n -f @@" # FIXME: dict afl_exec "usr.sbin/ospfd" "afl-fuzz -i in -o out ./ospfd -n -f @@" # FIXME: dict @@ -87,7 +95,9 @@ afl_exec "usr.sbin/ripd" "afl-fuzz -i in -o out ./ripd afl_exec "usr.sbin/sasyncd" "afl-fuzz -i in -o out ./sasyncd -n -c @@" # FIXME: dict afl_exec "usr.sbin/smtpd" "afl-fuzz -i in -o out ./smtpd/smtpd -n -f @@" # FIXME: dict afl_exec "usr.sbin/snmpd" "afl-fuzz -i in -o out ./snmpd -n -f @@" # FIXME: dict -afl_exec "usr.sbin/switchd" "afl-fuzz -i in -o out ./switchd -n -f @@" # FIXME: dict +afl_exec "usr.sbin/switchd" "afl-fuzz -i in -o out ./switchd -n -f @@" +afl_exec "usr.sbin/switchd" "afl-fuzz -i in -o out -x switchd.dict ./switchd -n -f @@" afl_exec "usr.sbin/tcpdump" "afl-fuzz -i in -o out ./tcpdump -r @@" afl_exec "usr.sbin/tcpdump" "afl-fuzz -i in -o out -f tcpdump.expression -- ./tcpdump -r in/sample.pcap -F @@" # FIXME: dict -afl_exec "usr.sbin/vmd" "afl-fuzz -i in -o out ./vmd -n -f @@" # FIXME: dict +afl_exec "usr.sbin/vmd" "afl-fuzz -i in -o out ./vmd -n -f @@" +afl_exec "usr.sbin/vmd" "afl-fuzz -i in -o out -x vmd.dict ./vmd -n -f @@" blob - /dev/null blob + e7b878c8654f7d363e9ad60bc4e074c7b5f18116 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t1.in @@ -0,0 +1,234 @@ +/* $OpenBSD: t1.in,v 1.1 2003/09/25 19:40:07 otto Exp $ */ + +/* + * Copyright (C) Caldera International Inc. 2001-2002. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code and documentation must retain the above + * copyright notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed or owned by Caldera + * International, Inc. + * 4. Neither the name of Caldera International, Inc. nor the names of other + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA + * INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE LIABLE FOR ANY DIRECT, + * INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/* + * @(#)bc.library 5.1 (Berkeley) 4/17/91 + */ + +scale = 20 +define e(x){ + auto a, b, c, d, e, g, t, w, y + + t = scale + scale = t + .434*x + 1 + + w = 0 + if(x<0){ + x = -x + w = 1 + } + y = 0 + while(x>2){ + x = x/2 + y = y + 1 + } + + a=1 + b=1 + c=b + d=1 + e=1 + for(a=1;1==1;a++){ + b=b*x + c=c*a+b + d=d*a + g = c/d + if(g == e){ + g = g/1 + while(y--){ + g = g*g + } + scale = t + if(w==1) return(1/g) + return(g/1) + } + e=g + } +} + +define l(x){ + auto a, b, c, d, e, f, g, u, s, t + if(x <=0) return(1-10^scale) + t = scale + + f=1 + scale = scale + scale(x) - length(x) + 1 + s=scale + while(x > 2){ + s = s + (length(x)-scale(x))/2 + 1 + if(s>0) scale = s + x = sqrt(x) + f=f*2 + } + while(x < .5){ + s = s + (length(x)-scale(x))/2 + 1 + if(s>0) scale = s + x = sqrt(x) + f=f*2 + } + + scale = t + length(f) - scale(f) + 1 + u = (x-1)/(x+1) + + scale = scale + 1.1*length(t) - 1.1*scale(t) + s = u*u + b = 2*f + c = b + d = 1 + e = 1 + for(a=3;1==1;a=a+2){ + b=b*s + c=c*a+d*b + d=d*a + g=c/d + if(g==e){ + scale = t + return(u*c/d) + } + e=g + } +} + +define s(x){ + auto a, b, c, s, t, y, p, n, i + t = scale + y = x/.7853 + s = t + length(y) - scale(y) + if(s=0) n = (x/(2*p)+1)/2 + if(x<0) n = (x/(2*p)-1)/2 + x = x - 4*n*p + if(n%2!=0) x = -x + + scale = t + length(1.2*t) - scale(1.2*t) + y = -x*x + a = x + b = 1 + s = x + for(i=3; 1==1; i=i+2){ + a = a*y + b = b*i*(i-1) + c = a/b + if(c==0){scale=t; return(s/1)} + s = s+c + } +} + +define c(x){ + auto t + t = scale + scale = scale+1 + x = s(x+2*a(1)) + scale = t + return(x/1) +} + +define a(x){ + auto a, b, c, d, e, f, g, s, t + if(x==0) return(0) + if(x==1) { + if(scale<52) { + return(.7853981633974483096156608458198757210492923498437764/1) + } + } + t = scale + f=1 + while(x > .5){ + scale = scale + 1 + x= -(1-sqrt(1.+x*x))/x + f=f*2 + } + while(x < -.5){ + scale = scale + 1 + x = -(1-sqrt(1.+x*x))/x + f=f*2 + } + s = -x*x + b = f + c = f + d = 1 + e = 1 + for(a=3;1==1;a=a+2){ + b=b*s + c=c*a+d*b + d=d*a + g=c/d + if(g==e){ + scale = t + return(x*c/d) + } + e=g + } +} + +define j(n,x){ + auto a,b,c,d,e,g,i,s,k,t + + t = scale + k = 1.36*x + 1.16*t - n + k = length(k) - scale(k) + if(k>0) scale = scale + k + + s= -x*x/4 + if(n<0){ + n= -n + x= -x + } + a=1 + c=1 + for(i=1;i<=n;i++){ + a=a*x + c = c*2*i + } + b=a + d=1 + e=1 + for(i=1;1;i++){ + a=a*s + b=b*i*(n+i) + a + c=c*i*(n+i) + g=b/c + if(g==e){ + scale = t + return(g/1) + } + e=g + } +} blob - /dev/null blob + eab50685a5a02e5f391428197736545ea0b1cc25 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t10.in @@ -0,0 +1,4 @@ +for (;;) { +} +for (;a<1;) +for (a=1;a<1;) blob - /dev/null blob + afd46f4ab373e4950c4fad6919de94b543f2796a (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t11.in @@ -0,0 +1,12 @@ +for (i = 0; i < 5; i++) { + if (i > 0) { + if (i < 3) { + "i > 0 && i < 3" + } else { + "i > 0 && i >= 3" + } + } else "i == 0" + " " + if (i == 0) "0 " else if (i == 1) "1 " else "* " + i +} blob - /dev/null blob + 85c9355a5c577ff86e94cc617adf283a897c7c96 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t12.in @@ -0,0 +1,5 @@ +print 1,.,1+1,"",3 +"X\Y" +print "\a\b\t\f\n\q\ra\\b[] +foo" +. blob - /dev/null blob + 55ebdb829b7a3bb475e03cb656c3df811df6d46d (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t13.in @@ -0,0 +1,11 @@ +#line comment +# +define f() { + return + return 1+2 + return (1+2) + return () +} +define f() +{ +} blob - /dev/null blob + 8f017150733af0dbebad7982ca4928a45cf1edae (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t14.in @@ -0,0 +1,28 @@ +if ((0 == 0)) "ok" else "nok" +if ((1 == 0)) "nok" else "ok" +if ((0 == 1)) "nok" else "ok" +print "\n" +if ((0 != 0)) "nok" else "ok" +if ((1 != 0)) "ok" else "nok" +if ((0 != 1)) "ok" else "nok" +print "\n" +if ((0 == 0)) "ok" else "nok" +if ((1 == 0)) "nok" else "ok" +if ((0 == 1)) "nok" else "ok" +print "\n" +if ((0 < 1)) "ok" else "nok" +if ((1 < 0)) "nok" else "ok" +if ((1 < 1)) "nok" else "ok" +print "\n" +if ((0 <= 1)) "ok" else "nok" +if ((1 <= 0)) "nok" else "ok" +if ((1 <= 1)) "ok" else "nok" +print "\n" +if ((0 > 1)) "nok" else "ok" +if ((1 > 0)) "ok" else "nok" +if ((1 > 1)) "nok" else "ok" +print "\n" +if ((0 >= 1)) "nok" else "ok" +if ((1 >= 0)) "ok" else "nok" +if ((1 >= 1)) "ok" else "nok" +print "\n" blob - /dev/null blob + 692d88b6216021c8f99912b4e0a0f967b6ae85a6 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t15.in @@ -0,0 +1,24 @@ +if (1 && 2) "ok1" +if (0 && 2) "nok2" else "ok2" +if (3 && 0) "nok3" else "ok3" +if (0 && 0) "nok4" else "ok4" +if (0 && 0 && 0) "nok5" else "ok5" +if (0 && 1 && 0) "nok6" else "ok6" +if (1 && 1 && 1) "ok7" else "nok7" +print "\n" +define f() { + "f" +} +define g() { + "g" + return 1 +} +if (f() && g()) { + "nok8" +} else "ok8" +if (!f() && g()) { + "ok9" +} else "nok9" +print "\n" +if (1 < 2 && 3 < 4) "ok10" else "nok10" +print "\n" blob - /dev/null blob + eef924980f3bb276b1b06d98f6faa5f7a84f6a9d (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t16.in @@ -0,0 +1,24 @@ +if (0 || 0) "nok1" else "ok1" +if (1 || 0) "ok2" else "nok2" +if (0 || 1) "ok3" else "nok3" +if (1 || 1) "ok4" else "nok4" +print "\n" + +define f() { + "f"; + return 0 +} +define g() { + "g"; + return 0 +} +define h() { + "h"; + return 1 +} + +if (f() || g() || h()) "ok5" else "nok5" +if (f() || g() || !h()) "nok6" else "ok6" +if (f() || !h() || g()) "nok7" else "ok7" + +print "\n" blob - /dev/null blob + 2a1b242cf98a750da0de798d9968163fa4d77517 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t17.in @@ -0,0 +1,566 @@ +a=97 +b=98 +c=99 +d=100 +e=101 +f=102 +g=103 +h=104 +i=105 +j=106 +k=107 +l=108 +m=109 +n=110 +o=111 +p=112 +q=113 +r=114 +s=115 +t=116 +u=117 +v=118 +w=119 +x=120 +y=121 +z=122 +_=123 +a0=0 +a1=1 +a2=2 +a3=3 +a4=4 +a5=5 +a6=6 +a7=7 +a8=8 +a9=9 +a10=10 +a11=11 +a12=12 +a13=13 +a14=14 +a15=15 +a16=16 +a17=17 +a18=18 +a19=19 +a20=20 +a21=21 +a22=22 +a23=23 +a24=24 +a25=25 +a26=26 +a27=27 +a28=28 +a29=29 +a30=30 +a31=31 +a32=32 +a33=33 +a34=34 +a35=35 +a36=36 +a37=37 +a38=38 +a39=39 +a40=40 +a41=41 +a42=42 +a43=43 +a44=44 +a45=45 +a46=46 +a47=47 +a48=48 +a49=49 +a50=50 +a51=51 +a52=52 +a53=53 +a54=54 +a55=55 +a56=56 +a57=57 +a58=58 +a59=59 +a60=60 +a61=61 +a62=62 +a63=63 +a64=64 +a65=65 +a66=66 +a67=67 +a68=68 +a69=69 +a70=70 +a71=71 +a72=72 +a73=73 +a74=74 +a75=75 +a76=76 +a77=77 +a78=78 +a79=79 +a80=80 +a81=81 +a82=82 +a83=83 +a84=84 +a85=85 +a86=86 +a87=87 +a88=88 +a89=89 +a90=90 +a91=91 +a92=92 +a93=93 +a94=94 +a95=95 +a96=96 +a97=97 +a98=98 +a99=99 +a100=100 +a101=101 +a102=102 +a103=103 +a104=104 +a105=105 +a106=106 +a107=107 +a108=108 +a109=109 +a110=110 +a111=111 +a112=112 +a113=113 +a114=114 +a115=115 +a116=116 +a117=117 +a118=118 +a119=119 +a120=120 +a121=121 +a122=122 +a123=123 +a124=124 +a125=125 +a126=126 +a127=127 +a128=128 +a129=129 +a130=130 +a131=131 +a132=132 +a133=133 +a134=134 +a135=135 +a136=136 +a137=137 +a138=138 +a139=139 +a140=140 +a141=141 +a142=142 +a143=143 +a144=144 +a145=145 +a146=146 +a147=147 +a148=148 +a149=149 +a150=150 +a151=151 +a152=152 +a153=153 +a154=154 +a155=155 +a156=156 +a157=157 +a158=158 +a159=159 +a160=160 +a161=161 +a162=162 +a163=163 +a164=164 +a165=165 +a166=166 +a167=167 +a168=168 +a169=169 +a170=170 +a171=171 +a172=172 +a173=173 +a174=174 +a175=175 +a176=176 +a177=177 +a178=178 +a179=179 +a180=180 +a181=181 +a182=182 +a183=183 +a184=184 +a185=185 +a186=186 +a187=187 +a188=188 +a189=189 +a190=190 +a191=191 +a192=192 +a193=193 +a194=194 +a195=195 +a196=196 +a197=197 +a198=198 +a199=199 +a200=200 +a201=201 +a202=202 +a203=203 +a204=204 +a205=205 +a206=206 +a207=207 +a208=208 +a209=209 +a210=210 +a211=211 +a212=212 +a213=213 +a214=214 +a215=215 +a216=216 +a217=217 +a218=218 +a219=219 +a220=220 +a221=221 +a222=222 +a223=223 +a224=224 +a225=225 +a226=226 +a227=227 +a228=228 +a229=229 +a230=230 +a231=231 +a232=232 +a233=233 +a234=234 +a235=235 +a236=236 +a237=237 +a238=238 +a239=239 +a240=240 +a241=241 +a242=242 +a243=243 +a244=244 +a245=245 +a246=246 +a247=247 +a248=248 +a249=249 +a250=250 +a251=251 +a252=252 +a253=253 +a254=254 +a255=255 +a +b +c +d +e +f +g +h +i +j +k +l +m +n +o +p +q +r +s +t +u +v +w +x +y +z +_ +a0 +a1 +a2 +a3 +a4 +a5 +a6 +a7 +a8 +a9 +a10 +a11 +a12 +a13 +a14 +a15 +a16 +a17 +a18 +a19 +a20 +a21 +a22 +a23 +a24 +a25 +a26 +a27 +a28 +a29 +a30 +a31 +a32 +a33 +a34 +a35 +a36 +a37 +a38 +a39 +a40 +a41 +a42 +a43 +a44 +a45 +a46 +a47 +a48 +a49 +a50 +a51 +a52 +a53 +a54 +a55 +a56 +a57 +a58 +a59 +a60 +a61 +a62 +a63 +a64 +a65 +a66 +a67 +a68 +a69 +a70 +a71 +a72 +a73 +a74 +a75 +a76 +a77 +a78 +a79 +a80 +a81 +a82 +a83 +a84 +a85 +a86 +a87 +a88 +a89 +a90 +a91 +a92 +a93 +a94 +a95 +a96 +a97 +a98 +a99 +a100 +a101 +a102 +a103 +a104 +a105 +a106 +a107 +a108 +a109 +a110 +a111 +a112 +a113 +a114 +a115 +a116 +a117 +a118 +a119 +a120 +a121 +a122 +a123 +a124 +a125 +a126 +a127 +a128 +a129 +a130 +a131 +a132 +a133 +a134 +a135 +a136 +a137 +a138 +a139 +a140 +a141 +a142 +a143 +a144 +a145 +a146 +a147 +a148 +a149 +a150 +a151 +a152 +a153 +a154 +a155 +a156 +a157 +a158 +a159 +a160 +a161 +a162 +a163 +a164 +a165 +a166 +a167 +a168 +a169 +a170 +a171 +a172 +a173 +a174 +a175 +a176 +a177 +a178 +a179 +a180 +a181 +a182 +a183 +a184 +a185 +a186 +a187 +a188 +a189 +a190 +a191 +a192 +a193 +a194 +a195 +a196 +a197 +a198 +a199 +a200 +a201 +a202 +a203 +a204 +a205 +a206 +a207 +a208 +a209 +a210 +a211 +a212 +a213 +a214 +a215 +a216 +a217 +a218 +a219 +a220 +a221 +a222 +a223 +a224 +a225 +a226 +a227 +a228 +a229 +a230 +a231 +a232 +a233 +a234 +a235 +a236 +a237 +a238 +a239 +a240 +a241 +a242 +a243 +a244 +a245 +a246 +a247 +a248 +a249 +a250 +a251 +a252 +a253 +a254 +a255 blob - /dev/null blob + 1f989a228b816fcd11a5c1ab4383b0fc52064455 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t18.in @@ -0,0 +1,45 @@ +/* $OpenBSD: t18.in,v 1.1 2003/12/09 12:49:01 otto Exp $ */ +/* + * Copyright (c) 2003 Amit Singh + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/* + * The Towers Of Hanoi + * bc version + * http://hanoi.kernelthread.com + */ + +define moveit(i, j) { + print "move " + print i + print " --> " + print j + print "\n" +} + +define dohanoi(n, h, d, o) { + if (n > 0) { + silence = dohanoi(n-1, h, o, d) + silence = moveit(h, d) + silence = dohanoi(n-1, o, d, h) + } +} + +define hanoi(n) { + silence = dohanoi(n, 1, 3, 2) +} + +hanoi(5) + blob - /dev/null blob + 01b746edcb0f034ced43b0cef9a51fa2a4ac262a (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t2.in @@ -0,0 +1,5 @@ +while (1) { + while (0) break; + if (a == 1) break; + if (a = 2) if (a = 3) break; +} blob - /dev/null blob + 851f80f663042ac072ab23cf706e5d82912343d7 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t3.in @@ -0,0 +1,4 @@ +for (i = 0; i < 10; i++) { + a[i] = 3; + if (x % 3 == 0) break; +} blob - /dev/null blob + d4b13575c5d27352898e606bd885b1f28069f69c (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t4.in @@ -0,0 +1,6 @@ +while (0) while(1) while(2) while(3) while(4) while(5) while(6) while(7) { + while (8) while (9) while (10) while (11) while(12) while(13) { + while(14) while(15) { + } + } +} blob - /dev/null blob + c02b1b6c5e75fdc4bfa1b52c89120553fc24b342 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t5.in @@ -0,0 +1,7 @@ +define f(a, b, c[]) { + auto d,e,f; + a=1; + return (8); +} + +f(1,2,g[]) blob - /dev/null blob + 9a196752062f22bace066445b4c14483ce86d8e4 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t6.in @@ -0,0 +1,3 @@ +if (1) +for (i=1; i <= 10; i++) +while (1>0) blob - /dev/null blob + e29e70f0c43ea8b1fa412a395f264b80c07477ac (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t7.in @@ -0,0 +1,6 @@ +a += 1 +b -= 2 +c *= 3 +d /= 4 +e ^= 5 +f %= 6 blob - /dev/null blob + b2f1c180d675f48d82f058990281f06e9d351dbb (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t8.in @@ -0,0 +1,6 @@ +while (a < 10) { + a += 1; + if (a == 2) if (1) continue; + if (a == 7) if (1) continue; + a +} blob - /dev/null blob + 7556e18b313c52f11442786566aead3f45e78de5 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/bc/t9.in @@ -0,0 +1,19 @@ +define x() { + for (i = 0; i < 10; i++) { + i + "a "; + if (i == 5) { + "b "; + continue + } + "aaaaMbbbb" + a=0; + while (a < 4) { + a += 1; + if (a == 2) if (1) continue + "c "; a + } + } +} + +x() blob - /dev/null blob + b503b70174351a5709360d890faf4a2abfdf6115 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t1.in @@ -0,0 +1,45 @@ +[1234]Xp s. +12.345Xp s. +[]Xp s. +1Xp s. +_1Xp s. +3.99999999999999Xp s. +_3.99999999999999Xp s. +[]Zp s. +[aap]Zp s. +[aapnoot]Zp s. +0Zp s. +1Zp s. +_1Zp s. +3.99999999999999Zp s. +_3.99999999999999Zp s. +_1 3^p s. +_1 3.0^p s. +2.0 10^p s. +100000000000000000000000000000000000000000000000000000000000000000000 99^ps. +30k +10000000000000000000000000000000000000vp s. +0.3219832098321890321903903218321098321098213vp s. +[ps.]sa +1 0 1 +a +4 6 7 +!>a +5 8 9 +=a +6 10 10 +=a +7 11 11 +!=a +8 12 13 +!=a +c +[OK] 0:a 0Sa [NOT OK] 0:a La 0;ap +[lip1+sili10>a]sa0silax +c +zp s. +1 2 3 z ps. blob - /dev/null blob + fc4d11d24220d5f022a79f3fe537ef0311f4cec7 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t10.in @@ -0,0 +1,11 @@ +[1J]sM +1plMx +!echo M aap +lMp +[aMa] +0 0!=M +1p +0 0!=MeM +1p +M +2p blob - /dev/null blob + 5af86c77c4b3b411a69d43566f144700d9427923 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t11.in @@ -0,0 +1,8 @@ +[[IF]p]sa +[[ELSE]p]sb +0 1aeb +0 0=aeb +0 1=aeb +1 0!=aeb +0 0!=aeb blob - /dev/null blob + b3a0faabaac6baeef8228d6564085df5d8c4997d (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t12.in @@ -0,0 +1,9 @@ +1 2 rf +[a] [b] rf +[c] 3 rf +c +r +1 +r +2 +rf blob - /dev/null blob + efd58282ed4ee83f3278869d85b65da465343ce7 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t13.in @@ -0,0 +1,15 @@ +# Comment +# + +1n +[foo]n +[]an +[a]an +[bc]an +0an +32an +100an +100000100an +[lidan1+dsi127>a]sa +32silax +10an blob - /dev/null blob + cd4a5da828f154c2e178cdf30e16692ea1cf14aa (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t14.in @@ -0,0 +1,78 @@ +[[ok]P]s0 +[[nok]P]s1 + 0 0G 0!=0e1 +[[nok]P]s0 +[[ok]P]s1 + 1 0G 0!=0e1 +[[nok]P]s0 +[[ok]P]s1 + 0 1G 0!=0e1 +[ +]n +[[nok]P]s0 +[[ok]P]s1 + 0 0GN 0!=0e1 +[[ok]P]s0 +[[nok]P]s1 + 1 0GN 0!=0e1 +[[ok]P]s0 +[[nok]P]s1 + 0 1GN 0!=0e1 +[ +]n +[[ok]P]s0 +[[nok]P]s1 + 0 0G 0!=0e1 +[[nok]P]s0 +[[ok]P]s1 + 1 0G 0!=0e1 +[[nok]P]s0 +[[ok]P]s1 + 0 1G 0!=0e1 +[ +]n +[[ok]P]s0 +[[nok]P]s1 + 1 0( 0!=0e1 +[[nok]P]s0 +[[ok]P]s1 + 0 1( 0!=0e1 +[[nok]P]s0 +[[ok]P]s1 + 1 1( 0!=0e1 +[ +]n +[[ok]P]s0 +[[nok]P]s1 + 1 0{ 0!=0e1 +[[nok]P]s0 +[[ok]P]s1 + 0 1{ 0!=0e1 +[[ok]P]s0 +[[nok]P]s1 + 1 1{ 0!=0e1 +[ +]n +[[nok]P]s0 +[[ok]P]s1 + 0 1( 0!=0e1 +[[ok]P]s0 +[[nok]P]s1 + 1 0( 0!=0e1 +[[nok]P]s0 +[[ok]P]s1 + 1 1( 0!=0e1 +[ +]n +[[nok]P]s0 +[[ok]P]s1 + 0 1{ 0!=0e1 +[[ok]P]s0 +[[nok]P]s1 + 1 0{ 0!=0e1 +[[ok]P]s0 +[[nok]P]s1 + 1 1{ 0!=0e1 +[ +]n +q \ No newline at end of file blob - /dev/null blob + bf586a6d4712e2b9052d04c0449c84509325c544 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t15.in @@ -0,0 +1,55 @@ +[s. 2]s1 +[[ok1]P]s0 + 1d0!=1 0!=0 +[s. 2]s1 +[[nok2]P]s0 +[[ok2]P]s2 + 0d0!=1 0!=0e2 +[s. 0]s1 +[[nok3]P]s0 +[[ok3]P]s2 + 3d0!=1 0!=0e2 +[s. 0]s1 +[[nok4]P]s0 +[[ok4]P]s2 + 0d0!=1 0!=0e2 +[s. 0]s1 +[s. 0]s2 +[[nok5]P]s0 +[[ok5]P]s3 + 0d0!=1d0!=2 0!=0e3 +[s. 1]s1 +[s. 0]s2 +[[nok6]P]s0 +[[ok6]P]s3 + 0d0!=1d0!=2 0!=0e3 +[s. 1]s1 +[s. 1]s2 +[[ok7]P]s0 +[[nok7]P]s3 + 1d0!=1d0!=2 0!=0e3 +[ +]n +[[f]P0 1Q]s + + +[[g]P 1 1Q0 1Q]s + + +[s.lx]s1 +[[nok8]P]s0 +[[ok8]P]s2 +lxd0!=1 0!=0e2 +[s.lx]s1 +[[ok9]P]s0 +[[nok9]P]s2 +lxNd0!=1 0!=0e2 +[ +]n +[s. 4 3(]s1 +[[ok10]P]s0 +[[nok10]P]s2 + 2 1(d0!=1 0!=0e2 +[ +]n +q \ No newline at end of file blob - /dev/null blob + 1b1f998a7b46eaed51e00382ba4668fec22714d2 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t16.in @@ -0,0 +1,48 @@ +[s. 0]s1 +[[nok1]P]s0 +[[ok1]P]s2 + 0d0=1 0!=0e2 +[s. 0]s1 +[[ok2]P]s0 +[[nok2]P]s2 + 1d0=1 0!=0e2 +[s. 1]s1 +[[ok3]P]s0 +[[nok3]P]s2 + 0d0=1 0!=0e2 +[s. 1]s1 +[[ok4]P]s0 +[[nok4]P]s2 + 1d0=1 0!=0e2 +[ +]n + +[[f]P 0 1Q0 1Q]s + + +[[g]P 0 1Q0 1Q]s + + +[[h]P 1 1Q0 1Q]s + + + +[s.lx]s1 +[s.lx]s2 +[[ok5]P]s0 +[[nok5]P]s3 +lxd0=1d0=2 0!=0e3 +[s.lx]s1 +[s.lxN]s2 +[[nok6]P]s0 +[[ok6]P]s3 +lxd0=1d0=2 0!=0e3 +[s.lxN]s1 +[s.lx]s2 +[[nok7]P]s0 +[[ok7]P]s3 +lxd0=1d0=2 0!=0e3 + +[ +]n +q \ No newline at end of file blob - /dev/null blob + 8236bebfaee5a0d68afe33e6477a44a9627e50c4 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t17.in @@ -0,0 +1,3 @@ +1 2Rf +Rf +[foo][bar]rRf blob - /dev/null blob + 38a9e3f29e28d3446de659004e94334411069689 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t18.in @@ -0,0 +1,7 @@ +0;ap +100;a; +99 0:a +100 100:a +0;ap +100;ap + blob - /dev/null blob + 6bda7f3e82f1bc23baa34881ac58ee92d44a44db (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t19.in @@ -0,0 +1,570 @@ + 97sa + 98sb + 99sc + 100sd + 101se + 102sf + 103sg + 104sh + 105si + 106sj + 107sk + 108sl + 109sm + 110sn + 111so + 112sp + 113sq + 114sr + 115ss + 116st + 117su + 118sv + 119sw + 120sx + 121sy + 122sz + 0s + 1s + 2s + 3s + 4s + 5s + 6s + 7s + 8s + 9s + + 10s + 11s + 12s + 13s + 14s + 15s + 16s + 17s + 18s + 19s + 20s + 21s + 22s + 23s + 24s + 25s + 26s + 27s + 28s + 29s + 30s + 31s + 32s! + 33s" + 34s# + 35s$ + 36s% + 37s& + 38s' + 39s( + 40s) + 41s* + 42s+ + 43s, + 44s- + 45s. + 46s/ + 47s0 + 48s1 + 49s2 + 50s3 + 51s4 + 52s5 + 53s6 + 54s7 + 55s8 + 56s9 + 57s: + 58s; + 59s< + 60s= + 61s> + 62s? + 63s@ + 64sA + 65sB + 66sC + 67sD + 68sE + 69sF + 70sG + 71sH + 72sI + 73sJ + 74sK + 75sL + 76sM + 77sN + 78sO + 79sP + 80sQ + 81sR + 82sS + 83sT + 84sU + 85sV + 86sW + 87sX + 88sY + 89sZ + 90s^ + 91s_ + 92s` + 93sa + 94sb + 95sc + 96sd + 97se + 98sf + 99sg + 100sh + 101si + 102sj + 103sk + 104sl + 105sm + 106sn + 107so + 108sp + 109sq + 110sr + 111ss + 112st + 113su + 114sv + 115sw + 116sx + 117sy + 118sz + 119s{ + 120s| + 121s} + 122s~ + 123s + 124s + 125s + 126s + 127s + 128s + 129s + 130s + 131s + 132s + 133s + 134s + 135s + 136s + 137s + 138s + 139s + 140s + 141s + 142s + 143s + 144s + 145s + 146s + 147s + 148s + 149s + 150s + 151s + 152s + 153s + 154s + 155s + 156s + 157s + 158s + 159s + 160s + 161s + 162s + 163s + 164s + 165s + 166s + 167s + 168s + 169s + 170s + 171s + 172s + 173s + 174s + 175s + 176s + 177s + 178s + 179s + 180s + 181s + 182s + 183s + 184s + 185s + 186s + 187s + 188s + 189s + 190s + 191s + 192s + 193s + 194s + 195s + 196s + 197s + 198s + 199s + 200s + 201s + 202s + 203s + 204s + 205s + 206s + 207s + 208s + 209s + 210s + 211s + 212s + 213s + 214s + 215s + 216s + 217s + 218s + 219s + 220s + 221s + 222s + 223s + 224s + 225s + 226s + 227s + 228s + 229s + 230s + 231s + 232s + 233s + 234s + 235s + 236s + 237s + 238s + 239s + 240s + 241s + 242s + 243s + 244s + 245s + 246s + 247s + 248s + 249s + 250s + 251s + 252s + 253s + 254s + 255s + 256s +laps. +lbps. +lcps. +ldps. +leps. +lfps. +lgps. +lhps. +lips. +ljps. +lkps. +llps. +lmps. +lnps. +lops. +lpps. +lqps. +lrps. +lsps. +ltps. +lups. +lvps. +lwps. +lxps. +lyps. +lzps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +l ps. +l +ps. +l ps. +l ps. +l +ps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +l ps. +l!ps. +l"ps. +l#ps. +l$ps. +l%ps. +l&ps. +l'ps. +l(ps. +l)ps. +l*ps. +l+ps. +l,ps. +l-ps. +l.ps. +l/ps. +l0ps. +l1ps. +l2ps. +l3ps. +l4ps. +l5ps. +l6ps. +l7ps. +l8ps. +l9ps. +l:ps. +l;ps. +lps. +l?ps. +l@ps. +lAps. +lBps. +lCps. +lDps. +lEps. +lFps. +lGps. +lHps. +lIps. +lJps. +lKps. +lLps. +lMps. +lNps. +lOps. +lPps. +lQps. +lRps. +lSps. +lTps. +lUps. +lVps. +lWps. +lXps. +lYps. +lZps. +l^ps. +l_ps. +l`ps. +laps. +lbps. +lcps. +ldps. +leps. +lfps. +lgps. +lhps. +lips. +ljps. +lkps. +llps. +lmps. +lnps. +lops. +lpps. +lqps. +lrps. +lsps. +ltps. +lups. +lvps. +lwps. +lxps. +lyps. +lzps. +l{ps. +l|ps. +l}ps. +l~ps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +lps. +q blob - /dev/null blob + f9507950c9bd12d0b71c593f94e09bbb3b3c1e1d (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t2.in @@ -0,0 +1,3 @@ +[Adapted from a dc example by Michel Charpentier, see + http://www.cs.unh.edu/~charpov/Programming/DC/ ]s. +10234252[p]s2[lip/dli%0=1dvsr]s12sid2%0=13sidvsr[dli%0=1lrli2+dsi!>.]ds.xd1<2 blob - /dev/null blob + 9e4a6e6a86130448833b5430b05b7fad8a626df6 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t20.in @@ -0,0 +1,100 @@ +# $OpenBSD: t20.in,v 1.1 2003/12/09 12:46:32 otto Exp $ +# +# Copyright (c) 2003 Amit Singh +# +# Permission to use, copy, modify, and distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# +# +# The Towers Of Hanoi +# dc (Unix Desk Calculator) version +# http://hanoi.kernelthread.com +# + +[ # move(from, to) + n # print from + [ --> ]n # print " --> " + p # print to\n + sw # p doesn't pop, so get rid of the value +]sm + +[ # init(n) + sw # tuck n away temporarily + 9 # sentinel as bottom of stack + lw # bring n back + 1 # "from" tower's label + 3 # "to" tower's label + 0 # processed marker +]si + +[ # Move() + lt # push to + lf # push from + lmx # call move(from, to) +]sM + +[ # code block + ln # push n + lf # push from + lt # push to + 1 # push processed marker 1 + ln # push n + 1 # push 1 + - # n - 1 + lf # push from + ll # push left + 0 # push processed marker 0 +]sd + +[ # code block + ln # push n + 1 # push 1 + - # n - 1 + ll # push left + lt # push to + 0 # push processed marker 0 +]se + +[ # code block + ln 1 =M + ln 1 !=d +]sx + +[ # code block + lMx + lex +]sy + +[ # quit() + q # exit the program +]sq + +[ # run() + d 9 =q # if stack empty, quit() + sp # processed + st # to + sf # from + sn # n + 6 # + lf # + - # + lt # + - # 6 - from - to + sl # + lp 0 =x # + lp 0 !=y # + lrx # loop +]sr + +5lix # init(n) +lrx # run() + blob - /dev/null blob + ee95a9ca9436ec793cb8d1c24c68fceacf612f66 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t21.in @@ -0,0 +1,64 @@ + + + + + + + 20k +[ 0lx-sx 1sw]s0 +[lx 2/sxly 1+sylx 2<1]s1 +[lglg*sglyd1-sy 0!=4]s4 +[ 1lg/Lxs.Las.Lbs.Lcs.Lds.Les.Lgs.Lts.Lws.Lys. 4Q]s5 +[lg 1/sglyd1-sy 0!=4 ltklw 1=5 lg 1/Lxs.Las.Lbs.Lcs.Lds.Les.Lgs.Lts.Lws.Lys. 3Q]s3 +[lblx*sblcla*lb+scldla*sdlcld/sglgle=3 lgselad1+sas. 1 1=2]s2 +[0Sy0Sw0St0Sg0Se0Sd0Sc0Sb0SaSxKstlt .434lx*+ 1+k 0swlx 0>0 0sylx 2<1 1sa 1sblbsc 1sd 1se 1dsas. 1 1=2 Lxs.Las.Lbs.Lcs.Lds.Les.Lgs.Lts.Lws.Lys.0 1Q]s + + + +[ 1 10K^-Lxs.Las.Lbs.Lcs.Lds.Les.Lfs.Lgs.Lus.Lss.Lts. 2Q]s6 +[lsk]s8 +[lslxZlxX- 2/+ 1+ssls 0<8 lxvsxlf 2*sflx 2<7]s7 +[lsk]s: +[lslxZlxX- 2/+ 1+ssls 0<: lxvsxlf 2*sflx .5>9]s9 +[ltklulc*ld/Lxs.Las.Lbs.Lcs.Lds.Les.Lfs.Lgs.Lus.Lss.Lts. 3Q]s< +[lbls*sblcla*ldlb*+scldla*sdlcld/sglgle=< lgsela 2+dsas. 1 1=;]s; +[0St0Ss0Su0Sg0Sf0Se0Sd0Sc0Sb0SaSxlx 0!<6 Kst 1sfKlxX+lxZ- 1+kKsslx 2<7 lx .5>9 ltlfZ+lfX- 1+klx 1-lx 1+/suK 1.1ltZ*+ 1.1ltX*-klulu*ss 2lf*sblbsc 1sd 1se 3dsas. 1 1=; Lxs.Las.Lbs.Lcs.Lds.Les.Lfs.Lgs.Lus.Lss.Lts.0 1Q]s + + + +[ltss]s= +[lx 2lp*/ 1+ 2/sn]s> +[lx 2lp*/ 1- 2/sn]s? +[ 0lx-sx]s@ +[ltkls 1/Lxs.Las.Lbs.Lcs.Lss.Lts.Lys.Lps.Lns.Lis. 3Q]sB +[laly*salbli*li 1-*sblalb/sclc 0=B lslc+ssli 2+dsis. 1 1=A]sA +[0Si0Sn0Sp0Sy0St0Ss0Sc0Sb0SaSxKstlx .7853/syltlyZ+lyX-sslslt>= lsk 1lxsp 0klx 0!>> lx 0>? lx 4ln*lp*-sxln 2% 0!=@ lt 1.2lt*Z+ 1.2lt*X-k 0lx-lx*sylxsa 1sblxss 3dsis. 1 1=A Lxs.Las.Lbs.Lcs.Lss.Lts.Lys.Lps.Lns.Lis.0 1Q]s + + + +[0StSxKstK 1+klx 2 1lx*+lxsxltklx 1/Lxs.Lts. 1QLxs.Lts.0 1Q]s + + + +[ 0Lxs.Las.Lbs.Lcs.Lds.Les.Lfs.Lgs.Lss.Lts. 2Q]sC +[ .7853981633974483096156608458198757210492923498437764 1/Lxs.Las.Lbs.Lcs.Lds.Les.Lfs.Lgs.Lss.Lts. 3Q]sE +[K 52>E ]sD +[K 1+k 0 1 1.lxlx*+v--lx/sxlf 2*sflx .5G]sG +[ltklxlc*ld/Lxs.Las.Lbs.Lcs.Lds.Les.Lfs.Lgs.Lss.Lts. 3Q]sI +[lbls*sblcla*ldlb*+scldla*sdlcld/sglgle=I lgsela 2+dsas. 1 1=H]sH +[0St0Ss0Sg0Sf0Se0Sd0Sc0Sb0SaSxlx 0=C lx 1=D Kst 1sflx .5G 0lx-lx*sslfsblfsc 1sd 1se 3dsas. 1 1=H Lxs.Las.Lbs.Lcs.Lds.Les.Lfs.Lgs.Lss.Lts.0 1Q]s + + + +[Klk+k]sJ +[ 0ln-sn 0lx-sx]sK +[lalx*salc 2*li*sclid1+sis.liln!K 1sa 1sc 1dsis.liln! +# +# Permission to use, copy, modify, and distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +[ Sing the classic '99 Bottles of Beer', using the Unix dc utility. ]sd +[ ]sd +[ Run this one by typing 'dc < bottles.dc' at the Unix prompt, where ]sd +[ bottles.dc is the file containing these lines. ]sd +[ ]sd +[ bottles of beer]sb[ on the wall]sw[,]sc +[take one down, pass it around]st[.]sp[no more]sk +[10lplwlbln1-10lclt10lclbln32lclwlbln]sl +[lzxPPPPlzxPPPPPPlzxPPPP]so[lkP]sx[dZselyxsd]su +[d10le1-dse^ /d10/10*-48+P le00 0sylx 2<1 1sa 1sblbsc 1sd 1se 1dsas. 1 1=2 Lxs.Las.Lbs.Lcs.Lds.Les.Lgs.Lts.Lws.Lys.0 1Q]sE +10lExps. +10.6lExps. + blob - /dev/null blob + 98657718a83e4f0f65ac7dfecf3a8b09397358db (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t6.in @@ -0,0 +1,3 @@ +[1ps.1Q3ps.]sa +[3ps.lax]sb +lbx blob - /dev/null blob + 416df939beef31a08e250f8a338c000e5071d3bf (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t7.in @@ -0,0 +1,5 @@ +[Program from http://www.cs.unh.edu/~charpov/Programming/DC/]s. +[The output produced by this test is the Jabberwocky poeam by Lewis Carol, + from "Through the Looking-Glass and What Alice Found There", 1872]s. +22208085721160815839326341402121883690522320029255552164456082082121507399131784888796775404393238740752073581292176033192975608648980579511790754074629932624904826033926771561352802702304711849306991432140783663141097741410673769879986682209343466281135283290275369909264160273176470124389744289584917009576579173596679560702849116170806711176042540325188738564140628164804618257135693047847192850818282310363304691273054958318318136191456275934310979155326791959077883445003166261104834773132040707456928546349673980840313948708349674193786434159922651000968311352206702569130007195445654084933953345626389764219705628257612293204376976748352217929337471880882231223685405877498688770919610871973453341673913923792234893241993439245115105190893660465508673064373840268054184063151225377582060655786260788736204677135397194609418373902725670020397378638535454535982247377168952102335040177207305844444366209308523996849245976720417612176719067483022960817121007244452665449784273243174997760034496193814960150784537785113589011725985900508524882770853637523676303240173952011467376200157457202234158542518689678707600958087139914974630505378072055818423497887022672894966264722482896163204923500950712750800537457664585469095374214293974296229117403664516032413259929513310658563843081832487569416683206341446732898062734501513714984552459725473478529038715898310732843126214088302700527765333188909878114118156328607905954179948741014531467629112351746391357169021505149742077359053197219166630939696390194435167157513452231104227665811363415438461304936968404285629177347016678518931947203796484167545101613670772251307345495413035233907657705241691280430994746768012380728375146653630623831838222282318165089162386341671976737726353273451886027886364291170031129520721957416004799824490011955162466021287535364309928388542132049900161052116530089934228815775998215778916104959359698408064987438386886161480778575982275751968826631954742887974749292068020577501261842082809483702986629865701617200056158514119921272726266484084142349717069035717802916618873448175705514451223911583066310022020808646584937752763866798004057371097500872885733222570967153949159920525516838117787583988167897342360101235912871520761154734770678309671549603175730098764310659277164535040418340982101759825495735066065501823775306294622701628580346350888711132078451931296748345416719473558304071712[d256%P256/d0<.]ds.x + blob - /dev/null blob + 0da53a55c51cd15a6b4efd7a619e893d0153d493 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t8.in @@ -0,0 +1,17 @@ +[S1S,Salaps. 0;,ps. 99 1:,Las.L,s.L1s.0 1Q]sF + + 13sa + 33 0:i + 44 1:i + + 77 0:c + 88 1:c + +lalilclFxps. + 2lclclFxps. + + 0;ips. + 1;ips. + 0;cps. + 1;cps. +q blob - /dev/null blob + 46437c066f1e1d807fee020f60ea2323a2298b9f (mode 644) --- /dev/null +++ tests/afl-fuzz/static/dc/t9.in @@ -0,0 +1,24 @@ +[10o[* ]Ppop]sb + +[[==== ]10oPp 2lbx 3 lbx 4 lbx 5lbx 6lbx 7 lbx 8lbx 9lbx 10lbx 16lbx +17 lbx 20lbx 99lbx 100lbx 101lbx 1000lbx 10000lbx 2 30^lbx +[==== +]Ps.]sa +0lax +1lax +10lax +100lax +1000lax +10000lax +_1lax +_10lax +_100lax +_1000lax +_10000lax +10.1lax +10.01lax +10.10lax +1024 +25lax +125lax +2.1 500^lax blob - /dev/null blob + e094cd48b1ce6e5d8ec8a6d60309147051d268bf (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/args-man.in @@ -0,0 +1,135 @@ +.\" $OpenBSD: man.in,v 1.5 2017/07/04 14:53:26 schwarze Exp $ +.TH ARGS-MAN 1 "November 19, 2014" +.SH NAME +args-man - arguments to man macros +.SH DESCRIPTION +standard unquoted: +.IB one two +text +.br +escaped blanks: +.IB one\ one two\ two +text +.br +escaped 'e' character: +.IB one\eone two +text +.br +.\"escaped backslash before blank: +.\"IB one\\ two +.\"text +.\"br +escaped backslash before 'e' character: +.IB one\\e two +text +.br +double inter-argument space: +.IB one two +text +.br +triple inter-argument space: +.IB one two +text +.br +single eol blank: +.IB one two +text +.br +double eol blank: +.IB one two +text +.br +triple eol blank: +.IB one two +text +.br +standard quoted: +.IB "one" "two" +text +.br +quoted quotes: +.IB "one""one" """two""" +text +.br +quoted whitespace: +.IB "one one" "two two" +text +.br +escaped 'e' characters: +.IB "one \e one" "\e" +text +.br +escaped backslash before blank: +.IB "one\\ one" "\\ " +text +.br +escaped backslash before 'e' character: +.IB "one\\eone" "\\e" +text +.br +double inter-argument space: +.IB "one one" "two two" +text +.br +triple inter-argument space: +.IB "one one" "two two" +text +.br +missing inter-argument space: +.IB "one one"two\ two +text +.br +single eol blank: +.IB "one one" "two two" +text +.br +double eol blank: +.IB "one one" "two two" +text +.br +triple eol blank: +.IB "one one" "two two" +text +.br +.\" Disabled for now because mandoc man(7) seems to +.\" mishandle trailing blanks in arguments, +.\" but that really isn't urgent to fix. +.ig +trailing blanks in arguments: +.IB "one " "two " +text +.br +.. +unterminated quotes: +.IB "one +text +.br +.IB one "two +text +.br +.ig +single trailing blank in unterminated quotes: +.IB "one +text +.br +.IB one "two +text +.br +double trailing blank in unterminated quotes: +.IB "one +text +.br +.IB one "two +text +.br +.. +tab after macro: +.IB one two +text +.br +escape sequence after macro: +.IB\(lqone two +text +.br +backslash at eol: +.IB one two\ blob - /dev/null blob + 87272c8104ba402857a7088ab125f173b5607ce5 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/args-mdoc.in @@ -0,0 +1,125 @@ +.\" $OpenBSD: mdoc.in,v 1.3 2017/07/04 14:53:26 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt ARGS-MDOC 1 +.Os +.Sh NAME +.Nm args-mdoc +.Nd arguments to mdoc macros +.Sh DESCRIPTION +standard unquoted: +.Fl one two +text +.br +escaped blanks: +.Fl one\ one two\ two +text +.br +escaped 'e' character: +.Fl one\eone two +text +.br +.\"escaped backslash before blank: +.\"Fl one\\ two +.\"text +.\"br +escaped backslash before 'e' character: +.Fl one\\e two +text +.br +double inter-argument space: +.Fl one two +text +.br +triple inter-argument space: +.Fl one two +text +.br +single eol blank: +.Fl one two +text +.br +double eol blank: +.Fl one two +text +.br +triple eol blank: +.Fl one two +text +.br +standard quoted: +.Fl "one" "two" +text +.br +quoted quotes: +.Fl "one""one" """two""" +text +.br +quoted whitespace: +.Fl "one one" "two two" +text +.br +escaped 'e' characters: +.Fl "one \e one" "\e" +text +.br +.\"escaped backslash before blank: +.\"Fl "one\\ one" "\\ " +.\"text +.\"br +.\"escaped backslash before 'e' character: +.\"Fl "one\\eone" "\\e" +.\"text +.\"br +double inter-argument space: +.Fl "one one" "two two" +text +.br +triple inter-argument space: +.Fl "one one" "two two" +text +.br +missing inter-argument space: +.Fl "one one"two\ two +text +.br +single eol blank: +.Fl "one one" "two two" +text +.br +double eol blank: +.Fl "one one" "two two" +text +.br +triple eol blank: +.Fl "one one" "two two" +text +.br +trailing blanks in arguments: +.Fl "one " "two " +text +.br +unterminated quotes: +.Fl "one +.Fl one "two +text +.br +single trailing blank in unterminated quotes: +.Fl "one +.Fl one "two +text +.br +double trailing blank in unterminated quotes: +.Fl "one +.Fl one "two +text +.br +tab after macro: +.Fl one two +text +.br +escape sequence after macro: +.Fl\(lqone two +text +.br +backslash at eol: +.Fl one two\ blob - /dev/null blob + 1089d0c2e39182bbdf475bf5e38f3178b34ab0b1 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/args-roff.in @@ -0,0 +1,72 @@ +.\" $OpenBSD: roff.in,v 1.5 2017/07/04 14:53:26 schwarze Exp $ +.TH ARGS-ROFF 1 "February 21, 2015" +.SH NAME +args-roff - arguments to roff macros +.SH DESCRIPTION +.de test +.BI (\\$1) "(\\$2)" +.br +.. +arguments containing quotes: +.test a"b a"b +.de test +(\\$1) (\\$2) +.br +.. +standard unquoted: +.test one two +escaped blanks: +.test one\ one two\ two +escaped 'e' character: +.test one\eone two +escaped backslash before blank: +.test one\\ two +escaped backslash before 'e' character: +.test one\\e two +double inter-argument space: +.test one two +triple inter-argument space: +.test one two +single eol blank: +.test one two +double eol blank: +.test one two +triple eol blank: +.test one two +standard quoted: +.test "one" "two" +quoted quotes: +.test "one""one" """two""" +quoted whitespace: +.test "one one" "two two" +escaped 'e' characters: +.test "one \e one" "\e" +escaped backslash before blank: +.test "one\\ one" "\\ " +escaped backslash before 'e' character: +.test "one\\eone" "\\e" +double inter-argument space: +.test "one one" "two two" +triple inter-argument space: +.test "one one" "two two" +missing inter-argument space: +.test "one one"two\ two +single eol blank: +.test "one one" "two two" +double eol blank: +.test "one one" "two two" +triple eol blank: +.test "one one" "two two" +trailing blanks in arguments: +.test "one " "two " +unterminated quotes: +.test "one +.test one "two +single trailing blank in unterminated quotes: +.test "one +.test one "two +double trailing blank in unterminated quotes: +.test "one +.test one "two +backslash at eol: +.test one two\ blob - /dev/null blob + fe73c7cd03a0d1ac844b1246c47354ade03da384 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/br-args.in @@ -0,0 +1,10 @@ +.\" $OpenBSD: args.in,v 1.3 2017/07/04 14:53:26 schwarze Exp $ +.TH BR-ARGS 1 "January 17, 2011" +.SH NAME +br-args \- arguments to .br macros +.SH DESCRIPTION +some +text +.br arg1 arg2 arg3 +more +text blob - /dev/null blob + 3adc353097ddc662d5322667989e51f5f1782c16 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/cc-basic.in @@ -0,0 +1,20 @@ +.\" $OpenBSD: basic.in,v 1.3 2017/07/04 14:53:26 schwarze Exp $ +.TH CC-BASIC 1 "July 7, 2012" +.SH NAME +cc-basic \- basic usage of the cc request +.SH DESCRIPTION +first line +.br +second +.cc : +line +:br +third +:cc ;bogus +line +;br +fourth +;cc +line +.br +last line blob - /dev/null blob + 77e0482d0adad1ff87833316a1e41ebf62830540 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ds-append.in @@ -0,0 +1,18 @@ +.\" $OpenBSD: append.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt DS-APPEND 1 +.Os +.Sh NAME +.Nm ds-append +.Nd appending to user-defined strings +.Sh DESCRIPTION +.ds foo first part +first part: \*[foo] +.br +.as foo " second part +with second part: \*[foo] +.br +.as foo " third part +with third part: \*[foo] +.br +end of test document blob - /dev/null blob + ce0b9fe8317e615028afadd9816247bbf99a01cd (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ds-escname.in @@ -0,0 +1,15 @@ +.\" $OpenBSD: escname.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt DS-ESCNAME 1 +.Os +.Sh NAME +.Nm ds-escname +.Nd escape sequences in string names +.Sh DESCRIPTION +.ds std\\esc stdval +Now \e*[std\\esc] is +.Sq \*[std\\esc] . +.Pp +.ds esc\eesc escval +Now \e*[esc] is +.Sq \*[esc] . blob - /dev/null blob + f08454bdfb03fd410e1e44ef39bc90777cd21f24 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ds-nested.in @@ -0,0 +1,15 @@ +.\" $OpenBSD: nested.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt DS-NESTED 1 +.Os +.Sh NAME +.Nm ds-nested +.Nd nested string expansion +.Sh DESCRIPTION +.ds foo bar +.ds bar output +This is the \*[\*[foo]]. +.Pp +.ds pi surprising +This is \*[\*[Pi]]. +This is \*(\*(Pi. blob - /dev/null blob + 11c3393d92cce4cd4c76ef20dd48db9072961caa (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ds-quoting.in @@ -0,0 +1,33 @@ +.\" $OpenBSD: quoting.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt DS-QUOTING 1 +.Os +.Sh NAME +.Nm ds-quoting +.Nd quote handling by the define string request +.Sh DESCRIPTION +.ds foo initial definition +no quoting: \*[foo] +.br +.ds foo redefinition +still no quoting: \*[foo] +.br +.ds foo "string value +leading quotes: \*[foo] +.br +.ds foo "string value" +leading and trailing quotes: \*[foo] +.br +.ds foo "string" value +leading and middle quotes: \*[foo] +.br +.ds foo 'string value" +leading apostrophe, trailing quotes: \*[foo] +.br +.ds foo string value" +leading blank, trailing quotes: \*[foo] +.br +.ds foo +empty string: x\*[foo]x +.br +end of test document blob - /dev/null blob + 82269609d3a3cda9cd555c9d4406f78a876d820b (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ft-badargs.in @@ -0,0 +1,16 @@ +.\" $OpenBSD: badargs.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.TH "FT-BADARGS" 1 "July 5, 2014" +.SH NAME +ft-badargs \(en font request with bad arguments +.SH DESCRIPTION +default font +.ft B +bold +.ft foo +still bold +.ft I bogus +italic +.ft P +back to bold +.ft +back to italic blob - /dev/null blob + 9734e1d46d8a987921769867516c4798406942a2 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ft-basic-mdoc.in @@ -0,0 +1,19 @@ +.\" $OpenBSD: badargs-mdoc.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt FT-BADARGS-MDOC 1 +.Os +.Sh NAME +.Nm ft-badargs-mdoc +.Nd font request with bad arguments +.Sh DESCRIPTION +default font +.ft B +bold +.ft foo +still bold +.ft I bogus +italic +.ft P +back to bold +.ft +back to italic blob - /dev/null blob + aaedb21dd6fbbc70028db40629595fbf6a4b0aac (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ig-basic.in @@ -0,0 +1,28 @@ +.\" $OpenBSD: basic.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt IG-BASIC 1 +.Os +.Sh NAME +.Nm ig-basic +.Nd ignored blocks +.Sh DESCRIPTION +no arguments +.ig +ignored text +.. +.br +with end marker +.ig end1 +ignored text +.end1 +.br +with two arguments +.ig end2 excess +ignored text +.end2 +.br +Here is a stray .. block ending, +.. +and then an .ig staying open until the end of the file: +.ig +ignored text blob - /dev/null blob + 93dc0d5e7aa04d223bceeaf8eeaf3606d03f78ba (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/it-badarg.in @@ -0,0 +1,18 @@ +.\" $OpenBSD: badarg.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt IT-BADARG 1 +.Os +.Sh NAME +.Nm it-badarg +.Nd input line traps without numeric arguments +.Sh DESCRIPTION +.de mytrap +traptext +.. +line 1 +.it mytrap +line 2 +line 3 +.it +line 4 +line 5 blob - /dev/null blob + 299094b6e328cae9191fefd419a315d168451ced (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/it-double.in @@ -0,0 +1,17 @@ +.\" $OpenBSD: double.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.TH IT-DOUBLE 1 2013-07-13 +.SH NAME +it-double \- double input line trap +.SH DESCRIPTION +.de firstmacro +firstmacro +.. +.de secondmacro +secondmacro +.. +initial text +.it 1 firstmacro +.it 2 secondmacro +first line +second line +third line blob - /dev/null blob + e346f18221905c88e9209c53b1f1ad9b436e5463 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/it-text.in @@ -0,0 +1,28 @@ +.\" $OpenBSD: text.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt IT-TEXT 1 +.Os +.Sh NAME +.Nm it-text +.Nd what an input line trap counts as text +.Sh DESCRIPTION +.de trap +traptext +.. +initial text +.it 1trap +first line after 1trap +second line after 1trap +.Pp +.it 1vtrap +first line after 1vtrap +second line after 1vtrap +.Pp +.it ( + 1c + 1i)trap +first line after ( + 1c + 1i)trap +second line after ( + 1c + 1i)trap +third line after ( + 1c + 1i)trap +.it 1 trap +.Pp +first line after .Pp +second line after .Pp blob - /dev/null blob + fe5d2ec49cbd992f68115d7ef5822c1d1473570f (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ll-basic.in @@ -0,0 +1,26 @@ +.\" $OpenBSD: basic.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt LL-BASIC 1 +.Os +.Sh NAME +.Nm ll-basic +.Nd changing the line length +.Sh DESCRIPTION +This is a longer text to demonstrate the default line length. +In ASCII mode, it is expected to break at column 78. +.Pp +.ll 38n +This is another long text to demonstrate shorter lines. +In ASCII mode, it is expected to break at column 38. +.Pp +.ll +This is a longer text after switching back to the default line length. +In ASCII mode, it is expected to break at column 78. +.Pp +.ll +100n +This is another long text to demonstrate longer lines. +In ASCII mode, it is not expected to break at all. +.Pp +.ll FOO +This is a longer text after switching to an invalid line length. +In ASCII mode, it is expected to break at column 78. blob - /dev/null blob + a1f609bb2193f094cedc1f2db9639b240d49b4b3 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/na-args.in @@ -0,0 +1,10 @@ +.\" $OpenBSD: args.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.TH NA-ARGS 1 "January 17, 2011" +.SH NAME +na-args \- arguments to .na macros +.SH DESCRIPTION +some +text +.na arg1 arg2 arg3 +more +text blob - /dev/null blob + 87c3c777c190bc1acaed702dca5cb50c677e5a38 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/po-basic-mdoc.in @@ -0,0 +1,21 @@ +.\" $OpenBSD: basic-mdoc.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt PO-BASIC-MDOC 1 +.Os +.Sh NAME +.Nm po-basic-mdoc +.Nd the roff page offset request +.Sh DESCRIPTION +initial text +.Pp +.po -2n +shifted left +.Pp +.po +5n +shifted right +.Pp +.po XXX +shifted left +.Pp +.po 0 +final text blob - /dev/null blob + 1c19a8d8febd0d6e7571c0736972f3f81684c798 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ps-ignore.in @@ -0,0 +1,10 @@ +.\" $OpenBSD: ignore.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.TH PS-IGNORE 1 "Febuary 5, 2011" +.SH NAME +ps-ignore \- ignoreing point size macros +.SH DESCRIPTION +normal text +.ps -1 +small text +.ps +1 +big text blob - /dev/null blob + 82de7eeb3098989a338adc91bccc6fe5a25424a4 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/rm-basic.in @@ -0,0 +1,20 @@ +.\" $OpenBSD: basic.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt RM-BASIC 1 +.Os +.Sh NAME +.Nm rm-basic +.Nd the remove macro request +.Sh DESCRIPTION +.de mymacro +Hello +.. +.ds mystring world +before rm: +.mymacro +\*[mystring]! +.br +.rm mymacro mystring +after rm: +.mymacro +\*[mystring]! blob - /dev/null blob + 86b79da2aa5040602fa173ac95c72d3c69137ba9 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/rn-append.in @@ -0,0 +1,24 @@ +.\" $OpenBSD: append.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt RN-APPEND 1 +.Os +.Sh NAME +.Nm rn-append +.Nd append to renamed standard macro +.Sh DESCRIPTION +original macro: +.Bo in brackets +.Bc +.Pp +renamed macro: +.rn Bc myBc +.Bo in brackets +.myBc +.Pp +appending to macro: +.am myBc +.Pq appended words +.. +.Bo more in brackets +.myBc +final text blob - /dev/null blob + 11e6eef7fb75d3a2bb78e453dbae7898f3f6cb9f (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/scale-horiz.in @@ -0,0 +1,32 @@ +.\" $OpenBSD: horiz.in,v 1.5 2017/07/04 14:53:27 schwarze Exp $ +.TH HORIZ 1 "December 23, 2014" +.SH NAME +horiz \- horizontal distances +.SH DESCRIPTION +initial text +.in 240u +240u +.in 3.6c +3.6c +.in 0.003f +0.003f +.in 2i +2i +.in 500M +500M +.in 6P +6P +.in 36p +36p +.in 10n +10n +.in 5m +5m +.in 79n +79n +.in 1.5ix +1.5ix +.in -6n +-6n +.PP +final text blob - /dev/null blob + 643addea16eea0f7dab37d459eaae563b0858e00 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/sp-badargs-man.in @@ -0,0 +1,18 @@ +.\" $OpenBSD: badargs-man.in,v 1.5 2017/07/04 14:53:27 schwarze Exp $ +.TH SP-BADARGS-MAN 1 "December 23, 2014" +.SH NAME +sp-badargs-man \- bad arguments to .sp macros in man(7) +.SH DESCRIPTION +no arguments: +.sp +one argument: +.sp 2v +two arguments: +.sp 3v 2i +no scaling unit specified: +.sp 1 +trailing garbage: +.sp 2vx +garbage only: +.sp xxx +end of test document blob - /dev/null blob + 91a6e7122e3e2833da064a4611e497d913462815 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/sp-badargs-mdoc.in @@ -0,0 +1,21 @@ +.\" $OpenBSD: badargs-mdoc.in,v 1.5 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt SP-BADARGS-MDOC 1 +.Os +.Sh NAME +.Nm sp-badargs-mdoc +.Nd bad arguments to .sp macros in mdoc(7) +.Sh DESCRIPTION +no arguments: +.sp +one argument: +.sp 2v +two arguments: +.sp 3v 2i +no scaling unit specified: +.sp 1 +trailing garbage: +.sp 2vx +garbage only: +.sp xxx +end of test document blob - /dev/null blob + 5dd9a6a60129032afc223687b3b1e21f4b39149f (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/sp-negative.in @@ -0,0 +1,9 @@ +.\" $OpenBSD: negative.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.TH SP-NEGATIVE 1 "July 12, 2012" +.SH NAME +sp-negative \- negative vertical spacing +.SH DESCRIPTION +first line +.sp -1v +.PP +second line blob - /dev/null blob + 0c7d3a77ff208cb3e9895de16b66be30488cc44b (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/sp-scaling-man.in @@ -0,0 +1,28 @@ +.\" $OpenBSD: scaling-man.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.TH SP-SCALING-MAN 1 "December 23, 2014" +.SH NAME +sp-scaling-man \- scaled arguments to .sp requests in man(7) +.SH DESCRIPTION +20 basic units: +.sp 20u +21 basic units: +.sp 21u +one centimeter: +.sp 1c +quarter of an inch: +.sp 0.25i +half a pica: +.sp 0.5P +one pica: +.sp 1P +6 points: +.sp 6p +7 points: +.sp 7p +one en: +.sp 1n +three en: +.sp 3n +two em: +.sp 2m +end of test document blob - /dev/null blob + 9e92ed52409c6ef7b4a20f0cf0874326755d35bf (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/sp-scaling-mdoc.in @@ -0,0 +1,31 @@ +.\" $OpenBSD: scaling-mdoc.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt SP-SCALING-MDOC 1 +.Os +.Sh NAME +.Nm sp-scaling-mdoc +.Nd scaled arguments to .sp requests in mdoc(7) +.Sh DESCRIPTION +20 basic units: +.sp 20u +21 basic units: +.sp 21u +one centimeter: +.sp 1c +quarter of an inch: +.sp 0.25i +half a pica: +.sp 0.5P +one pica: +.sp 1P +6 points: +.sp 6p +7 points: +.sp 7p +one en: +.sp 1n +three en: +.sp 3n +two em: +.sp 2m +end of test document blob - /dev/null blob + 91a6e7122e3e2833da064a4611e497d913462815 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/string-badargs-mdoc.in @@ -0,0 +1,21 @@ +.\" $OpenBSD: badargs-mdoc.in,v 1.5 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt SP-BADARGS-MDOC 1 +.Os +.Sh NAME +.Nm sp-badargs-mdoc +.Nd bad arguments to .sp macros in mdoc(7) +.Sh DESCRIPTION +no arguments: +.sp +one argument: +.sp 2v +two arguments: +.sp 3v 2i +no scaling unit specified: +.sp 1 +trailing garbage: +.sp 2vx +garbage only: +.sp xxx +end of test document blob - /dev/null blob + 339611e89a17813395fb6e0a904c01e9f8951649 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/string-escape.in @@ -0,0 +1,27 @@ +.\" $OpenBSD: escape.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.TH STRING-ESCAPE 1 "December 3, 2010" +.SH NAME +string-escape - preventing string interpolation +.SH DESCRIPTION +.ds right wrong +.ds inner *[right] +.ds outer \\*[inner] +.SS Normal interpolation +result: \*[inner] +.PP +The above line must be "result: *[right]". +.SS Intervening character +result: \e*[right] +.PP +The above line must be "result: backslash*[right]", +not "result: rong". +.SS Escaped backslash +result: \\*[right] +.PP +The above line must be "result: backslash*[right]", +not "result: rong". +.SS Delayed interpolation +result: \*[outer] +.PP +The above line must be "result: *[right]", +not "result: wrong". blob - /dev/null blob + c79b4bda8ab8e71991148323f7b64d0dc7241ed7 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/string-infinite.in @@ -0,0 +1,9 @@ +.\" $OpenBSD: infinite.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.TH STRING-INFINITE 1 "December 3, 2010" +.SH NAME +string-infinite - endless recursion in string expansion +.SH DESCRIPTION +.ds recur \\*[recur] +Blow up, +(and do not \*[recur] print this) +but still render following text correctly. blob - /dev/null blob + 2948f164dcb593719f2f6a495fd540dc09000343 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/string-name.in @@ -0,0 +1,36 @@ +.\" $OpenBSD: name.in,v 1.4 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt STRING-NAME 1 +.Os +.Sh NAME +.Nm string-name +.Nd torturing .ds with weird string names +.Sh DESCRIPTION +.ds norm value of norm +.ds "quot" value of "quot" +.ds bs\e value of bs\ee +.ds bs\\e value of bs\e\ee +.ds bl\ e value of bl\e e +norm: \*[norm] +.br +norm without closing brace: \*[norm +.br +quot: \*[quot] +.br +"quot": \*["quot"] +.br +bs\e\ee: \*[bs\\e] +.\".br +.\"bs\ee: \*[bs\e] +.br +bse: \*[bse] +.br +bs: \*[bs] +.\".br +.\"bl\e e: \*[bl\ e] +.br +bl e: \*[bl e] +.br +ble: \*[ble] +.br +bl: \*[bl] blob - /dev/null blob + 0719b3c47d8d85f1e69dfe4a6c524ec18d4263d4 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/string-std.in @@ -0,0 +1,11 @@ +.\" $OpenBSD: std.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.TH STRING-STD 1 "June 18, 2017" +.SH NAME +string-std - expanding standard macros as strings +.SH DESCRIPTION +expanding the DT macro as a string: +>>>\*[DT]<<< +.PP +.rn DT myname +the same after renaming it: +>>>\*[myname]<<< blob - /dev/null blob + 4bab6df54f39e8433892a067012f27d0fe7c6471 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/string-zerolength.in @@ -0,0 +1,17 @@ +.\" $OpenBSD: zerolength.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.TH STRING-ZEROLENGTH 1 "December 19, 2010" +.SH NAME +string-zerolength - handling of zero-length user-defined strings +.SH DESCRIPTION +.ds dszero " +.de dezero +.. +use zero-length string: +x\*[dszero]x +.dszero +x +.PP +use zero-length macro: +x\*[dezero]x +.dezero +x blob - /dev/null blob + dd6794ec73e3b3a128b63adfa5db2e6c5d83eda9 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ta-basic-man.in @@ -0,0 +1,23 @@ +.\" $OpenBSD: basic-man.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.TH TA-BASIC-MAN 1 "May 7, 2014" +.SH NAME +ta-basic-man \- setting tabstop positions in man(7) +.SH DESCRIPTION +.nf +default: +1 2 3 +10n: +.ta 10n +1 2 3 +none: +.ta +1 2 3 +3n +6n T 4n +2n: +.ta 3n +6n T 4n +2n +1 2 3 4 5 6 7 8 9 +default unit: +.ta 3 +4 12 +1 2 3 4 +rounding: +.ta 0.26i T 1c +1 2 3 4 5 6 7 8 9 blob - /dev/null blob + 35a1926f23122dd9d865dbde9c76a0fc884f6290 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ta-basic-mdoc.in @@ -0,0 +1,35 @@ +.\" $OpenBSD: basic-mdoc.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt TA-BASIC-MDOC 1 +.Os +.Sh NAME +.Nm ta-basic-mdoc +.Nd setting tabstop positions in mdoc(7) +.Sh DESCRIPTION +.Bd -unfilled +default: +1 2 3 +10n: +.ta 10n +1 2 3 +none: +.ta +1 2 3 +3n +6n T 4n +2n: +.ta 3n +6n T 4n +2n +1 2 3 4 5 6 7 8 9 +.Ed +.Pp +literal: +.Bd -literal -compact +1 2 3 +.Ed +.Pp +after literal: +.br +1 2 3 +.Pp +default unit: +.br +.ta 3 +4 12 +1 2 3 4 blob - /dev/null blob + b6089d3d0b15383c36697a9d9e3872714e8792d7 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ti-basic-mdoc.in @@ -0,0 +1,22 @@ +.\" $OpenBSD: basic-mdoc.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.Dd $Mdocdate: July 4 2017 $ +.Dt TI-BASIC-MDOC 1 +.Os +.Sh NAME +.Nm ti-basic-mdoc +.Nd temporary indent in mdoc(7) +.Sh DESCRIPTION +initial text +.ti 10n +This text is indented. +However, the indent is temporary, +so as soon as the line wraps, it is gone. +.ti +10n +The temporary indent can be relative. +All the same, it will expire in the usual way. +.ti -3n +It is also possible to temporarily reduce the indentation, +but that will also last until the next line break only. +.ti -10n +Reducing by more than the current offset +starts the next line at the physical left margin. blob - /dev/null blob + f5a251e0c0fa2420a266d03c59e1183ef03a3145 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/ti.basic-man.in @@ -0,0 +1,19 @@ +.\" $OpenBSD: basic-man.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.TH TI-BASIC-MAN 1 "May 8, 2014" +.SH NAME +ti-basic-man \- temporary indentation in man(7) +.SH DESCRIPTION +initial text +.ti 0.96i +This text is indented. +However, the indent is temporary, +so as soon as the line wraps, it is gone. +.ti +10n +The temporary indent can be relative. +All the same, it will expire in the usual way. +.ti -0.26i +It is also possible to temporarily reduce the indentation, +but that will also last until the next line break only. +.ti -10n +Reducing by more than the current offset +starts the next line at the physical left margin. blob - /dev/null blob + fa413710ab74ee5fb2b65ef5c11951f7143c66fc (mode 644) --- /dev/null +++ tests/afl-fuzz/static/deroff/tr.args.in @@ -0,0 +1,17 @@ +.\" $OpenBSD: args.in,v 1.2 2017/07/04 14:53:27 schwarze Exp $ +.TH TR-BASIC 1 "February 6, 2015" +.SH NAME +tr-args \- arguments of the tr request +.SH DESCRIPTION +no argument: +.tr +one character: +.tr x +>>x<< +two characters: +.tr xy +>>x<< +three characters: +.tr xyz +>>xz<< +last line blob - 7a5ac50cac1f541eecb9fb5a3e52180c6bdedb43 (mode 644) blob + /dev/null --- tests/afl-fuzz/static/ed.text +++ /dev/null @@ -1,22 +0,0 @@ -$OpenBSD: README,v 1.4 2014/04/20 09:29:36 deraadt Exp $ -$NetBSD: README,v 1.9 1995/03/21 09:04:33 cgd Exp $ - -ed is an 8-bit-clean, POSIX-compliant line editor. It should work with -any regular expression package that conforms to the POSIX interface -standard, such as GNU regex(3). - -If reliable signals are supported (e.g., POSIX sigaction(2)), it should -compile with little trouble. Otherwise, the macros SPL1() and SPL0() -should be redefined to disable interrupts. - -The following compiler directive is recognized: -BACKWARDS - for backwards compatibility - -The file `POSIX' describes extensions to and deviations from the POSIX -standard. - -The ./test directory contains regression tests for ed. The README -file in that directory explains how to run these. - -For a description of the ed algorithm, see Kernighan and Plauger's book -"Software Tools in Pascal," Addison-Wesley, 1981. blob - /dev/null blob + 7361d2538d2119f37fac4a7d335d91116f94cf54 (mode 644) Binary files /dev/null and tests/afl-fuzz/static/last/wtmp differ blob - /dev/null blob + 8d8710116256ae763c20e916b06f81bc31542e55 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/args.m4 @@ -0,0 +1,8 @@ +dnl $OpenBSD: args.m4,v 1.1 2001/10/10 23:23:59 espie Exp $ +dnl Expanding all arguments +define(`A', `first form: $@, second form $*')dnl +define(`B', `C')dnl +A(1,2,`B') +dnl indirection means macro can get called with argc == 2 ! +indir(`A',1,2,`B') +indir(`A') blob - /dev/null blob + daac5f98b19ee00ed8793fb30286ddd7116bbf1d (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/args2.m4 @@ -0,0 +1,4 @@ +dnl $OpenBSD: args2.m4,v 1.1 2008/08/16 09:57:12 espie Exp $ +dnl Preserving spaces within nested parentheses +define(`foo',`$1')dnl +foo(( check for embedded spaces)) blob - /dev/null blob + a6879d38c39aa27f54a6edcb4dbca22c809f3266 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/args3.m4 @@ -0,0 +1,3 @@ +dnl invalid number of parameters for doifelse +dnl do not segfault +ifelse(A, "s",,,) blob - /dev/null blob + f24d9e6eff3f2095241362d26016642179bd0a45 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/comments.m4 @@ -0,0 +1,58 @@ +dnl $OpenBSD: comments.m4,v 1.1 2005/09/06 15:33:21 espie Exp $ +dnl checking the way changecom works. +1: normal +define(`comment', `COMMENT')dnl +define(`p', 'XXX')dnl +# this is a comment +>> this is a comment +p this is a comment +p this is a comment q comment too + +2: `changecom(>>)dnl' +changecom(>>)dnl +# this is a comment +>> this is a comment +p this is a comment +p this is a comment q comment too + +3: `changecom dnl' +changecom dnl +# this is a comment +>> this is a comment +p this is a comment +p this is a comment q comment too + +4: `changecom()dnl' +changecom()dnl +# this is a comment +>> this is a comment +p this is a comment +p this is a comment q comment too + +5: `changecom(,)dnl' +changecom(,)dnl +# this is a comment +>> this is a comment +p this is a comment +p this is a comment q comment too + +6: `changecom(`p',q)dnl' +changecom(`p',q)dnl +# this is a comment +>> this is a comment +p this is a comment +p this is a comment q comment too + +7: `changecom(`p')dnl' +changecom(`p')dnl +# this is a comment +>> this is a comment +p this is a comment +p this is a comment q comment too + +8: `changecom(#)dnl' +changecom(#)dnl +# this is a comment +>> this is a comment +p this is a comment +p this is a comment q comment too blob - /dev/null blob + e4f5875f92a4e56bebbb75613e85826a8aa2065a (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/dumpdef.m4 @@ -0,0 +1,2 @@ +undefine(`unix')dnl +dumpdef()dnl blob - /dev/null blob + a9b83c478e48345535247329557289b4df126f9e (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/esyscmd.m4 @@ -0,0 +1,42 @@ +changequote(`{',`}')dnl +dnl +esyscmd({sh -c "m4<>>') +patsubst(`# This is a line to zap +# and a second line +keep this one', `^ *#.* +') +dnl Special case: empty regexp +patsubst(`empty regexp',`',`a ') blob - /dev/null blob + 891ddcef24ec84d1a59d4380ced763f534c654a8 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/quotes.m4 @@ -0,0 +1,57 @@ +dnl $OpenBSD: quotes.m4,v 1.2 2005/09/06 15:33:21 espie Exp $ +dnl Checking the way changequote() is supposed to work +define(`string',`STRING')dnl +1: normal +`quoted string' +[quoted string] +normal string +`half quoted string +going up to that string' + +2: kill quotes +changequote()dnl +`quoted string' +[quoted string] +normal string +`half quoted string +going up to that string' + +3: normal changed quote +changequote([,])dnl +`quoted string' +[quoted string] +normal string +`half quoted string +going up to that string' + +4: empty quotes, kill them too +changequote(,)dnl +`quoted string' +[quoted string] +normal string +`half quoted string +going up to that string' + +5: start quote only +changequote(`)dnl +`quoted string' +[quoted string] +normal string +`half quoted string +going up to that string' + +6: normal quotes are back +changequote +`quoted string' +[quoted string] +normal string +`half quoted string +going up to that string' + +7: start quote+empty end quote +changequote([,)dnl +`quoted string' +[quoted string] +normal string +`half quoted string +going up to that string' blob - /dev/null blob + 5ae533602991fafcbb0215bbd9e1a0aef1446c19 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/redef.m4 @@ -0,0 +1,16 @@ +dnl $OpenBSD: redef.m4,v 1.2 2001/09/27 22:40:58 espie Exp $ +dnl check all properties of builtin are passed on, including args behavior +define(`mybuiltin',defn(`builtin'))dnl +builtin mybuiltin +define(`mydefine',defn(`define'))dnl +mydefine(`mydefn',defn(`defn'))dnl +mydefine(`myundefine',mydefn(`undefine'))dnl +myundefine(`defn')dnl +myundefine(`define')dnl +myundefine(`undefine')dnl +mydefine(`mydef2',mydefn(`mydefine'))dnl +mydefine(`mydef', mydefn(`define'))dnl +myundefine(`mydefine')dnl +mydef2(`A',`B')dnl +mydef(`C',`D')dnl +A C blob - /dev/null blob + caff6cee224ecd606b608694c312094bc1b3a8e3 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/redef2.m4 @@ -0,0 +1,6 @@ +dnl $OpenBSD: redef2.m4,v 1.1 2014/12/07 14:32:34 jsg Exp $ +dnl recursive macro redefinition +define(`A', `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') +A( + define(`A', `bbbbbbbbbbbbbbbbbbb') +) blob - /dev/null blob + becd550d3fd36ef60841dbca4ea5ddc475983021 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/synch1.m4 @@ -0,0 +1,13 @@ +This is a test for multi MARK1 +line synchronization stuff MARK2 +# Let's include comments to see MARK3 +dnl +dnl +`quoted string' MARK4 +define(`A',`big string +with a newline embedded')dnl +Return to normal MARK5 +Let's try A +And let's see where we are now. MARK6 +Okay, some more input. +MARK7 blob - /dev/null blob + 8c8fe06c0a1e4601fedb1e57f6b047fd51c60e7a (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/translit.m4 @@ -0,0 +1,3 @@ +dnl $OpenBSD: translit.m4,v 1.1 2010/03/23 20:11:52 espie Exp $ +dnl first one should match, not second one +translit(`onk*', `**', `p_') blob - /dev/null blob + 5c53a57cf3c2342819b39b1e22c16fdbfe6a77c7 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/translit2.m4 @@ -0,0 +1,8 @@ +translit(`[HAVE_abc/def.h +]', ` +/.', `/ ') +translit(`[HAVE_abc/def.h=]', `=/.', `/~~') +translit(`0123456789', `0123456789', `ABCDEFGHIJ') +translit(`0123456789', `[0-9]', `[A-J]') +translit(`abc-0980-zyx', `abcdefghijklmnopqrstuvwxyz', `ABCDEFGHIJKLMNOPQRSTUVWXYZ') +translit(`abc-0980-zyx', `[a-z]', `[A-Z]') blob - /dev/null blob + d87adaa87a429ed78f07277cf472ebe9058cb7fd (mode 644) --- /dev/null +++ tests/afl-fuzz/static/m4/weird,name.m4 @@ -0,0 +1,4 @@ +dnl $OpenBSD: weird,name.m4,v 1.1 2001/10/10 11:16:28 espie Exp $ +dnl trip up m4 if it forgets to quote filenames +define(`A', `$2')dnl +A(__file__)dnl blob - /dev/null blob + cac7577c05d34221e405c4761c4d4b567829e4bd (mode 644) --- /dev/null +++ tests/afl-fuzz/static/patch/README @@ -0,0 +1,54 @@ +Only two remote holes in the default install, in a heck of a long time! + +The OpenBSD project produces a FREE, multi-platform 4.4BSD-based UNIX-like +operating system. Our efforts emphasize portability, standardization, +correctness, proactive security and integrated cryptography. As an example of +the effect OpenBSD has, the popular OpenSSH software comes from OpenBSD. + +OpenBSD is freely available from our download sites. + +The current release is OpenBSD 6.2, released Oct 9, 2017. + +OpenBSD is developed entirely by volunteers. The project's development +environment and developer events are funded through contributions collected by +The OpenBSD Foundation. Contributions ensure that OpenBSD will remain a vibrant +and free operating system. + + +Obviously, each developer working on OpenBSD has their own aims and priorities, +but it is possible to classify the goals we all share: + +Provide the best development platform possible. Provide full source access to +developers and users, including the ability to look at CVS tree changes +directly. Users can even look at our source tree and changes directly on the +web! + +Integrate good code from any source with acceptable licenses. ISC or Berkeley +style licences are preferred, the GPL is not acceptable when adding new code, +NDAs are never acceptable. We want to make available source code that anyone +can use for ANY PURPOSE, with no restrictions. We strive to make our software +robust and secure, and encourage companies to use whichever pieces they want +to. There are commercial spin-offs of OpenBSD. + +Pay attention to security problems and fix them before anyone else does. (Try +to be the #1 most secure operating system.) + +Greater integration of cryptographic software. OpenBSD is developed and +released from Canada and due to Canadian law it is legal to export crypto to +the world (as researched by a Canadian individual and as documented in the +Export Control list of Canada). + +Track and implement standards (ANSI, POSIX, parts of X/Open, etc.) + +Work towards a very machine independent source tree. Support as many different +systems and hardware as feasible. + +Be as politics-free as possible; solutions should be decided on the basis of +technical merit. + +Focus on being developer-oriented in all senses, including holding +developer-only events called hackathons. + +Do not let serious problems sit unsolved. + +Make a release approximately every six months. blob - /dev/null blob + 4ea3312eba732f240981053c119e25eb6dfe8f30 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/patch/patch @@ -0,0 +1,56 @@ +4d3 +< operating system. Our efforts emphasize portability, standardization, +7d5 +< +12d9 +< OpenBSD is developed entirely by volunteers. The project's development +14d10 +< The OpenBSD Foundation. Contributions ensure that OpenBSD will remain a vibrant +19c15 +< but it is possible to classify the goals we all share: +--- +> but it is possible to the goals we all share: +21,22c17,18 +< Provide the best development platform possible. Provide full source access to +< developers and users, including the ability to look at CVS tree changes +--- +> Provide the best platform possible. Provide full source access to +> developers and users, the ability to look at CVS tree changes +27d22 +< style licences are preferred, the GPL is not acceptable when adding new code, +29,31c24,26 +< can use for ANY PURPOSE, with no restrictions. We strive to make our software +< robust and secure, and encourage companies to use whichever pieces they want +< to. There are commercial spin-offs of OpenBSD. +--- +> can use for with no . We strive to make our software +> robust and secure, encourage companies to use whichever pieces they want +> to. There are commercial of OpenBSD. +33c28 +< Pay attention to security problems and fix them before anyone else does. (Try +--- +> Pay attention to security fix them before anyone else does. (Try +36,38c31,33 +< Greater integration of cryptographic software. OpenBSD is developed and +< released from Canada and due to Canadian law it is legal to export crypto to +< the world (as researched by a Canadian individual and as documented in the +--- +> Greater integration of is developed and +> released from Canada and Canadian law it is legal to export crypto to +> the world (as researched by a and as documented in the +41,51d35 +< Track and implement standards (ANSI, POSIX, parts of X/Open, etc.) +< +< Work towards a very machine independent source tree. Support as many different +< systems and hardware as feasible. +< +< Be as politics-free as possible; solutions should be decided on the basis of +< technical merit. +< +< Focus on being developer-oriented in all senses, including holding +< developer-only events called hackathons. +< +54c38 +< Make a release approximately every six months. +--- +> Make a release approximately six months. blob - /dev/null blob + 8b55418bd3182a975cade6d55c3f92f4cc7bf0c9 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/patch/patch.opt_c @@ -0,0 +1,97 @@ +*** README.orig Mon Nov 27 03:11:35 2017 +--- README Mon Nov 27 03:16:04 2017 +*************** +*** 1,54 **** + Only two remote holes in the default install, in a heck of a long time! + + The OpenBSD project produces a FREE, multi-platform 4.4BSD-based UNIX-like +- operating system. Our efforts emphasize portability, standardization, + correctness, proactive security and integrated cryptography. As an example of + the effect OpenBSD has, the popular OpenSSH software comes from OpenBSD. +- + OpenBSD is freely available from our download sites. + + The current release is OpenBSD 6.2, released Oct 9, 2017. + +- OpenBSD is developed entirely by volunteers. The project's development + environment and developer events are funded through contributions collected by +- The OpenBSD Foundation. Contributions ensure that OpenBSD will remain a vibrant + and free operating system. + + + Obviously, each developer working on OpenBSD has their own aims and priorities, +! but it is possible to classify the goals we all share: + +! Provide the best development platform possible. Provide full source access to +! developers and users, including the ability to look at CVS tree changes + directly. Users can even look at our source tree and changes directly on the + web! + + Integrate good code from any source with acceptable licenses. ISC or Berkeley +- style licences are preferred, the GPL is not acceptable when adding new code, + NDAs are never acceptable. We want to make available source code that anyone +! can use for ANY PURPOSE, with no restrictions. We strive to make our software +! robust and secure, and encourage companies to use whichever pieces they want +! to. There are commercial spin-offs of OpenBSD. + +! Pay attention to security problems and fix them before anyone else does. (Try + to be the #1 most secure operating system.) + +! Greater integration of cryptographic software. OpenBSD is developed and +! released from Canada and due to Canadian law it is legal to export crypto to +! the world (as researched by a Canadian individual and as documented in the + Export Control list of Canada). + +- Track and implement standards (ANSI, POSIX, parts of X/Open, etc.) +- +- Work towards a very machine independent source tree. Support as many different +- systems and hardware as feasible. +- +- Be as politics-free as possible; solutions should be decided on the basis of +- technical merit. +- +- Focus on being developer-oriented in all senses, including holding +- developer-only events called hackathons. +- + Do not let serious problems sit unsolved. + +! Make a release approximately every six months. +--- 1,38 ---- + Only two remote holes in the default install, in a heck of a long time! + + The OpenBSD project produces a FREE, multi-platform 4.4BSD-based UNIX-like + correctness, proactive security and integrated cryptography. As an example of + the effect OpenBSD has, the popular OpenSSH software comes from OpenBSD. + OpenBSD is freely available from our download sites. + + The current release is OpenBSD 6.2, released Oct 9, 2017. + + environment and developer events are funded through contributions collected by + and free operating system. + + + Obviously, each developer working on OpenBSD has their own aims and priorities, +! but it is possible to the goals we all share: + +! Provide the best platform possible. Provide full source access to +! developers and users, the ability to look at CVS tree changes + directly. Users can even look at our source tree and changes directly on the + web! + + Integrate good code from any source with acceptable licenses. ISC or Berkeley + NDAs are never acceptable. We want to make available source code that anyone +! can use for with no . We strive to make our software +! robust and secure, encourage companies to use whichever pieces they want +! to. There are commercial of OpenBSD. + +! Pay attention to security fix them before anyone else does. (Try + to be the #1 most secure operating system.) + +! Greater integration of is developed and +! released from Canada and Canadian law it is legal to export crypto to +! the world (as researched by a and as documented in the + Export Control list of Canada). + + Do not let serious problems sit unsolved. + +! Make a release approximately six months. blob - /dev/null blob + 879c2d2e9a66696bb579fbbbf94cdc4e013a60d1 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/patch/patch.opt_u @@ -0,0 +1,68 @@ +--- README.orig Mon Nov 27 03:11:35 2017 ++++ README Mon Nov 27 03:16:04 2017 +@@ -1,54 +1,38 @@ + Only two remote holes in the default install, in a heck of a long time! + + The OpenBSD project produces a FREE, multi-platform 4.4BSD-based UNIX-like +-operating system. Our efforts emphasize portability, standardization, + correctness, proactive security and integrated cryptography. As an example of + the effect OpenBSD has, the popular OpenSSH software comes from OpenBSD. +- + OpenBSD is freely available from our download sites. + + The current release is OpenBSD 6.2, released Oct 9, 2017. + +-OpenBSD is developed entirely by volunteers. The project's development + environment and developer events are funded through contributions collected by +-The OpenBSD Foundation. Contributions ensure that OpenBSD will remain a vibrant + and free operating system. + + + Obviously, each developer working on OpenBSD has their own aims and priorities, +-but it is possible to classify the goals we all share: ++but it is possible to the goals we all share: + +-Provide the best development platform possible. Provide full source access to +-developers and users, including the ability to look at CVS tree changes ++Provide the best platform possible. Provide full source access to ++developers and users, the ability to look at CVS tree changes + directly. Users can even look at our source tree and changes directly on the + web! + + Integrate good code from any source with acceptable licenses. ISC or Berkeley +-style licences are preferred, the GPL is not acceptable when adding new code, + NDAs are never acceptable. We want to make available source code that anyone +-can use for ANY PURPOSE, with no restrictions. We strive to make our software +-robust and secure, and encourage companies to use whichever pieces they want +-to. There are commercial spin-offs of OpenBSD. ++can use for with no . We strive to make our software ++robust and secure, encourage companies to use whichever pieces they want ++to. There are commercial of OpenBSD. + +-Pay attention to security problems and fix them before anyone else does. (Try ++Pay attention to security fix them before anyone else does. (Try + to be the #1 most secure operating system.) + +-Greater integration of cryptographic software. OpenBSD is developed and +-released from Canada and due to Canadian law it is legal to export crypto to +-the world (as researched by a Canadian individual and as documented in the ++Greater integration of is developed and ++released from Canada and Canadian law it is legal to export crypto to ++the world (as researched by a and as documented in the + Export Control list of Canada). + +-Track and implement standards (ANSI, POSIX, parts of X/Open, etc.) +- +-Work towards a very machine independent source tree. Support as many different +-systems and hardware as feasible. +- +-Be as politics-free as possible; solutions should be decided on the basis of +-technical merit. +- +-Focus on being developer-oriented in all senses, including holding +-developer-only events called hackathons. +- + Do not let serious problems sit unsolved. + +-Make a release approximately every six months. ++Make a release approximately six months. blob - /dev/null blob + b9a9f5f57d9005954d50192ede01f5d2cb46116c (mode 644) --- /dev/null +++ tests/afl-fuzz/static/switchd.dict @@ -0,0 +1,3 @@ +keyword_LISTEN_ON="listen on" +keyword_TLS="tls" +keyword_INCLUDE="include" blob - /dev/null blob + 0dcc881402712499124997479e7a9206b7a32e66 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/vm.dict @@ -0,0 +1,21 @@ +include +prefix +vm +boot +disk +local +interface +locked +lladdr +rdomain +switch +interfaces +memory +owner +switch +add +enable +disable +group +up +down blob - /dev/null blob + a4743f5c6488711f0ce4288e89ee198060d5eec5 (mode 644) --- /dev/null +++ tests/afl-fuzz/static/vmd.dict @@ -0,0 +1,21 @@ +keyword_INCLUDE="include" +keyword_PREFIX="prefix" +keyword_VM="vm" +keyword_BOOT="boot" +keyword_DISK="disk" +keyword_LOCAL="local" +keyword_INTERFACE="interface" +keyword_LOCKED="locked" +keyword_LLADDR="lladdr" +keyword_RDOMAIN="rdomain" +keyword_SWITCH="switch" +keyword_INTERFACES="interfaces" +keyword_MEMORY="memory" +keyword_OWNER="owner" +keyword_SWITCH="switch" +keyword_ADD="add" +keyword_ENABLE="enable" +keyword_DISABLE="disable" +keyword_GROUP="group" +keyword_UP="up" +keyword_DOWN="down"