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

Differential fuzzing for gossip messages #8

Open
Tracked by #9 ...
akoptelov opened this issue Aug 24, 2022 · 2 comments
Open
Tracked by #9 ...

Differential fuzzing for gossip messages #8

akoptelov opened this issue Aug 24, 2022 · 2 comments
Assignees

Comments

@akoptelov
Copy link
Contributor

akoptelov commented Aug 24, 2022

We need to add correctness checking to gossip messages fuzzing. The most obvious way is to use Mina OCaml codecs as a reference implementation.

@akoptelov
Copy link
Contributor Author

First stage is decoding fuzzing with OCaml decoder returning if it successfully decoded input slice. Further we can get actual structure from OCaml (either as JSON or via FFI) and compare it with Rust side result.

@akoptelov
Copy link
Contributor Author

The obvious way to access OCaml decoder is FFI. Though now we have some troubles using it, partly because Mina uses proof system implemented in Rust, and linker reports duplicate symbols.

I think we should be able to solve that somehow, but as a workaround we can just use IPC interface with OCaml process.

@akoptelov akoptelov changed the title Differential fuzzing for gossip messages As a developer, I need fuzzing tests that will compare decoding results with OCaml implementation Aug 26, 2022
@akoptelov akoptelov changed the title As a developer, I need fuzzing tests that will compare decoding results with OCaml implementation As a developer, I need fuzzing tests that will compare decoding results with OCaml implementation so I can be sure implementations are consistent Aug 26, 2022
@akoptelov akoptelov self-assigned this Aug 26, 2022
@akoptelov akoptelov changed the title As a developer, I need fuzzing tests that will compare decoding results with OCaml implementation so I can be sure implementations are consistent Differential fuzzing for gossip messages Aug 29, 2022
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