README.md
1# base-runner
2> Base image for fuzzer runners.
3
4```bash
5docker run -ti gcr.io/oss-fuzz-base/base-runner <command> <args>
6```
7
8## Commands
9
10| Command | Description |
11|---------|-------------|
12| `reproduce <fuzzer_name> <fuzzer_options>` | build all fuzz targets and run specified one with testcase `/testcase` and given options.
13| `run_fuzzer <fuzzer_name> <fuzzer_options>` | runs specified fuzzer combining options with `.options` file |
14| `test_all.py` | runs every binary in `/out` as a fuzzer for a while to ensure it works. |
15
16# Examples
17
18- *Reproduce using latest OSS-Fuzz build:*
19
20<pre>
21docker run --rm -ti -v <b><i><testcase_path></i></b>:/testcase gcr.io/oss-fuzz/<b><i>$PROJECT_NAME</i></b> reproduce <b><i><fuzzer_name></i></b>
22</pre>
23
24- *Reproduce using local source checkout:*
25
26<pre>
27docker run --rm -ti -v <b><i><source_path></i></b>:/src/<b><i>$PROJECT_NAME</i></b> \
28 -v <b><i><testcase_path></i></b>:/testcase gcr.io/oss-fuzz/<b><i>$PROJECT_NAME</i></b> \
29 reproduce <b><i><fuzzer_name></i></b>
30</pre>
31