2016-11-18 22:59:10 +00:00
|
|
|
# base-runner
|
|
|
|
> Base image for fuzzer runners.
|
|
|
|
|
|
|
|
```bash
|
2017-03-22 19:12:51 +00:00
|
|
|
docker run -ti gcr.io/oss-fuzz-base/base-runner <command> <args>
|
2016-11-18 22:59:10 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Commands
|
|
|
|
|
|
|
|
| Command | Description |
|
|
|
|
|---------|-------------|
|
2017-01-03 19:04:50 +00:00
|
|
|
| `reproduce <fuzzer_name> <fuzzer_options>` | build all fuzz targets and run specified one with testcase `/testcase` and given options.
|
2016-11-18 22:59:10 +00:00
|
|
|
| `run_fuzzer <fuzzer_name> <fuzzer_options>` | runs specified fuzzer combining options with `.options` file |
|
2020-12-03 20:52:34 +00:00
|
|
|
| `test_all.py` | runs every binary in `/out` as a fuzzer for a while to ensure it works. |
|
2016-11-18 22:59:10 +00:00
|
|
|
|
2017-01-03 19:04:50 +00:00
|
|
|
# Examples
|
|
|
|
|
|
|
|
- *Reproduce using latest OSS-Fuzz build:*
|
|
|
|
|
2017-12-22 17:09:40 +00:00
|
|
|
<pre>
|
2017-03-16 02:10:01 +00:00
|
|
|
docker 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>
|
2017-12-22 17:09:40 +00:00
|
|
|
</pre>
|
2017-01-03 19:04:50 +00:00
|
|
|
|
|
|
|
- *Reproduce using local source checkout:*
|
|
|
|
|
2017-12-22 17:09:40 +00:00
|
|
|
<pre>
|
|
|
|
docker run --rm -ti -v <b><i><source_path></i></b>:/src/<b><i>$PROJECT_NAME</i></b> \
|
|
|
|
-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>
|
|
|
|
</pre>
|