Commit 6cc9489fd85fe0b89a06ef73ab0186d1e6e026c0

Authored by Jay Berkenbilt
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,6 +33,11 @@ GOOGLE OSS-FUZZ
33 33
34 * qpdf project: https://github.com/google/oss-fuzz/tree/master/projects/qpdf 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 * To test locally, see https://github.com/google/oss-fuzz/tree/master/docs/, 41 * To test locally, see https://github.com/google/oss-fuzz/tree/master/docs/,
37 especially new_project_guide.md. Summary: 42 especially new_project_guide.md. Summary:
38 43
@@ -41,15 +46,15 @@ GOOGLE OSS-FUZZ @@ -41,15 +46,15 @@ GOOGLE OSS-FUZZ
41 Add `-e GITHUB_FORK=fork -e GITHUB_BRANCH=branch` to build_fuzzers 46 Add `-e GITHUB_FORK=fork -e GITHUB_BRANCH=branch` to build_fuzzers
42 from a qpdf fork/branch rather than qpdf/master. 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 To reproduce a test case, build with the correct sanitizer, then run 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 where fuzzer is the fuzzer used in the crash. 59 where fuzzer is the fuzzer used in the crash.
55 60