1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use honggfuzz::fuzz;

use oasis_core_runtime::storage::mkvs::{marshal::Marshal, NodeBox};

fn main() {
    loop {
        fuzz!(|data: &[u8]| {
            let mut node = NodeBox::default();
            if node.unmarshal_binary(data).is_err() {
                return;
            }

            let _ = node.marshal_binary().unwrap();
        });
    }
}