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

Fuzz Testing #8

Open
BenLeadbetter opened this issue May 8, 2024 · 1 comment
Open

Fuzz Testing #8

BenLeadbetter opened this issue May 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@BenLeadbetter
Copy link
Collaborator

the midi2 crate is a really good candidate for a fuzz testing round. Especially while in this early alpha phase, where many of the message wrappers are potentially quite unstable.

Sysex wrappers and also dynamically sized wrappers are particularly in need of some thorough testing. Such tests might simply create a mutable message, write in a payload of randomised bytes of random length copy the data into a buffer and then ensure that the message can be recreated from that buffer again, to complete the full round trip.

More Resources

@BenLeadbetter BenLeadbetter added the enhancement New feature or request label May 9, 2024
@BenLeadbetter
Copy link
Collaborator Author

I've implemented a couple of simple roundtrip fuzz test targets for the sysex message types. This is good but we could do with some more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant