From ea7a70e85df7c28148f0f56fa6486ef00ba12938 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 15 Feb 2021 07:35:19 -0700 Subject: [PATCH] For "make fuzz" only fuzz the seed corpus. This way we avoid files generated by the fuzzer itself. --- MANIFEST | 14 +++++++------- lib/iolog/Makefile.in | 6 +++--- lib/iolog/regress/corpus/log_legacy/{id => id.log} | 0 lib/iolog/regress/corpus/log_legacy/{ls => ls.log} | 0 .../regress/corpus/log_legacy/{mailq => mailq.log} | 0 .../regress/corpus/log_legacy/{make => make.log} | 0 .../corpus/log_legacy/{pkg_add => pkg_add.log} | 0 .../log_legacy/{pkg_delete => pkg_delete.log} | 0 .../corpus/log_legacy/{printenv => printenv.log} | 0 plugins/sudoers/Makefile.in | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) rename lib/iolog/regress/corpus/log_legacy/{id => id.log} (100%) rename lib/iolog/regress/corpus/log_legacy/{ls => ls.log} (100%) rename lib/iolog/regress/corpus/log_legacy/{mailq => mailq.log} (100%) rename lib/iolog/regress/corpus/log_legacy/{make => make.log} (100%) rename lib/iolog/regress/corpus/log_legacy/{pkg_add => pkg_add.log} (100%) rename lib/iolog/regress/corpus/log_legacy/{pkg_delete => pkg_delete.log} (100%) rename lib/iolog/regress/corpus/log_legacy/{printenv => printenv.log} (100%) diff --git a/MANIFEST b/MANIFEST index 9a7920a5c..6ce9da93c 100644 --- a/MANIFEST +++ b/MANIFEST @@ -125,13 +125,13 @@ lib/iolog/regress/corpus/log_json/make.json lib/iolog/regress/corpus/log_json/pkg_add.json lib/iolog/regress/corpus/log_json/pkg_delete.json lib/iolog/regress/corpus/log_json/printenv.json -lib/iolog/regress/corpus/log_legacy/id -lib/iolog/regress/corpus/log_legacy/ls -lib/iolog/regress/corpus/log_legacy/mailq -lib/iolog/regress/corpus/log_legacy/make -lib/iolog/regress/corpus/log_legacy/pkg_add -lib/iolog/regress/corpus/log_legacy/pkg_delete -lib/iolog/regress/corpus/log_legacy/printenv +lib/iolog/regress/corpus/log_legacy/id.log +lib/iolog/regress/corpus/log_legacy/ls.log +lib/iolog/regress/corpus/log_legacy/mailq.log +lib/iolog/regress/corpus/log_legacy/make.log +lib/iolog/regress/corpus/log_legacy/pkg_add.log +lib/iolog/regress/corpus/log_legacy/pkg_delete.log +lib/iolog/regress/corpus/log_legacy/printenv.log lib/iolog/regress/corpus/timing/timing.1 lib/iolog/regress/corpus/timing/timing.2 lib/iolog/regress/corpus/timing/timing.3 diff --git a/lib/iolog/Makefile.in b/lib/iolog/Makefile.in index 02014f32c..453e3a642 100644 --- a/lib/iolog/Makefile.in +++ b/lib/iolog/Makefile.in @@ -195,11 +195,11 @@ pvs-log-files: $(POBJS) fuzz: $(FUZZ_PROGS) @if test X"$(cross_compiling)" != X"yes"; then \ echo "fuzz_iolog_legacy: verifying corpus"; \ - ./fuzz_iolog_legacy $(srcdir)/regress/corpus/log_legacy/*; \ + ./fuzz_iolog_legacy $(srcdir)/regress/corpus/log_legacy/*.log; \ echo "fuzz_iolog_json: verifying corpus"; \ - ./fuzz_iolog_json $(srcdir)/regress/corpus/log_json/*; \ + ./fuzz_iolog_json $(srcdir)/regress/corpus/log_json/*.json; \ echo "fuzz_iolog_timing: verifying corpus"; \ - ./fuzz_iolog_timing $(srcdir)/regress/corpus/timing/*; \ + ./fuzz_iolog_timing $(srcdir)/regress/corpus/timing/timing.*; \ fi check: $(TEST_PROGS) fuzz diff --git a/lib/iolog/regress/corpus/log_legacy/id b/lib/iolog/regress/corpus/log_legacy/id.log similarity index 100% rename from lib/iolog/regress/corpus/log_legacy/id rename to lib/iolog/regress/corpus/log_legacy/id.log diff --git a/lib/iolog/regress/corpus/log_legacy/ls b/lib/iolog/regress/corpus/log_legacy/ls.log similarity index 100% rename from lib/iolog/regress/corpus/log_legacy/ls rename to lib/iolog/regress/corpus/log_legacy/ls.log diff --git a/lib/iolog/regress/corpus/log_legacy/mailq b/lib/iolog/regress/corpus/log_legacy/mailq.log similarity index 100% rename from lib/iolog/regress/corpus/log_legacy/mailq rename to lib/iolog/regress/corpus/log_legacy/mailq.log diff --git a/lib/iolog/regress/corpus/log_legacy/make b/lib/iolog/regress/corpus/log_legacy/make.log similarity index 100% rename from lib/iolog/regress/corpus/log_legacy/make rename to lib/iolog/regress/corpus/log_legacy/make.log diff --git a/lib/iolog/regress/corpus/log_legacy/pkg_add b/lib/iolog/regress/corpus/log_legacy/pkg_add.log similarity index 100% rename from lib/iolog/regress/corpus/log_legacy/pkg_add rename to lib/iolog/regress/corpus/log_legacy/pkg_add.log diff --git a/lib/iolog/regress/corpus/log_legacy/pkg_delete b/lib/iolog/regress/corpus/log_legacy/pkg_delete.log similarity index 100% rename from lib/iolog/regress/corpus/log_legacy/pkg_delete rename to lib/iolog/regress/corpus/log_legacy/pkg_delete.log diff --git a/lib/iolog/regress/corpus/log_legacy/printenv b/lib/iolog/regress/corpus/log_legacy/printenv.log similarity index 100% rename from lib/iolog/regress/corpus/log_legacy/printenv rename to lib/iolog/regress/corpus/log_legacy/printenv.log diff --git a/plugins/sudoers/Makefile.in b/plugins/sudoers/Makefile.in index d61253a1b..ca9e8dd6a 100644 --- a/plugins/sudoers/Makefile.in +++ b/plugins/sudoers/Makefile.in @@ -490,7 +490,7 @@ fuzz: $(FUZZ_PROGS) echo "fuzz_sudoers-ldif: verifying corpus"; \ ./fuzz_sudoers_ldif $(srcdir)/regress/sudoers/*.ldif.ok; \ echo "fuzz_policy: verifying corpus"; \ - ./fuzz_policy $(srcdir)/regress/corpus/policy/*; \ + ./fuzz_policy $(srcdir)/regress/corpus/policy/policy.*; \ fi check: $(TEST_PROGS) visudo testsudoers cvtsudoers fuzz