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
This commit is contained in:
14
oss-fuzz/dummy-cmd-main.c
Normal file
14
oss-fuzz/dummy-cmd-main.c
Normal file
@ -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;
|
||||
}
|
Reference in New Issue
Block a user