Skip to content

Commit

Permalink
Fuzz every target
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinnerbone committed Jul 5, 2024
1 parent 64c9747 commit 62affb0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ on:
jobs:
fuzzing:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- fuzz_amf0_body
- fuzz_amf0_element_array
- fuzz_amf0_header
- fuzz_amf3_body
- fuzz_amf3_int_signed
- fuzz_amf3_int_unsigned
- fuzz_amf3_string
steps:
- uses: actions/checkout@v4

Expand All @@ -22,10 +32,10 @@ jobs:

- name: Run Fuzzing
run: |
cargo fuzz run fuzz_amf0_body -- -max_total_time=180
cargo fuzz run ${{ matrix.target }} ${{ contains(matrix.target, 'amf3') && '--features amf3' || ''}} -- -max_total_time=180
- uses: actions/upload-artifact@v4
if: failure()
with:
name: fuzz-failures
name: ${{ matrix.target }}
path: fuzz/artifacts/
3 changes: 3 additions & 0 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ cargo-fuzz = true
libfuzzer-sys = "0.4.7"
flash-lso = { path = "../flash-lso", default-features = false}

[features]
amf3 = ["flash-lso/amf3"]

# Prevent this from interfering with workspaces
[workspace]
members = ["."]
Expand Down

0 comments on commit 62affb0

Please sign in to comment.