Fuzz all types of builds (idn2, idn, icu, none)

This commit is contained in:
Tim Rühsen 2017-07-12 10:40:58 +02:00
parent 2abce22058
commit 631362d3d0
1754 changed files with 15068 additions and 15 deletions

View File

@ -30,19 +30,34 @@ clean-local:
fuzz-coverage: $(PSL_TESTS) fuzz-coverage: $(PSL_TESTS)
find . -name '*_fuzzer' -exec ./coverage.sh '{}' ';' find . -name '*_fuzzer' -exec ./coverage.sh '{}' ';'
if WITH_LIBICU
XLIBS = $(LIBICU_LIBS)
XTYPE = _icu
endif
if WITH_LIBIDN2
XLIBS = -lidn2 -lunistring
XTYPE = _idn2
endif
if WITH_LIBIDN
XLIBS = -lidn -lunistring
XTYPE = _idn
endif
XLIBS ?=
XTYPE ?=
CXX ?= clang-5.0
CXXFLAGS ?= $(CFLAGS)
oss-fuzz: oss-fuzz:
if test "$$OUT" != ""; then \ if test "$$OUT" != ""; then \
if $$(grep -q '^#define WITH_LIBIDN2 1' $(top_srcdir)/config.h); then XLIBS="-lidn2 -lunistring"; \ for cfile in `ls *_fuzzer.c`; do \
elif $$(grep -q '^#define WITH_LIBIDN 1' $(top_srcdir)/config.h); then XLIBS="-lidn -lunistring"; \ fuzzer="libpsl$(XTYPE)_"$$(basename $$cfile .c|cut -d'_' -f2-); \
elif $$(grep -q '^#define WITH_LIBICU 1' $(top_srcdir)/config.h); then XLIBS="-licuuc -licudata"; \ $$CXX $$CXXFLAGS $$CPPFLAGS -I$(top_srcdir)/include -I$(top_srcdir) \
else XLIBS=""; fi; \ "$${cfile}" -o "$${fuzzer}" \
for ccfile in *_fuzzer.c; do \
fuzzer=$$(basename $$ccfile .c); \
$$CXX $$CXXFLAGS -I$(top_srcdir)/include -I$(top_srcdir) \
"$${fuzzer}.c" -o "$${fuzzer}" \
../src/.libs/libpsl.a $${LIB_FUZZING_ENGINE} \ ../src/.libs/libpsl.a $${LIB_FUZZING_ENGINE} \
-Wl,-Bstatic \ -Wl,-Bstatic \
$$XLIBS \ $(XLIBS) \
-Wl,-Bdynamic; \ -Wl,-Bdynamic; \
done; \ done; \
fi fi

View File

@ -0,0 +1 @@
<EFBFBD>.

View File

@ -0,0 +1 @@
.............................................................................................................-...................

View File

@ -0,0 +1 @@
Ã.a

View File

@ -0,0 +1 @@
e.com

View File

@ -0,0 +1 @@
mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.

View File

@ -0,0 +1 @@
ac.'

View File

@ -0,0 +1,5 @@
x
x
x
x
x

View File

@ -0,0 +1 @@
l.cc.co.usc...cc.co.usc....co.us<..co.us<

View File

@ -0,0 +1 @@
0emm.0emm.

View File

@ -0,0 +1 @@
...d<>

View File

@ -0,0 +1 @@
cc.co.us<63>.s.se

View File

@ -0,0 +1 @@
6.6..в.4..в.в.

View File

@ -0,0 +1 @@
lZź...Z..źÎZ.ĂlddŇŃŃŃŇŃŃ

View File

@ -0,0 +1 @@
酶.酶.酶.<2E>

View File

@ -0,0 +1 @@
י.י

View File

@ -0,0 +1 @@
.......com

View File

@ -0,0 +1 @@
ac.7

View File

@ -0,0 +1 @@
..d<>.

View File

@ -0,0 +1 @@
o.m.o.mmm

View File

@ -0,0 +1 @@
.............................................................................................................................e.com

View File

@ -0,0 +1 @@
www.ck

View File

@ -0,0 +1 @@
......................................................................mmmmmmmmmmm.........................................................................................

View File

@ -0,0 +1 @@
в≥в╗в.в≥в╗в..в≥в╗в..в≥в╗в.в≥вв╗в..в≥в╗в.в≥в╗в..в≥в╗в.в╗в..в≥в╗в.в≥в╗в.

View File

@ -0,0 +1 @@
..mm

View File

@ -0,0 +1 @@
ca.a.

View File

@ -0,0 +1 @@
a..и.

