diff options
author | Yves-Alexis Perez <corsac@debian.org> | 2018-09-24 15:11:14 +0200 |
---|---|---|
committer | Yves-Alexis Perez <corsac@debian.org> | 2018-09-24 15:11:14 +0200 |
commit | e0e280b7669435b991b7e457abd8aa450930b3e8 (patch) | |
tree | 3e6084f13b14ad2df104e2ce6e589eb96c5f7ac9 /fuzz/Makefile.am | |
parent | 51a71ee15c1bcf0e82f363a16898f571e211f9c3 (diff) | |
download | vyos-strongswan-e0e280b7669435b991b7e457abd8aa450930b3e8.tar.gz vyos-strongswan-e0e280b7669435b991b7e457abd8aa450930b3e8.zip |
New upstream version 5.7.0
Diffstat (limited to 'fuzz/Makefile.am')
-rw-r--r-- | fuzz/Makefile.am | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am index 3962896f6..df228d38b 100644 --- a/fuzz/Makefile.am +++ b/fuzz/Makefile.am @@ -1,5 +1,10 @@ AM_CPPFLAGS = @CPPFLAGS@ \ -I$(top_srcdir)/src/libstrongswan \ + -I$(top_srcdir)/src/libimcv \ + -I$(top_srcdir)/src/libtncif \ + -I$(top_srcdir)/src/libtpmtss \ + -I$(top_srcdir)/src/libtnccs \ + -I$(top_srcdir)/src/libtnccs/plugins/tnccs_20 \ -DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \ -DPLUGINS="\"${fuzz_plugins}\"" @@ -8,7 +13,18 @@ fuzz_ldflags = ${libfuzzer} \ -Wl,-Bstatic -lgmp -Wl,-Bdynamic \ @FUZZING_LDFLAGS@ -FUZZ_TARGETS=fuzz_certs fuzz_crls +pa_tnc_ldflags = \ + $(top_builddir)/src/libimcv/.libs/libimcv.a \ + $(top_builddir)/src/libtncif/.libs/libtncif.a \ + $(top_builddir)/src/libtpmtss/.libs/libtpmtss.a \ + $(fuzz_ldflags) + +pb_tnc_ldflags = \ + $(top_builddir)/src/libtnccs/.libs/libtnccs.a \ + $(top_builddir)/src/libtncif/.libs/libtncif.a \ + $(fuzz_ldflags) + +FUZZ_TARGETS=fuzz_certs fuzz_crls fuzz_pa_tnc fuzz_pb_tnc all-local: $(FUZZ_TARGETS) @@ -20,6 +36,12 @@ fuzz_certs: fuzz_certs.c ${libfuzzer} fuzz_crls: fuzz_crls.c ${libfuzzer} $(CC) $(AM_CPPFLAGS) $(CFLAGS) -o $@ $< $(fuzz_ldflags) +fuzz_pa_tnc: fuzz_pa_tnc.c ${libfuzzer} + $(CC) $(AM_CPPFLAGS) $(CFLAGS) -o $@ $< $(pa_tnc_ldflags) + +fuzz_pb_tnc: fuzz_pb_tnc.c ${libfuzzer} + $(CC) $(AM_CPPFLAGS) $(CFLAGS) -o $@ $< $(pb_tnc_ldflags) + noinst_LIBRARIES = libFuzzerLocal.a libFuzzerLocal_a_SOURCES = libFuzzerLocal.c libFuzzerLocal_a_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la @@ -27,7 +49,6 @@ libFuzzerLocal_a_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la check: all for f in $(FUZZ_TARGETS); do \ corpus=$${f#fuzz_}; \ - corpus=$${corpus%%_*}; \ ./$$f $(FUZZING_CORPORA)/$${corpus}/*; \ crashes=$(FUZZING_CORPORA)/$${corpus}-crash; \ test ! -d $${crashes} || ./$$f $${crashes}/*; \ |