Skip to content
Permalink
Browse files

Add additional fuzz targets

  • Loading branch information
Licenser committed Jan 28, 2020
1 parent ba3e6e8 commit 0f3c83a18521543339bb22329e1953c5e06b7a14
Showing with 26 additions and 0 deletions.
  1. +8 −0 fuzz/Cargo.toml
  2. +9 −0 fuzz/fuzz_targets/failing.rs
  3. +9 −0 fuzz/fuzz_targets/real.rs
@@ -26,3 +26,11 @@ path = "fuzz_targets/fuzz_target_1.rs"
[[bin]]
name = "passing"
path = "fuzz_targets/passing.rs"

[[bin]]
name = "failing"
path = "fuzz_targets/failing.rs"

[[bin]]
name = "real"
path = "fuzz_targets/real.rs"
@@ -0,0 +1,9 @@
#![no_main]
use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: &[u8]| {
let mut data1 = data.clone().to_vec();
if let Ok(ref jo) = simd_json::to_owned_value(&mut data1) {
jo.to_string();
}
});
@@ -0,0 +1,9 @@
#![no_main]
use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: &[u8]| {
let mut data1 = data.clone().to_vec();
if let Ok(ref jo) = simd_json::to_owned_value(&mut data1) {
jo.to_string();
}
});

0 comments on commit 0f3c83a

Please sign in to comment.
You can’t perform that action at this time.