From b065539c078fc27cbf15232e1f47d06d29c54c18 Mon Sep 17 00:00:00 2001 From: 5225225 <5225225@mailbox.org> Date: Sat, 18 Sep 2021 14:42:53 +0100 Subject: [PATCH] Add fuzzing instructions to readme, bump CI version to 1.48 --- .github/workflows/rust.yml | 4 ++-- README.md | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 65fcb70..e444b18 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - rust: ["1.34.2", stable, beta, nightly] + rust: ["1.48", stable, beta, nightly] command: [build, test] steps: - uses: actions/checkout@v2 @@ -20,7 +20,7 @@ jobs: - name: test run: > cargo test --tests --benches --no-default-features --features "$FEATURES" - if: ${{ matrix.rust != '1.34.2' }} + if: ${{ matrix.rust != '1.48' }} env: FEATURES: ${{ matrix.features }} rustfmt: diff --git a/README.md b/README.md index ce32891..a5fc0a5 100644 --- a/README.md +++ b/README.md @@ -44,3 +44,11 @@ Formats and interpretations not listed above or with empty entries are unsupport - Baseline tags - `ExtraSamples` - Extension tags + +## Fuzzing + +This crate uses [cargo-fuzz](https://github.com/rust-fuzz/cargo-fuzz) in order to test the image parser. + +After installing it with `cargo install cargo-fuzz` on a nightly rustc, the +fuzzing harness can be run with recommended settings using +`cargo fuzz run decode_image -snone -- -timeout=5`.