Skip to content
New issue

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

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

Already on GitHub? # to your account

Add fuzz testing for file formats #1644

Closed
ghutchis opened this issue Mar 2, 2024 · 2 comments · Fixed by #1927
Closed

Add fuzz testing for file formats #1644

ghutchis opened this issue Mar 2, 2024 · 2 comments · Fixed by #1927
Labels

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.

@ghutchis ghutchis linked a pull request Jan 20, 2025 that will close this issue
@ghutchis
Copy link
Member Author

I haven't been able to get "fuzztest" working, so this goes back to the libFuzz clang sanitizer.

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

Successfully merging a pull request may close this issue.

1 participant