File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,20 @@ Add the test name on a new line in ``fuzz_tests.txt``.
20
20
21
21
In ``fuzzer.c ``, add a function to be run::
22
22
23
- int $test_name (const char* data, size_t size) {
23
+ static int $fuzz_test_name (const char* data, size_t size) {
24
24
...
25
25
return 0;
26
26
}
27
27
28
28
29
29
And invoke it from ``LLVMFuzzerTestOneInput ``::
30
30
31
- #if _Py_FUZZ_YES(fuzz_builtin_float )
32
- rv |= _run_fuzz(data, size, fuzz_builtin_float );
31
+ #if !defined(_Py_FUZZ_ONE) || defined(_Py_FUZZ_$fuzz_test_name )
32
+ rv |= _run_fuzz(data, size, $fuzz_test_name );
33
33
#endif
34
34
35
+ Don't forget to replace ``$fuzz_test_name `` with your actual test name.
36
+
35
37
``LLVMFuzzerTestOneInput `` will run in oss-fuzz, with each test in
36
38
``fuzz_tests.txt `` run separately.
37
39
You can’t perform that action at this time.
0 commit comments