fuzz: make it working again

Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
pull/60/head
Alexey Galakhov 6 years ago
parent b8f7d3668e
commit 8cc65fdddc
  1. 6
      fuzz/Cargo.toml
  2. 2
      fuzz/fuzz_targets/parse_frame_header.rs
  3. 2
      fuzz/fuzz_targets/read_message_client.rs
  4. 2
      fuzz/fuzz_targets/read_message_server.rs
  5. 0
      fuzz/seeds/parse_frame_header/0a476920bf2b922f5d1955e5bedfedec8c13765c
  6. 0
      fuzz/seeds/parse_frame_header/0b3a842c0b93a42d724bbab2504ae92f0593232a
  7. 0
      fuzz/seeds/parse_frame_header/0e1990ce3bb9b7c62d5e11b83514467eca3be187
  8. 0
      fuzz/seeds/parse_frame_header/0fe89d4911d87df66f98147a0fd1f3624f34cdaa
  9. 0
      fuzz/seeds/parse_frame_header/370ee4d5682fb8c2770cac1ec89e0f6674990afb
  10. 0
      fuzz/seeds/parse_frame_header/47167be8eb1f00d36f0a93a8f61c77b4d4d2f515
  11. 0
      fuzz/seeds/parse_frame_header/51112bf88688ede230dd473db8fa0be2b945e636
  12. 0
      fuzz/seeds/parse_frame_header/7a0edc789a1d22737bfbb4cb29f26d994614cb80
  13. 0
      fuzz/seeds/parse_frame_header/9cf76db0663ea4025bbf89de1dfbb2ff818a26ae
  14. 0
      fuzz/seeds/parse_frame_header/bc4057a2970c60f0c2b07200842b8d0c15e2af27
  15. 0
      fuzz/seeds/parse_frame_header/bd811f21956aa72bb5a9114bdf4dc61e1710ad44
  16. 0
      fuzz/seeds/parse_frame_header/dc048e38bdb36cf80cc4fe5b3b21ea094510af4a
  17. 0
      fuzz/seeds/parse_frame_header/ec7d070174e40ace678006d0c631026f1d9a0779
  18. 0
      fuzz/seeds/parse_frame_header/ef420abfddbda7b9ee665d85ef62e4a437554003
  19. 0
      fuzz/seeds/parse_frame_header/fab3e168d56fecfc59f98a69f75673a53e94c215

@ -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"
[[bin]]
name = "read_message_server"
@ -27,4 +27,4 @@ path = "fuzz_targets/read_message_server.rs"
[[bin]]
name = "read_message_client"
path = "fuzz_targets/read_message_client.rs"
path = "fuzz_targets/read_message_client.rs"

@ -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();
});

@ -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::Server, None);
socket.read_message();
socket.read_message().ok();
});

Loading…
Cancel
Save