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_add_htlc_target.rs
diff --git
a/fuzz/fuzz_targets/msg_targets/msg_update_add_htlc_target.rs
b/fuzz/fuzz_targets/msg_targets/msg_update_add_htlc_target.rs
index 07a0f8196556a6a609018738f26b597577a77617..45bc9d1b9832d4f92bfb317795afad97366b1fa5 100644
(file)
--- a/
fuzz/fuzz_targets/msg_targets/msg_update_add_htlc_target.rs
+++ b/
fuzz/fuzz_targets/msg_targets/msg_update_add_htlc_target.rs
@@
-6,14
+6,13
@@
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]) {
reset_rng_state();
#[inline]
pub fn do_test(data: &[u8]) {
reset_rng_state();
- test_msg
!(msgs::UpdateAddHTLC, data
);
+ test_msg
_hole!(msgs::UpdateAddHTLC, data, 85, 33
);
}
#[cfg(feature = "afl")]
}
#[cfg(feature = "afl")]