Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/oss-fuzz/dummy-cmd-main.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / oss-fuzz / dummy-cmd-main.c` 14 lines ยท 488 bytes Raw Blame History 1 #include "git-compat-util.h" 2 3 /* 4 * When linking the fuzzers, we link against common-main.o to pick up some 5 * symbols. However, even though we ignore common-main:main(), we still need to 6 * provide all the symbols it references. In the fuzzers' case, we need to 7 * provide a dummy cmd_main() for the linker to be happy. It will never be 8 * executed. 9 */ 10 11 int cmd_main(int argc UNUSED, const char **argv UNUSED) { 12 BUG("We should not execute cmd_main() from a fuzz target"); 13 return 1; 14 }