Skip to content

Commit

Permalink
add cargo-fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Aug 5, 2024
1 parent d15259d commit 632edf9
Show file tree
Hide file tree
Showing 9 changed files with 1,063 additions and 291 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Cargo Fuzz

on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
fuzz:
name: Cargo Fuzz
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1

- uses: Boshen/setup-rust@main
with:
save-cache: ${{ github.ref_name == 'main' }}
tools: cargo-fuzz

- name: Run Fuzzer
run: cargo +nightly fuzz run --sanitizer none --release parser -- -only_ascii=1 -detect_leaks=0 -max_total_time=900
Loading

0 comments on commit 632edf9

Please # to comment.