Upgrade AFL to 0.4 with persistent mode fuzzing

This commit is contained in:
Matt Corallo 2018-09-06 15:52:38 -04:00
parent 12d9e9803c
commit ac11191f71
7 changed files with 13 additions and 13 deletions

View File

@ -13,7 +13,7 @@ honggfuzz_fuzz = ["honggfuzz"]
[dependencies]
honggfuzz = { version = "0.5", optional = true }
afl = { version = "0.3", optional = true }
afl = { version = "0.4", optional = true }
bitcoin = { path = "..", features = ["fuzztarget", "serde-decimal"] }
# Prevent this from interfering with workspaces

View File

@ -10,10 +10,10 @@ fn do_test(data: &[u8]) {
}
#[cfg(feature = "afl")]
extern crate afl;
#[macro_use] extern crate afl;
#[cfg(feature = "afl")]
fn main() {
afl::read_stdio_bytes(|data| {
fuzz!(|data| {
do_test(&data);
});
}

View File

@ -5,10 +5,10 @@ fn do_test(data: &[u8]) {
}
#[cfg(feature = "afl")]
extern crate afl;
#[macro_use] extern crate afl;
#[cfg(feature = "afl")]
fn main() {
afl::read_stdio_bytes(|data| {
fuzz!(|data| {
do_test(&data);
});
}

View File

@ -14,10 +14,10 @@ fn do_test(data: &[u8]) {
}
#[cfg(feature = "afl")]
extern crate afl;
#[macro_use] extern crate afl;
#[cfg(feature = "afl")]
fn main() {
afl::read_stdio_bytes(|data| {
fuzz!(|data| {
do_test(&data);
});
}

View File

@ -36,10 +36,10 @@ fn do_test(data: &[u8]) {
}
#[cfg(feature = "afl")]
extern crate afl;
#[macro_use] extern crate afl;
#[cfg(feature = "afl")]
fn main() {
afl::read_stdio_bytes(|data| {
fuzz!(|data| {
do_test(&data);
});
}

View File

@ -17,10 +17,10 @@ fn do_test(data: &[u8]) {
}
#[cfg(feature = "afl")]
extern crate afl;
#[macro_use] extern crate afl;
#[cfg(feature = "afl")]
fn main() {
afl::read_stdio_bytes(|data| {
fuzz!(|data| {
do_test(&data);
});
}

View File

@ -14,10 +14,10 @@ fn do_test(data: &[u8]) {
}
#[cfg(feature = "afl")]
extern crate afl;
#[macro_use] extern crate afl;
#[cfg(feature = "afl")]
fn main() {
afl::read_stdio_bytes(|data| {
fuzz!(|data| {
do_test(&data);
});
}