From 8f9bdf36fd006a9f2303d19a9cdd5fef67521efb Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Wed, 9 Apr 2025 21:00:24 +0200 Subject: [PATCH] workflows/fuzzing.yml: Add timeout equal to total run time Just in case some of the values cause an infinite loop (or at least take a _very_ long time, see #7708), timeout, with the same duration as the maximum total fuzzing time. That'll allow us to _see_ what input causes the infinite loop. --- .github/workflows/fuzzing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml index c7d219733..2f7da429c 100644 --- a/.github/workflows/fuzzing.yml +++ b/.github/workflows/fuzzing.yml @@ -84,7 +84,7 @@ jobs: shell: bash continue-on-error: ${{ !matrix.test-target.name.should_pass }} run: | - cargo +nightly fuzz run ${{ matrix.test-target.name }} -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 + cargo +nightly fuzz run ${{ matrix.test-target.name }} -- -max_total_time=${{ env.RUN_FOR }} -timeout=${{ env.RUN_FOR }} -detect_leaks=0 - name: Save Corpus Cache uses: actions/cache/save@v4 with: