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 #111 from TheBlueMatt/2018-08-full-stack-target-upstream-1
[rust-lightning]
/
fuzz
/
fuzz_targets
/
msg_targets
/
msg_commitment_signed_target.rs
diff --git
a/fuzz/fuzz_targets/msg_targets/msg_commitment_signed_target.rs
b/fuzz/fuzz_targets/msg_targets/msg_commitment_signed_target.rs
index e73696c8d3801e9805d32ee28ca8fd3499cb29a5..701dd1fb9e2085c10084814505b5f23f1c19514d 100644
(file)
--- a/
fuzz/fuzz_targets/msg_targets/msg_commitment_signed_target.rs
+++ b/
fuzz/fuzz_targets/msg_targets/msg_commitment_signed_target.rs
@@
-17,11
+17,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);
});
}
});
}
@@
-36,13
+36,11
@@
fn main() {
}
}
}
}
+extern crate hex;
#[cfg(test)]
mod tests {
#[cfg(test)]
mod tests {
- use utils::extend_vec_from_hex;
#[test]
fn duplicate_crash() {
#[test]
fn duplicate_crash() {
- let mut a = Vec::new();
- extend_vec_from_hex("00", &mut a);
- super::do_test(&a);
+ super::do_test(&::hex::decode("00").unwrap());
}
}
}
}