Skip to content

Commit

Permalink
Fix gitea's native fuzzers (google#9378)
Browse files Browse the repository at this point in the history
gitea's fuzz targets now use Go native fuzzing, and they were moved into
a dedicated `fuzz` package
(go-gitea/gitea#22376).
  • Loading branch information
kyakdan authored and eamonnmcmanus committed Mar 15, 2023
1 parent 0f04aa6 commit 95f6e6b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions projects/gitea/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
#
################################################################################

# external_renderer.go belongs to the main package and is located in the same directory
# as the fuzz tests which belong to the fuzz package. This causes a build failure and
# no fuzzers can be built.
rm -f $SRC/gitea/tools/external_renderer.go

compile_go_fuzzer code.gitea.io/gitea/tools FuzzMarkdownRenderRaw fuzz_markdown_render_raw gofuzz
compile_go_fuzzer code.gitea.io/gitea/tools FuzzMarkupPostProcess fuzz_markup_post_process gofuzz
go get github.com/AdamKorcz/go-118-fuzz-build/testing
compile_native_go_fuzzer code.gitea.io/gitea/tests/fuzz FuzzMarkdownRenderRaw fuzz_markdown_render_raw gofuzz
compile_native_go_fuzzer code.gitea.io/gitea/tests/fuzz FuzzMarkupPostProcess fuzz_markup_post_process gofuzz

0 comments on commit 95f6e6b

Please sign in to comment.