aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavidKorczynski <david@adalogics.com>2021-03-22 19:23:35 +0000
committerGitHub <noreply@github.com>2021-03-22 12:23:35 -0700
commit0413793d5e6bcbd7ae145bc3a229e37d9df9df63 (patch)
treebf5118e8a1167b53a7a0037f7f9875d3c8825533
parent8a67befa1c0231f1fc2f3e019b0dbf6127271910 (diff)
downloadoss-fuzz-0413793d5e6bcbd7ae145bc3a229e37d9df9df63.tar.gz
Updated json5format for upstrem merge. (#5472)
-rw-r--r--projects/json5format/Dockerfile1
-rwxr-xr-xprojects/json5format/build.sh2
-rw-r--r--projects/json5format/fuzz/.gitignore4
-rw-r--r--projects/json5format/fuzz/Cargo.toml24
-rw-r--r--projects/json5format/fuzz/fuzz_targets/fuzz_parse.rs10
5 files changed, 0 insertions, 41 deletions
diff --git a/projects/json5format/Dockerfile b/projects/json5format/Dockerfile
index d02fd602d..c0117a59e 100644
--- a/projects/json5format/Dockerfile
+++ b/projects/json5format/Dockerfile
@@ -19,4 +19,3 @@ RUN git clone --depth 1 https://github.com/google/json5format
WORKDIR $SRC
COPY build.sh $SRC/
-COPY fuzz $SRC/json5format/fuzz
diff --git a/projects/json5format/build.sh b/projects/json5format/build.sh
index a5647513b..c722bdb01 100755
--- a/projects/json5format/build.sh
+++ b/projects/json5format/build.sh
@@ -17,6 +17,4 @@
cd $SRC/json5format
cargo fuzz build -O
-ls -la ./fuzz
-ls -la ./fuzz/target
cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_parse $OUT/fuzz_parse
diff --git a/projects/json5format/fuzz/.gitignore b/projects/json5format/fuzz/.gitignore
deleted file mode 100644
index 572e03bdf..000000000
--- a/projects/json5format/fuzz/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-
-target
-corpus
-artifacts
diff --git a/projects/json5format/fuzz/Cargo.toml b/projects/json5format/fuzz/Cargo.toml
deleted file mode 100644
index 4ac2c0324..000000000
--- a/projects/json5format/fuzz/Cargo.toml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-[package]
-name = "json5format-fuzz"
-version = "0.0.0"
-authors = ["David Korczynski <david@adalogics.com>"]
-publish = false
-edition = "2018"
-
-[package.metadata]
-cargo-fuzz = true
-
-[dependencies]
-libfuzzer-sys = "0.3"
-
-[dependencies.json5format]
-path = ".."
-
-# Prevent this from interfering with workspaces
-[workspace]
-members = ["."]
-
-[[bin]]
-name = "fuzz_parse"
-path = "fuzz_targets/fuzz_parse.rs"
diff --git a/projects/json5format/fuzz/fuzz_targets/fuzz_parse.rs b/projects/json5format/fuzz/fuzz_targets/fuzz_parse.rs
deleted file mode 100644
index 35e3a7c7a..000000000
--- a/projects/json5format/fuzz/fuzz_targets/fuzz_parse.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-#![no_main]
-use libfuzzer_sys::fuzz_target;
-use json5format::*;
-use std::str;
-
-fuzz_target!(|data: &[u8]| {
- if let Ok(utf8) = str::from_utf8(data) {
- ParsedDocument::from_str(utf8, None);
- }
-});