revaultd icon indicating copy to clipboard operation
revaultd copied to clipboard

Fuzz testing the JSONRPC server

Open darosior opened this issue 4 years ago • 0 comments

As it's exposed in a single server module, it think we could fuzz the mio_loop: https://github.com/re-vault/revaultd/blob/3141908c8c1e847b2e76f9240c109734d1324599/src/daemon/jsonrpc/server.rs#L121-L125

We could use a custom MetaIoHandler that would not process the actual command but rather be used to acknowledge their reception. This would largely complement our unit tests that are only for now testing for simple situations and edge cases that we uncover as we go.

We could use the great libFuzzer integration by the rust-fuzz org.

darosior avatar Feb 10 '21 12:02 darosior