diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-01-29 16:03:00 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-01-29 16:03:00 -0800 |
| commit | 9869e02a645babb91be500ea11eabddc551850e2 (patch) | |
| tree | 1eeac336ec352a0fc42a4f0f0c1cdced68117f9d /oss-fuzz | |
| parent | 68812df3100aa5b2cbdd9ee72b1e8bbee8e8a0b1 (diff) | |
| parent | c4a9cf1df38439ff40b8d64d8982a9cdcd345396 (diff) | |
| download | git-9869e02a645babb91be500ea11eabddc551850e2.tar.xz | |
Merge branch 'js/oss-fuzz-build-in-ci'
oss-fuzz tests are built and run in CI.
* js/oss-fuzz-build-in-ci:
ci: build and run minimal fuzzers in GitHub CI
fuzz: fix fuzz test build rules
Diffstat (limited to 'oss-fuzz')
| -rw-r--r-- | oss-fuzz/dummy-cmd-main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/oss-fuzz/dummy-cmd-main.c b/oss-fuzz/dummy-cmd-main.c new file mode 100644 index 0000000000..071cb231ba --- /dev/null +++ b/oss-fuzz/dummy-cmd-main.c @@ -0,0 +1,14 @@ +#include "git-compat-util.h" + +/* + * When linking the fuzzers, we link against common-main.o to pick up some + * symbols. However, even though we ignore common-main:main(), we still need to + * provide all the symbols it references. In the fuzzers' case, we need to + * provide a dummy cmd_main() for the linker to be happy. It will never be + * executed. + */ + +int cmd_main(int argc, const char **argv) { + BUG("We should not execute cmd_main() from a fuzz target"); + return 1; +} |
