8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_xxtestfuzz/README.rst
1 parent 9a60a9d commit 9d21c46Copy full SHA for 9d21c46
Modules/_xxtestfuzz/README.rst
@@ -23,18 +23,20 @@ Add the test name on a new line in ``fuzz_tests.txt``.
23
24
In ``fuzzer.c``, add a function to be run::
25
26
- int $test_name (const char* data, size_t size) {
+ static int $fuzz_test_name(const char* data, size_t size) {
27
...
28
return 0;
29
}
30
31
32
And invoke it from ``LLVMFuzzerTestOneInput``::
33
34
- #if _Py_FUZZ_YES(fuzz_builtin_float)
35
- rv |= _run_fuzz(data, size, fuzz_builtin_float);
+ #if !defined(_Py_FUZZ_ONE) || defined(_Py_FUZZ_$fuzz_test_name)
+ rv |= _run_fuzz(data, size, $fuzz_test_name);
36
#endif
37
38
+Don't forget to replace ``$fuzz_test_name`` with your actual test name.
39
+
40
``LLVMFuzzerTestOneInput`` will run in oss-fuzz, with each test in
41
``fuzz_tests.txt`` run separately.
42
0 commit comments