feat: Expand fuzz testing suite and enhance diagnostics#8
Merged
JacobBorden merged 2 commits intodevelopmentfrom May 29, 2025
Merged
feat: Expand fuzz testing suite and enhance diagnostics#8JacobBorden merged 2 commits intodevelopmentfrom
JacobBorden merged 2 commits intodevelopmentfrom
Conversation
This commit significantly expands the fuzz testing capabilities of the project.
Key changes include:
- Added UndefinedBehaviorSanitizer (UBSan) to the fuzzing configuration alongside AddressSanitizer (ASan) for more comprehensive bug detection.
- Introduced four new fuzz targets:
- fuzz_bmp_tool_save: Targets the BmpTool::save functionality.
- fuzz_bitmap_file: Targets Bitmap::File class operations.
- fuzz_image_operations: Targets various image manipulation functions.
- fuzz_matrix: Targets Matrix class operations.
- Updated the existing fuzz_bitmap target to use the new sanitizer configuration.
- Modified the CMake build system (tests/CMakeLists.txt) to correctly build all five fuzz targets when ENABLE_FUZZING is ON.
- Enhanced the GitHub Actions fuzzing workflow (.github/workflows/fuzzing.yml):
- Builds all available fuzz targets.
- Runs each of the five fuzzers independently.
- Creates separate corpus directories for each fuzzer.
- Added -print_pcs=1 libFuzzer option for better call stack information on new coverage.
- Updated README.md with a new "Fuzz Testing" section, detailing the available targets and how to enable/run them.
These changes aim to improve code robustness by systematically testing more parts of the codebase against a wider range of inputs and conditions.
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.
This commit significantly expands the fuzz testing capabilities of the project.
Key changes include:
These changes aim to improve code robustness by systematically testing more parts of the codebase against a wider range of inputs and conditions.