diff options
author | AdamKorcz <44787359+AdamKorcz@users.noreply.github.com> | 2022-02-15 11:52:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 11:52:36 +0000 |
commit | de14727b89ac64f9718e2c108ee9545ef1a43c43 (patch) | |
tree | d62038bdb380ee44f555c364a2b2d43a95819009 /docs | |
parent | 598198bddecf3214f977fa0064b2c02d20a181d5 (diff) |
native Go fuzzing: Update docs (#7286)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/getting-started/new-project-guide/go_lang.md | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/docs/getting-started/new-project-guide/go_lang.md b/docs/getting-started/new-project-guide/go_lang.md index 59057ef7..d5e21089 100644 --- a/docs/getting-started/new-project-guide/go_lang.md +++ b/docs/getting-started/new-project-guide/go_lang.md @@ -53,18 +53,6 @@ Some requirements for native Go 1.18 fuzzers are: * The only `testing.F` method supported is currently `F.Fuzz()`. * `F.Add()` will not add seeds when fuzzing. To provide OSS-fuzz with a seed corpus, follow the documentation [here](https://google.github.io/oss-fuzz/getting-started/new-project-guide/#seed-corpus). -### Troubleshooting -```console -main.1320908145.go:8:2: found packages nativefuzzing fuzzer_test.go_fuzz_.go) and main (main.1320908145.go) in /src/project/go/test/fuzzing/nativefuzzing -``` - -This issue occurs because the cwd is a directory with a non-main package when running `compile_native_go_fuzzer`. To solve it, create a temporary directory in your project tree and `cd` into it before running `compile_native_go_fuzzer`: - -```sh -mkdir tmp && cd tmp -compile_native_go_fuzzer $path $fuzz_function $binary_name -``` - ## Project files First, you need to write a Go fuzz target. This fuzz target should reside in your project |