From 2feb750ba1746d4c8cd990335e347dc1a3c82351 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 27 Sep 2020 03:16:53 -0400 Subject: [PATCH] fix fuzzing targets that broke from recent refactoring --- tor-cell/fuzz/fuzz_targets/chanmsg.rs | 5 ++--- tor-cell/fuzz/fuzz_targets/relaymsg.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tor-cell/fuzz/fuzz_targets/chanmsg.rs b/tor-cell/fuzz/fuzz_targets/chanmsg.rs index 964d16d7e..72712f6de 100644 --- a/tor-cell/fuzz/fuzz_targets/chanmsg.rs +++ b/tor-cell/fuzz/fuzz_targets/chanmsg.rs @@ -1,9 +1,8 @@ #![no_main] use libfuzzer_sys::fuzz_target; -use tor_proto::chancell::codec::ChannelCodec; -use futures_codec::Decoder; +use tor_cell::chancell::codec::ChannelCodec; fuzz_target!(|data: &[u8]| { let mut bytes = data.into(); - let _ = ChannelCodec::new(4).decode(&mut bytes); + let _ = ChannelCodec::new(4).decode_cell(&mut bytes); }); diff --git a/tor-cell/fuzz/fuzz_targets/relaymsg.rs b/tor-cell/fuzz/fuzz_targets/relaymsg.rs index d901fd962..c95f6f938 100644 --- a/tor-cell/fuzz/fuzz_targets/relaymsg.rs +++ b/tor-cell/fuzz/fuzz_targets/relaymsg.rs @@ -1,6 +1,6 @@ #![no_main] use libfuzzer_sys::fuzz_target; -use tor_proto::relaycell::msg::RelayCell; +use tor_cell::relaycell::msg::RelayCell; use tor_bytes::Reader; fuzz_target!(|data: &[u8]| {