Add OSS-Fuzz/ClusterFuzzLite integration for continuous security fuzzing #387
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.
Overview
This PR implements continuous fuzzing for the Quicer QUIC library using ClusterFuzzLite, addressing the feature request in the original issue. ClusterFuzzLite enables automated fuzz testing via GitHub Actions to discover bugs, memory errors, and security vulnerabilities before they reach production.
What's New
GitHub Actions Workflow
A new
.github/workflows/clusterfuzzlite.ymlworkflow has been added that:The workflow operates in three modes:
Fuzz Target
The initial fuzz target (
fuzz/fuzz_config.c) tests QUIC configuration handling through the msquic library:This target exercises critical code paths including registration, configuration creation, settings application, and credential loading - all areas where malformed input could cause crashes or security issues.
Build Integration
The
fuzz/build.shscript integrates with the OSS-Fuzz infrastructure:Documentation
fuzz/README.md: Comprehensive guide for running fuzz tests locally, understanding the infrastructure, and contributing new fuzz targetsBenefits
✅ Proactive Security: Automatically discovers bugs before they reach users
✅ Continuous Testing: Runs on every code change and daily for comprehensive coverage
✅ Multiple Detection Modes: Three sanitizers catch different classes of bugs
✅ Easy to Extend: Simple process for adding new fuzz targets
✅ No Manual Intervention: Fully automated via GitHub Actions
Future Enhancements
Additional fuzz targets can be added to test:
References
Closes #[issue_number]
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.