View File

@ -0,0 +1 @@
.............................e.com

View File

@ -0,0 +1 @@
6.6.6.в.4..в.4..в.в.6.6.в.4..в.4..в.в.6.в.4..в.4..4..в.4..в.вв.в.

View File

@ -0,0 +1 @@
x.c.....c

View File

@ -0,0 +1 @@
.в.в≥в.co.keFЪЪX:X:ccoм.dЪIЪУ.dЪм.dЪIЪУ.dЪЪЪ╓ц╤*.ц╓Ю

View File

@ -0,0 +1 @@
mm.

View File

@ -0,0 +1 @@
j<EFBFBD>.j<>

View File

@ -0,0 +1 @@
...m<>

View File

@ -0,0 +1 @@
t.t.t.

View File

@ -0,0 +1 @@
...mb<6D>

View File

@ -0,0 +1 @@
...и..

View File

@ -0,0 +1 @@
...........................................................................................................................................................................

View File

@ -0,0 +1 @@
x.x..x.c..*.x.x..x..x.c...x.c.η.c.η...x.c...x.x..x..x.c...x.c.η.c.η.

View File

@ -0,0 +1 @@
fbxos.fbxos.fbxos.fbxos.fbxos.fbxos.fbxos.fxos.fbxos.fbxos.fbxos.fbxos.fbxos.fbxos.fbxos.fxos.

View File

@ -0,0 +1 @@
...η

View File

@ -0,0 +1 @@
d.d.

View File

@ -0,0 +1 @@
.(..s.se

View File

@ -0,0 +1 @@
XBBBBBBBBBBBBBBBB.BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBxc}m

View File

@ -0,0 +1 @@
............................................

View File

@ -0,0 +1 @@
t.o.

View File

@ -0,0 +1 @@
M....*.シZ..テシ..c.udヒZld.

View File

@ -0,0 +1 @@
co..

View File

@ -0,0 +1 @@
<EFBFBD>.

View File

@ -0,0 +1 @@
fbxos.fbxos.

View File

@ -0,0 +1,2 @@
................'...........................................................,.............................................x
.........

View File

@ -0,0 +1 @@
6.6..

View File

@ -0,0 +1 @@
x.e.

View File

@ -0,0 +1 @@
.c.la

View File

@ -0,0 +1 @@
<EFBFBD>.<2E>.s.se

View File

@ -0,0 +1 @@
o.И

View File

@ -0,0 +1 @@
ト祭.

View File

@ -0,0 +1 @@
.......dテ.

View File

@ -0,0 +1 @@
...в

View File

@ -0,0 +1 @@
V.e.

View File

@ -0,0 +1 @@
<EFBFBD>.6.

View File

@ -0,0 +1 @@
...3.

View File

@ -0,0 +1 @@
km.km.mt!tm.km.km.km.km.

View File

@ -0,0 +1 @@
....в≥.в╪Ш╪d:.

View File

@ -0,0 +1 @@
a.<2E>

View File

@ -0,0 +1 @@
............................................................................................................................................................................................................................................*.........<2E>.........<2E>..

View File

@ -0,0 +1,2 @@
............................................................................,.............................................x
.........

View File

@ -0,0 +1 @@
η.c.η.

View File

@ -0,0 +1 @@
...<2E>

View File

@ -0,0 +1 @@
テ.www.ck(

View File

@ -0,0 +1 @@
x.x|..ÿÿÿÿÿ..ÿÿ.bÉcco.ml.b.b.s.s....b.c.eeF.á ÿ..ý.ÿ

View File

@ -0,0 +1 @@
mb.ct

View File

@ -0,0 +1 @@
x.<2E>

View File

@ -0,0 +1 @@
...0.b

View File

@ -0,0 +1 @@
<EFBFBD>.

View File

@ -0,0 +1 @@
.............e.com

View File

@ -0,0 +1 @@
cc.co.us.cc.co.u.u

View File

@ -0,0 +1 @@
................................................................................................................................................................................................................................................................

View File

@ -0,0 +1 @@
............................................................................................................................................................................

View File

@ -0,0 +1 @@
...com

View File

@ -0,0 +1 @@
ma.e.

View File

@ -0,0 +1 @@
a...

View File

@ -0,0 +1 @@
......................................................................................

View File

@ -0,0 +1 @@
..≥.в≥

View File

@ -0,0 +1 @@
...à

View File

@ -0,0 +1 @@
1.d.

View File

@ -0,0 +1 @@
<EFBFBD>.

Some files were not shown because too many files have changed in this diff Show More