fix fuzzing targets that broke from recent refactoring

This commit is contained in:
Nick Mathewson 2020-09-27 03:16:53 -04:00
parent 34fb048e25
commit 2feb750ba1
2 changed files with 3 additions and 4 deletions

View File

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

View File

@ -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]| {