git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2] fuzz: reorganise the path for existing oss-fuzz fuzzers

From
Arthur Chan via GitGitGadget <gitgitgadget@gmail.com>
Date
Sep 17, 2022, 23:28 UTC
Message-ID
<pull.1353.v2.git.1663457311149.gitgitgadget@gmail.com>
In-Reply-To
<pull.1353.git.1663355009333.gitgitgadget@gmail.com>
From: Arthur Chan <arthur.chan@adalogics.com>

This patch is aimed to provide a better organisation for oss-fuzz fuzzers, allowing more fuzzers for the git project to be added in later development.

A new direrctory oss-fuzz has been created and existing fuzzers are moved into the new directory. Makefile and .gitignore have been fixed accordingly.

CC: Josh Steadmon <steadmon@google.com>
CC: David Korczynski <david@adalogics.com>
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
---
    fuzz: reorganise the path for existing oss-fuzz fuzzers
    
    This patch is aimed to provide a better organisation for oss-fuzz
    fuzzers, allowing more fuzzers for the git project to be added in later
    development.
    
    A new directory oss-fuzz has been created and existing fuzzers are moved
    into the new directory. Makefile and .gitignore have been fixed
    accordingly.
    
    CC: Josh Steadmon steadmon@google.com CC: David Korczynski
    david@adalogics.com Signed-off-by: Arthur Chan arthur.chan@adalogics.com
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1353%2Farthurscchan%2Frelocate-fuzzer-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1353/arthurscchan/relocate-fuzzer-v2
Pull-Request: https://github.com/gitgitgadget/git/pull/1353
Range-diff vs v1:
 1:  1cc90522b7b ! 1:  c056429897a fuzz: reorganise the path for existing oss-fuzz fuzzers
     @@ Commit message
      
          This patch is aimed to provide a better organisation for oss-fuzz
          fuzzers, allowing more fuzzers for the git project to be added
     -    in a later development.
     +    in later development.
      
     -    A new folder oss-fuzz has been created and existing fuzzers are
     -    moved into the new folders. Makefile has been fixed accordingly.
     +    A new direrctory oss-fuzz has been created and existing fuzzers are
     +    moved into the new directory. Makefile and .gitignore have been
     +    fixed accordingly.
      
          CC: Josh Steadmon <steadmon@google.com>
          CC: David Korczynski <david@adalogics.com>
          Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
      
     + ## .gitignore ##
     +@@
     +-/fuzz-commit-graph
     +-/fuzz_corpora
     +-/fuzz-pack-headers
     ++/oss-fuzz/fuzz-commit-graph
     ++/oss-fuzz/fuzz_corpora
     ++/oss-fuzz/fuzz-pack-headers
     + /fuzz-pack-idx
     + /GIT-BUILD-OPTIONS
     + /GIT-CFLAGS
     +
       ## Makefile ##
      @@ Makefile: SCRIPTS = $(SCRIPT_SH_GEN) \
       
 .gitignore                                          | 6 +++---
 Makefile                                            | 6 +++---
 fuzz-commit-graph.c => oss-fuzz/fuzz-commit-graph.c | 0
 fuzz-pack-headers.c => oss-fuzz/fuzz-pack-headers.c | 0
 fuzz-pack-idx.c => oss-fuzz/fuzz-pack-idx.c         | 0
 5 files changed, 6 insertions(+), 6 deletions(-)
 rename fuzz-commit-graph.c => oss-fuzz/fuzz-commit-graph.c (100%)
 rename fuzz-pack-headers.c => oss-fuzz/fuzz-pack-headers.c (100%)
 rename fuzz-pack-idx.c => oss-fuzz/fuzz-pack-idx.c (100%)
diff --git a/.gitignore b/.gitignore
index 80b530bbed2..9e810c07ba9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
-/fuzz-commit-graph
-/fuzz_corpora
-/fuzz-pack-headers
+/oss-fuzz/fuzz-commit-graph
+/oss-fuzz/fuzz_corpora
+/oss-fuzz/fuzz-pack-headers
 /fuzz-pack-idx
 /GIT-BUILD-OPTIONS
 /GIT-CFLAGS
diff --git a/Makefile b/Makefile
index d9247ead45b..2d56aae7a1d 100644
--- a/Makefile
+++ b/Makefile
@@ -686,9 +686,9 @@ SCRIPTS = $(SCRIPT_SH_GEN) \
 
 ETAGS_TARGET = TAGS
 
-FUZZ_OBJS += fuzz-commit-graph.o
-FUZZ_OBJS += fuzz-pack-headers.o
-FUZZ_OBJS += fuzz-pack-idx.o
+FUZZ_OBJS += oss-fuzz/fuzz-commit-graph.o
+FUZZ_OBJS += oss-fuzz/fuzz-pack-headers.o
+FUZZ_OBJS += oss-fuzz/fuzz-pack-idx.o
 .PHONY: fuzz-objs
 fuzz-objs: $(FUZZ_OBJS)
 
diff --git a/fuzz-commit-graph.c b/oss-fuzz/fuzz-commit-graph.c
similarity index 100%
rename from fuzz-commit-graph.c
rename to oss-fuzz/fuzz-commit-graph.c
diff --git a/fuzz-pack-headers.c b/oss-fuzz/fuzz-pack-headers.c
similarity index 100%
rename from fuzz-pack-headers.c
rename to oss-fuzz/fuzz-pack-headers.c
diff --git a/fuzz-pack-idx.c b/oss-fuzz/fuzz-pack-idx.c
similarity index 100%
rename from fuzz-pack-idx.c
rename to oss-fuzz/fuzz-pack-idx.c

base-commit: d3fa443f97e3a8d75b51341e2d5bac380b7422df
-- 
gitgitgadget
Previous: Arthur ChanNext: Arthur Chan via GitGitGadget
Message 4 of 9 in “fuzz: reorganise the path for existing oss-fuzz fuzzers”
  1. fuzz: reorganise the path for existing oss-fuzz fuzzersArthur Chan via GitGitGadget, Sep 16, 2022
  2. Junio C HamanoSep 16, 2022
  3. Arthur ChanSep 17, 2022
  4. fuzz: reorganise the path for existing oss-fuzz fuzzersArthur Chan via GitGitGadget, Sep 17, 2022
  5. fuzz: reorganise the path for existing oss-fuzz fuzzersArthur Chan via GitGitGadget, Sep 18, 2022
  6. Ævar Arnfjörð BjarmasonSep 19, 2022
  7. fuzz: reorganise the path for existing oss-fuzz fuzzersArthur Chan via GitGitGadget, Sep 19, 2022
  8. Junio C HamanoSep 19, 2022
  9. Junio C HamanoSep 19, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.