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 the JSON conversion functionality of the types in this library #325

Open
leighmcculloch opened this issue Nov 23, 2023 · 0 comments
Open

Comments

@leighmcculloch
Copy link
Member

It would be worthwhile to fuzz the conversion of the Rust types to and from JSON. Most of the types use the derived serde serialization and deserialization, but some types use custom string serialization and deserialization.

The primary things to check are that:

  1. No Display impl returns an error, since doing so would cause any .to_string() call on the type to panic.

  2. FromStr and Display impls round trip to the same values, or in the case of utf8 lossy values.

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

2 participants
@leighmcculloch and others