Fix gitea's native fuzzers (#9378)

gitea's fuzz targets now use Go native fuzzing, and they were moved into
a dedicated `fuzz` package
(https://github.com/go-gitea/gitea/pull/22376).
This commit is contained in:
Khaled Yakdan 2023-01-09 03:30:41 -08:00 committed by GitHub
parent bd32b27660
commit 81902af8c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

@ -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