Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fuzz test for complex codec unmarshalling #1846

Merged
merged 4 commits into from
Aug 15, 2023
Merged

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Adds fuzz testing for the reflect codec.

How this works

Tries to unmarshal random bytes. If the bytes are valid, then verifies that marshaling work correctly and that the size is calculated correctly.

How this was tested

Ran the fuzzer for like 5 hours got around 200 interesting cases. The fuzzer didn't seem to be able to figure out maps with multiple entries when the maps weren't constant size.

@StephenButtolph StephenButtolph added the testing This primarily focuses on testing label Aug 12, 2023
@StephenButtolph StephenButtolph added this to the v1.10.9 milestone Aug 12, 2023
@StephenButtolph StephenButtolph merged commit b2d2a31 into dev Aug 15, 2023
14 checks passed
@StephenButtolph StephenButtolph deleted the add-codec-fuzzer branch August 15, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarily focuses on testing
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants