Add a CI fuzz job covering x86_64 and i686 - #191
Open
kadircanyildirm-crypto wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #39.
Adds a
Fuzzjob toci.yml: one leg per target, builds all four fuzz targets and gives each a bounded run. Nothing in CI compilesfuzz/today (it is excluded from the workspace) and google/oss-fuzz#15870 is still open, so the targets currently have no coverage at all.Two things were in the way:
cargo fuzzcannot build for i686 with its default-s address: rustc ships no AddressSanitizer runtime for 32-bit x86 (librustc-*_rt.asan.a).--sanitizer nonelinks fine, so the Makefile now picks the sanitizer from the target, overridable viaSPACEWASM_FUZZ_SANITIZER, and the job does the same.Layout::arraypanic on a 32-bitusize) in under two minutes. That is fixed by Clean up code-base from external review #189, so the leg is blocking rather than advisory.Verified on 2eceda3 with cargo-fuzz 0.13.2: all four targets build under ASan (2 min 25 s cold) and run clean for 20 s each (32k to 49k executions per target), on both the current nightly and the one this job pins (
nightly-2026-08-30, shared with the Miri job). Actions are pinned to the SHAsci.ymlalready uses. The i686 leg was last exercised locally on an earlier revision (Docker, gcc-multilib), so it is worth watching on the first CI run.AI use per
AI_POLICY.md: Claude Code assisted with diagnosing the i686 link failure, drafting the job, the Makefile change and this description. Scope:.github/workflows/ci.ymlandMakefile; nosrc/change.