Commit 6cc9489fd85fe0b89a06ef73ab0186d1e6e026c0
1 parent
956c8f64
Update fuzz information
Showing
1 changed file
with
11 additions
and
6 deletions
README-maintainer
| ... | ... | @@ -33,6 +33,11 @@ GOOGLE OSS-FUZZ |
| 33 | 33 | |
| 34 | 34 | * qpdf project: https://github.com/google/oss-fuzz/tree/master/projects/qpdf |
| 35 | 35 | |
| 36 | +* Adding new test cases: download the file from oss-fuzz and drop it | |
| 37 | + in fuzz/qpdf_extra/issue-number.fuzz. If not ready to include, it | |
| 38 | + can be stored anywhere, and the absolute path can be passed to the | |
| 39 | + reproduction code as described below. | |
| 40 | + | |
| 36 | 41 | * To test locally, see https://github.com/google/oss-fuzz/tree/master/docs/, |
| 37 | 42 | especially new_project_guide.md. Summary: |
| 38 | 43 | |
| ... | ... | @@ -41,15 +46,15 @@ GOOGLE OSS-FUZZ |
| 41 | 46 | Add `-e GITHUB_FORK=fork -e GITHUB_BRANCH=branch` to build_fuzzers |
| 42 | 47 | from a qpdf fork/branch rather than qpdf/master. |
| 43 | 48 | |
| 44 | - python infra/helper.py build_image --pull qpdf | |
| 45 | - python infra/helper.py build_fuzzers [ --sanitizer memory|undefined|address ] qpdf | |
| 46 | - python infra/helper.py check_build qpdf | |
| 47 | - python infra/helper.py build_fuzzers --sanitizer coverage qpdf | |
| 48 | - python infra/helper.py coverage qpdf | |
| 49 | + python3 infra/helper.py build_image --pull qpdf | |
| 50 | + python3 infra/helper.py build_fuzzers [ --sanitizer memory|undefined|address ] qpdf | |
| 51 | + python3 infra/helper.py check_build qpdf | |
| 52 | + python3 infra/helper.py build_fuzzers --sanitizer coverage qpdf | |
| 53 | + python3 infra/helper.py coverage qpdf | |
| 49 | 54 | |
| 50 | 55 | To reproduce a test case, build with the correct sanitizer, then run |
| 51 | 56 | |
| 52 | - python infra/helper.py reproduce qpdf fuzzer testcase | |
| 57 | + python3 infra/helper.py reproduce qpdf <specific-fuzzer> testcase | |
| 53 | 58 | |
| 54 | 59 | where fuzzer is the fuzzer used in the crash. |
| 55 | 60 | ... | ... |