Skip to content

Add support to fuzz with sanitizers #40

Add support to fuzz with sanitizers

Add support to fuzz with sanitizers #40

Workflow file for this run

name: oss-fuzz
on: [pull_request]
jobs:
fuzz:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sanitizer: [address, undefined, memory]
steps:
- name: Build Fuzzers (${{ matrix.sanitizer }})
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'jansson'
sanitizer: ${{ matrix.sanitizer }}
dry-run: false
- name: Run Fuzzers (${{ matrix.sanitizer }})
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'jansson'
sanitizer: ${{ matrix.sanitizer }}
fuzz-seconds: 600
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
path: ./out/artifacts