Skip to content

Standing fuzz suite and fuzzing log - #42

Merged
ChaoticHolon merged 1 commit into
devfrom
feature/fuzz-suite
Oct 19, 2026
Merged

ChaoticHolon merged 1 commit into
devfrom
feature/fuzz-suite

Conversation

@ChaoticHolon

Copy link
Copy Markdown
Owner

Requested by Matt · project thread

Before: the three fuzzing rounds' harnesses lived outside the repo, and nothing could re-run them after a new build.

After: powershell -ExecutionPolicy Bypass -File tools\Fuzz.ps1 re-runs them with a new random seed each time (-Scale 5 for more cases, -Seed N to repeat a failure). docs/fuzzing-report.md is the running log that each new round reads first.

How: Sources/MicControl.Tests/Fuzz/ holds 16 opt-in tests, skipped unless MICCONTROL_FUZZ=1, so normal test runs and CI are unchanged. They cover settings JSON, MicSwitch configs, hotkey text, SSH signatures, the update feed, image headers, command lines, the autostart takeover, huge settings files and the hotkey state machine. FuzzRun mixes the seed, scales the cases and prints the seed with any failure. tools/FuzzWav.cs is a file-based app that references the Windows project, because the WAV decoder lives there. It also checks that every key Avalonia can report has a virtual key.


Generated by Claude Code

- Sources/MicControl.Tests/Fuzz: the three fuzzing rounds' harnesses as opt-in tests (MICCONTROL_FUZZ=1), a new seed each run printed with any failure, MICCONTROL_FUZZ_SEED to repeat and MICCONTROL_FUZZ_SCALE for more cases
- tools/FuzzWav.cs: damaged WAVs through the playback decoder, and Avalonia keys with no virtual key
- tools/Fuzz.ps1 runs both after a build
- docs/fuzzing-report.md: the log of rounds (what each covered, up to which commit, what to try next), read first by every new round
@ChaoticHolon ChaoticHolon self-assigned this Oct 19, 2026
@ChaoticHolon
ChaoticHolon merged commit 2a4f2c3 into dev Oct 19, 2026
2 checks passed
@ChaoticHolon
ChaoticHolon deleted the feature/fuzz-suite branch October 19, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant