projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Send shutdown/closing_signed msgs out-of-band for ordered delivery
[rust-lightning]
/
fuzz
/
fuzz_targets
/
peer_crypt_target.rs
diff --git
a/fuzz/fuzz_targets/peer_crypt_target.rs
b/fuzz/fuzz_targets/peer_crypt_target.rs
index 4133331a7ebeb6d22c68e0f6fc6982caf2ac814e..6305cf0447452153ed82aac1860079b2498543cb 100644
(file)
--- a/
fuzz/fuzz_targets/peer_crypt_target.rs
+++ b/
fuzz/fuzz_targets/peer_crypt_target.rs
@@
-80,11
+80,11
@@
pub fn do_test(data: &[u8]) {
}
#[cfg(feature = "afl")]
}
#[cfg(feature = "afl")]
-extern crate afl;
+
#[macro_use]
extern crate afl;
#[cfg(feature = "afl")]
fn main() {
#[cfg(feature = "afl")]
fn main() {
-
afl::read_stdio_bytes
(|data| {
- do_test(
&
data);
+
fuzz!
(|data| {
+ do_test(data);
});
}
});
}