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 0dfe9c2
Show file tree
Hide file tree
Showing 10 changed files with 1,065 additions and 291 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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

- run: cargo install cargo-fuzz

- name: Run Fuzzer
run: cargo +nightly fuzz run --sanitizer none --release parser -- -only_ascii=1 -detect_leaks=0 -max_total_time=900
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ target

__tmp.js
_minimizer-best.json

fuzz/artifacts
fuzz/corpus
Loading

0 comments on commit 0dfe9c2

Please # to comment.