Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
@ -18,8 +18,8 @@ git = "https://github.com/rust-fuzz/libfuzzer-sys.git"
members = ["."]
[[bin]]
name = "parse_frame"
path = "fuzz_targets/parse_frame.rs"
name = "parse_frame_header"
path = "fuzz_targets/parse_frame_header.rs"
name = "read_message_server"
@ -8,5 +8,5 @@ fuzz_target!(|data: &[u8]| {
let vector: Vec<u8> = data.into();
let mut cursor = Cursor::new(vector);
tungstenite::protocol::frame::Frame::parse(&mut cursor);
tungstenite::protocol::frame::FrameHeader::parse(&mut cursor).ok();
});
@ -33,5 +33,5 @@ fuzz_target!(|data: &[u8]| {
//let vector: Vec<u8> = data.into();
let cursor = Cursor::new(data);
let mut socket = WebSocket::from_raw_socket(WriteMoc(cursor), Role::Client, None);
socket.read_message();
socket.read_message().ok();
let mut socket = WebSocket::from_raw_socket(WriteMoc(cursor), Role::Server, None);