From 6af3219daee1457c3b9fb03fe73d2b0019d70408 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 18 Dec 2024 09:19:16 +0100 Subject: header: Add fuzzy testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 589ccbe..66c9075 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,3 +67,24 @@ jobs: run: | cd lib/xixanta cargo +nightly fuzz run fuzz_target_2 -- -max_total_time=180 + + fuzz_header: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Update rust toolchain to nightly + run: | + rustup update nightly + rustup default nightly + + - name: Install cargo fuzz + run: cargo install cargo-fuzz + + - name: Build with nightly + run: cargo build --verbose + + - name: Fuzzy test the header parser + run: | + cd lib/header + cargo +nightly fuzz run fuzz_target_header -- -max_total_time=180 -- cgit v1.2.3