From bea0a83f1e09e03dcfd1acf6f6f9e04b6c0a8fe2 Mon Sep 17 00:00:00 2001 From: RAprogramm Date: Mon, 20 Oct 2025 09:54:14 +0700 Subject: [PATCH] #45 fix: use gnu target for fuzzing instead of musl - Add x86_64-unknown-linux-gnu target installation step - Use --target flag in cargo fuzz run command - Fixes ASAN sanitizer incompatibility with musl static libc Problem: - cargo-fuzz auto-selected x86_64-unknown-linux-musl target - MUSL uses static libc linking incompatible with ASAN sanitizer - Fuzzing workflow failed with sanitizer error Solution: - Install x86_64-unknown-linux-gnu target - Explicitly specify target in cargo fuzz command - ASAN sanitizer works with gnu dynamic libc Related: Closes #45 --- .github/workflows/fuzz.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 10e86ab..529643c 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -47,8 +47,11 @@ jobs: with: tool: cargo-fuzz + - name: Add gnu target + run: rustup target add x86_64-unknown-linux-gnu + - name: Run fuzzer - run: cargo fuzz run ${{ matrix.target }} -- -max_total_time=300 + run: cargo fuzz run ${{ matrix.target }} --target x86_64-unknown-linux-gnu -- -max_total_time=300 env: RUST_BACKTRACE: 1