pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/a9c2bc16349c2be3005f97249f3ae9699988f218

b55097560d244c08.css" /> gh-121023: Improve `_xxtestfuzz/README.rst` (#121024) · python/cpython@a9c2bc1 · GitHub
Skip to content

Commit a9c2bc1

Browse files
sobolevnillia-v
andauthored
gh-121023: Improve _xxtestfuzz/README.rst (#121024)
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
1 parent 3b45df0 commit a9c2bc1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Modules/_xxtestfuzz/README.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,20 @@ Add the test name on a new line in ``fuzz_tests.txt``.
2323

2424
In ``fuzzer.c``, add a function to be run::
2525

26-
int $test_name (const char* data, size_t size) {
26+
static int $fuzz_test_name(const char* data, size_t size) {
2727
...
2828
return 0;
2929
}
3030

3131

3232
And invoke it from ``LLVMFuzzerTestOneInput``::
3333

34-
#if _Py_FUZZ_YES(fuzz_builtin_float)
35-
rv |= _run_fuzz(data, size, fuzz_builtin_float);
34+
#if !defined(_Py_FUZZ_ONE) || defined(_Py_FUZZ_$fuzz_test_name)
35+
rv |= _run_fuzz(data, size, $fuzz_test_name);
3636
#endif
3737

38+
Don't forget to replace ``$fuzz_test_name`` with your actual test name.
39+
3840
``LLVMFuzzerTestOneInput`` will run in oss-fuzz, with each test in
3941
``fuzz_tests.txt`` run separately.
4042

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy