fix fuzzing targets that broke from recent refactoring
This commit is contained in:
parent
34fb048e25
commit
2feb750ba1
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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]| {
|
||||
|
|
Loading…
Reference in New Issue