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

Explore the benefits of fuzzing for testing #346

Open
vanitasvitae opened this issue Dec 13, 2022 · 3 comments
Open

Explore the benefits of fuzzing for testing #346

vanitasvitae opened this issue Dec 13, 2022 · 3 comments
Labels
enhancement New feature or request module: core Issue affects the core module

Comments

@vanitasvitae
Copy link
Member

Incorporating a fuzzing framework into the testing workflow might help reveal parser bugs or all kinds of unwanted behavior, not only for PGPainless, but also BouncyCastle.

@vanitasvitae vanitasvitae added enhancement New feature or request module: core Issue affects the core module labels Dec 13, 2022
@vanitasvitae
Copy link
Member Author

A popular fuzzing framework appears to be Jazzer, so this might be a good candidate to look into.

@vanitasvitae
Copy link
Member Author

Apparently Jazzer has been integrated into oss-fuzz?
Not sure which interface is easier to use?

@vanitasvitae
Copy link
Member Author

Some thoughts from a discussion with the Sequoia Team:

  • You probably want to fuzz the packet parser
  • For this you want to eliminate the crypto layer
  • Therefore you want to have a null-backend to swap the crypto layer with
  • The null-backends crypto operations are just the identity function
  • Now you can round-trip "encrypted" and "signed" packets without the crypto getting into the way of the fuzzer.

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

No branches or pull requests

1 participant