projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #175 from TheBlueMatt/2018-09-173-whitespace-err
[rust-lightning]
/
fuzz
/
fuzz_targets
/
msg_targets
/
msg_error_message_target.rs
diff --git
a/fuzz/fuzz_targets/msg_targets/msg_error_message_target.rs
b/fuzz/fuzz_targets/msg_targets/msg_error_message_target.rs
index 8fa7de518a17f0717e094cdea9f62e80bc7a543d..f565e80f9195973c9b46e188a28b1a83bcf719fd 100644
(file)
--- a/
fuzz/fuzz_targets/msg_targets/msg_error_message_target.rs
+++ b/
fuzz/fuzz_targets/msg_targets/msg_error_message_target.rs
@@
-6,22
+6,20
@@
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;
#[inline]
pub fn do_test(data: &[u8]) {
reset_rng_state();
mod utils;
#[inline]
pub fn do_test(data: &[u8]) {
reset_rng_state();
- test_msg
!(msgs::ErrorMessage, data
);
+ test_msg
_hole!(msgs::ErrorMessage, data, 32, 2
);
}
#[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);
});
}
});
}