Feat/fuzz batch operations#1839
Open
akinboyewaSamson wants to merge 2 commits 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 #1719
Description
This PR introduces targeted fuzz testing frameworks for structural batch operations (
batch_registrationandbatch_approval). Prior to this change, the project only had fuzzers coverage for single validation, individual submissions, and unique quest creations, leaving complex atomic collections, boundary sizes, and status transitions untested against malicious or unpredictable vector variations.Changes Made
Cargo.toml
(Fuzz Package): Registered and set up build targets forbatch_registration_fuzzerandbatch_approval_fuzzerlinking standard testing utilities fromsoroban-sdk`.batch_registration_fuzzer.rs
: Implemented a data stream loop translating raw byte arrays into collections of SorobanString` types to test batch array limits, duplicate identifiers, and boundary constraints.batch_approval_fuzzer.rs`: Created a structured profile harness handling arbitrary transaction amounts and nested parameters to verify transaction stability during multiple concurrent approvals.
Verification Status
Files have been verified and validated locally via the
feat/fuzz-batch-operationsbranch tracking log: