Skip to content

Commit 81902af

Browse files
authored
Fix gitea's native fuzzers (#9378)
gitea's fuzz targets now use Go native fuzzing, and they were moved into a dedicated `fuzz` package (go-gitea/gitea#22376).
1 parent bd32b27 commit 81902af

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

projects/gitea/build.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
#
1616
################################################################################
1717

18-
# external_renderer.go belongs to the main package and is located in the same directory
19-
# as the fuzz tests which belong to the fuzz package. This causes a build failure and
20-
# no fuzzers can be built.
21-
rm -f $SRC/gitea/tools/external_renderer.go
22-
23-
compile_go_fuzzer code.gitea.io/gitea/tools FuzzMarkdownRenderRaw fuzz_markdown_render_raw gofuzz
24-
compile_go_fuzzer code.gitea.io/gitea/tools FuzzMarkupPostProcess fuzz_markup_post_process gofuzz
18+
go get github.com/AdamKorcz/go-118-fuzz-build/testing
19+
compile_native_go_fuzzer code.gitea.io/gitea/tests/fuzz FuzzMarkdownRenderRaw fuzz_markdown_render_raw gofuzz
20+
compile_native_go_fuzzer code.gitea.io/gitea/tests/fuzz FuzzMarkupPostProcess fuzz_markup_post_process gofuzz

0 commit comments

Comments
 (0)