diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-01-22 13:05:50 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-01-22 12:37:33 -0800 |
| commit | 28911f7dcad1ccc6ac4f6939036de76bb4f4c09b (patch) | |
| tree | db6ebb21a3b8307e0a827bbf77266839c99b3dbb /oss-fuzz | |
| parent | meson: wire up generation of distribution archive (diff) | |
| download | git-28911f7dcad1ccc6ac4f6939036de76bb4f4c09b.tar.gz git-28911f7dcad1ccc6ac4f6939036de76bb4f4c09b.zip | |
meson: wire up fuzzers
Meson does not yet know to build our fuzzers. Introduce a new build
option "fuzzers" and wire up the fuzzers in case it is enabled. Adapt
our CI jobs so that they build the fuzzers by default.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'oss-fuzz')
| -rw-r--r-- | oss-fuzz/meson.build | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/oss-fuzz/meson.build b/oss-fuzz/meson.build new file mode 100644 index 0000000000..ed79665501 --- /dev/null +++ b/oss-fuzz/meson.build @@ -0,0 +1,20 @@ +fuzz_programs = [ + 'fuzz-commit-graph.c', + 'fuzz-config.c', + 'fuzz-credential-from-url-gently.c', + 'fuzz-date.c', + 'fuzz-pack-headers.c', + 'fuzz-pack-idx.c', + 'fuzz-parse-attr-line.c', + 'fuzz-url-decode-mem.c', +] + +foreach fuzz_program : fuzz_programs + executable(fs.stem(fuzz_program), + sources: [ + 'dummy-cmd-main.c', + fuzz_program, + ], + dependencies: [libgit, common_main], + ) +endforeach |
