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 testing for file formats #1644

Open
ghutchis opened this issue Mar 2, 2024 · 1 comment
Open

Add fuzz testing for file formats #1644

ghutchis opened this issue Mar 2, 2024 · 1 comment

Comments

@ghutchis
Copy link
Member

ghutchis commented Mar 2, 2024

The latest seems to be fuzztest:
https://github.com/google/fuzztest/blob/main/doc/quickstart-cmake.md
https://github.com/google/fuzztest/blob/main/doc/use-cases.md

I'd suggest adding fuzz tests for all the "native" file formats, e.g:

  • cjson
  • cml
  • xyz
  • pdb
  • sdf

Obvious many of the other formats should also get fuzz testing, but that's a good start.

@ghutchis
Copy link
Member Author

ghutchis commented Mar 3, 2024

Here's an example of loading files from a corpus:
https://github.com/google/fuzztest/blob/main/doc/fuzz-test-macro.md#loading-seed-inputs-from-a-directory

It looks like this requires separate directories for each file type.

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

No branches or pull requests

1 participant