Fuzz all types of builds (idn2, idn, icu, none)
This commit is contained in:
parent
2abce22058
commit
631362d3d0
|
@ -30,19 +30,34 @@ clean-local:
|
|||
fuzz-coverage: $(PSL_TESTS)
|
||||
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:
|
||||
if test "$$OUT" != ""; then \
|
||||
if $$(grep -q '^#define WITH_LIBIDN2 1' $(top_srcdir)/config.h); then XLIBS="-lidn2 -lunistring"; \
|
||||
elif $$(grep -q '^#define WITH_LIBIDN 1' $(top_srcdir)/config.h); then XLIBS="-lidn -lunistring"; \
|
||||
elif $$(grep -q '^#define WITH_LIBICU 1' $(top_srcdir)/config.h); then XLIBS="-licuuc -licudata"; \
|
||||
else XLIBS=""; fi; \
|
||||
for ccfile in *_fuzzer.c; do \
|
||||
fuzzer=$$(basename $$ccfile .c); \
|
||||
$$CXX $$CXXFLAGS -I$(top_srcdir)/include -I$(top_srcdir) \
|
||||
"$${fuzzer}.c" -o "$${fuzzer}" \
|
||||
for cfile in `ls *_fuzzer.c`; do \
|
||||
fuzzer="libpsl$(XTYPE)_"$$(basename $$cfile .c|cut -d'_' -f2-); \
|
||||
$$CXX $$CXXFLAGS $$CPPFLAGS -I$(top_srcdir)/include -I$(top_srcdir) \
|
||||
"$${cfile}" -o "$${fuzzer}" \
|
||||
../src/.libs/libpsl.a $${LIB_FUZZING_ENGINE} \
|
||||
-Wl,-Bstatic \
|
||||
$$XLIBS \
|
||||
$(XLIBS) \
|
||||
-Wl,-Bdynamic; \
|
||||
done; \
|
||||
fi
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<EFBFBD>.
|
|
@ -0,0 +1 @@
|
|||
.............................................................................................................-...................
|
|
@ -0,0 +1 @@
|
|||
Ã.a
|
|
@ -0,0 +1 @@
|
|||
e.com
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.mm.
|
|
@ -0,0 +1 @@
|
|||
ac.'
|
|
@ -0,0 +1,5 @@
|
|||
x
|
||||
x
|
||||
x
|
||||
x
|
||||
x
|
|
@ -0,0 +1 @@
|
|||
l.cc.co.usc...cc.co.usc....co.us<..co.us<
|
|
@ -0,0 +1 @@
|
|||
0emm.0emm.
|
|
@ -0,0 +1 @@
|
|||
x
|
|
@ -0,0 +1 @@
|
|||
...d<>
|
|
@ -0,0 +1 @@
|
|||
cc.co.uscé<63>.s.se
|
|
@ -0,0 +1 @@
|
|||
6.6..в.4..в.в.
|
|
@ -0,0 +1 @@
|
|||
lZź...Z..źÎZ.ĂlddŇŃŃŃŇŃŃ
|
|
@ -0,0 +1 @@
|
|||
酶.酶.酶.<2E>
|
|
@ -0,0 +1 @@
|
|||
י.י
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
.......com
|
|
@ -0,0 +1 @@
|
|||
ac.7
|
|
@ -0,0 +1 @@
|
|||
..d<>.
|
|
@ -0,0 +1 @@
|
|||
o.m.o.mmm
|
|
@ -0,0 +1 @@
|
|||
.............................................................................................................................e.com
|
|
@ -0,0 +1 @@
|
|||
www.ck
|
|
@ -0,0 +1 @@
|
|||
......................................................................mmmmmmmmmmm.........................................................................................
|
|
@ -0,0 +1 @@
|
|||
в≥в╗в.в≥в╗в..в≥в╗в..в≥в╗в.в≥вв╗в..в≥в╗в.в≥в╗в..в≥в╗в.в╗в..в≥в╗в.в≥в╗в.
|
|
@ -0,0 +1 @@
|
|||
..mm
|
|
@ -0,0 +1 @@
|
|||
ca.a.
|
|
@ -0,0 +1 @@
|
|||
a..и.
|
|
@ -0,0 +1 @@
|
|||
.............................e.com
|
|
@ -0,0 +1 @@
|
|||
6.6.6.в.4..в.4..в.в.6.6.в.4..в.4..в.в.6.в.4..в.4..4..в.4..в.вв.в.
|
|
@ -0,0 +1 @@
|
|||
x.c.....c
|
|
@ -0,0 +1 @@
|
|||
.в.в≥в.co.keFЪЪX:X:ccoм.dЪIЪУ.dЪм.dЪIЪУ.dЪЪЪ╓ц╤*.ц╓Ю
|
|
@ -0,0 +1 @@
|
|||
mm.
|
|
@ -0,0 +1 @@
|
|||
j<EFBFBD>.j<>
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
...m<>
|
|
@ -0,0 +1 @@
|
|||
t.t.t.
|
|
@ -0,0 +1 @@
|
|||
...mb<6D>
|
|
@ -0,0 +1 @@
|
|||
...и..
|
|
@ -0,0 +1 @@
|
|||
...........................................................................................................................................................................
|
|
@ -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.η.
|
|
@ -0,0 +1 @@
|
|||
fbxos.fbxos.fbxos.fbxos.fbxos.fbxos.fbxos.fxos.fbxos.fbxos.fbxos.fbxos.fbxos.fbxos.fbxos.fxos.
|
|
@ -0,0 +1 @@
|
|||
...η
|
|
@ -0,0 +1 @@
|
|||
d.d.
|
|
@ -0,0 +1 @@
|
|||
.(..s.se
|
|
@ -0,0 +1 @@
|
|||
XBBBBBBBBBBBBBBBB.BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBxc}m
|
|
@ -0,0 +1 @@
|
|||
............................................
|
|
@ -0,0 +1 @@
|
|||
t.o.
|
|
@ -0,0 +1 @@
|
|||
M....*.シZ..テシ..c.udヒZld.
|
|
@ -0,0 +1 @@
|
|||
co..
|
|
@ -0,0 +1 @@
|
|||
<EFBFBD>.
|
|
@ -0,0 +1 @@
|
|||
fbxos.fbxos.
|
|
@ -0,0 +1,2 @@
|
|||
................'...........................................................,.............................................x
|
||||
.........
|
|
@ -0,0 +1 @@
|
|||
6.6..
|
|
@ -0,0 +1 @@
|
|||
x.e.
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
y.
|
|
@ -0,0 +1 @@
|
|||
.c.la
|
|
@ -0,0 +1 @@
|
|||
<EFBFBD>.<2E>.s.se
|
|
@ -0,0 +1 @@
|
|||
o.И
|
|
@ -0,0 +1 @@
|
|||
ト祭.
|
|
@ -0,0 +1 @@
|
|||
.......dテ.
|
|
@ -0,0 +1 @@
|
|||
...в
|
|
@ -0,0 +1 @@
|
|||
V.e.
|
|
@ -0,0 +1 @@
|
|||
9.
|
|
@ -0,0 +1 @@
|
|||
<EFBFBD>.6.
|
|
@ -0,0 +1 @@
|
|||
...3.
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
km.km.mt!tm.km.km.km.km.
|
|
@ -0,0 +1 @@
|
|||
.
|
|
@ -0,0 +1 @@
|
|||
....в≥.в╪Ш╪d:.
|
|
@ -0,0 +1 @@
|
|||
a.<2E>
|
|
@ -0,0 +1 @@
|
|||
............................................................................................................................................................................................................................................*.........<2E>.........<2E>..
|
|
@ -0,0 +1,2 @@
|
|||
............................................................................,.............................................x
|
||||
.........
|
|
@ -0,0 +1 @@
|
|||
η.c.η.
|
|
@ -0,0 +1 @@
|
|||
...<2E>
|
|
@ -0,0 +1 @@
|
|||
q.
|
|
@ -0,0 +1 @@
|
|||
テ.www.ck(
|
|
@ -0,0 +1 @@
|
|||
x.x|..ÿÿÿÿÿ..ÿÿ.bÉcco.ml.b.b.s.s....b.c.eeF.á ÿ..ý.ÿ
|
|
@ -0,0 +1 @@
|
|||
mb.ct
|
|
@ -0,0 +1 @@
|
|||
x.<2E>
|
|
@ -0,0 +1 @@
|
|||
...0.b
|
|
@ -0,0 +1 @@
|
|||
<EFBFBD>.
|
|
@ -0,0 +1 @@
|
|||
.............e.com
|
|
@ -0,0 +1 @@
|
|||
cc.co.us.cc.co.u.u
|
|
@ -0,0 +1 @@
|
|||
................................................................................................................................................................................................................................................................
|
|
@ -0,0 +1 @@
|
|||
............................................................................................................................................................................
|
|
@ -0,0 +1 @@
|
|||
...com
|
|
@ -0,0 +1 @@
|
|||
ma.e.
|
|
@ -0,0 +1 @@
|
|||
a...
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
......................................................................................
|
|
@ -0,0 +1 @@
|
|||
..≥.в≥
|
|
@ -0,0 +1 @@
|
|||
...à
|
|
@ -0,0 +1 @@
|
|||
1.d.
|
|
@ -0,0 +1 @@
|
|||
<EFBFBD>.
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue