projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
msgs: Reformulate unknown bits calculation w/ any
[rust-lightning]
/
fuzz
/
fuzz_targets
/
msg_targets
/
msg_update_fail_malformed_htlc_target.rs
diff --git
a/fuzz/fuzz_targets/msg_targets/msg_update_fail_malformed_htlc_target.rs
b/fuzz/fuzz_targets/msg_targets/msg_update_fail_malformed_htlc_target.rs
index 9c90992593ebe4a1fb3162dd9e3e0a78180d6c11..ad129e00243d7a6da2049d78b829d858df85f465 100644
(file)
--- a/
fuzz/fuzz_targets/msg_targets/msg_update_fail_malformed_htlc_target.rs
+++ b/
fuzz/fuzz_targets/msg_targets/msg_update_fail_malformed_htlc_target.rs
@@
-6,9
+6,8
@@
extern crate lightning;
use lightning::ln::msgs;
use lightning::util::reset_rng_state;
use lightning::ln::msgs;
use lightning::util::reset_rng_state;
-use lightning::ln::msgs::{MsgEncodable, MsgDecodable};
-
mod utils;
mod utils;
+use utils::VecWriter;
#[inline]
pub fn do_test(data: &[u8]) {
#[inline]
pub fn do_test(data: &[u8]) {
@@
-17,11
+16,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);
});
}
});
}