From 0413793d5e6bcbd7ae145bc3a229e37d9df9df63 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Mon, 22 Mar 2021 19:23:35 +0000 Subject: [PATCH] Updated json5format for upstrem merge. (#5472) --- projects/json5format/Dockerfile | 1 - projects/json5format/build.sh | 2 -- projects/json5format/fuzz/.gitignore | 4 ---- projects/json5format/fuzz/Cargo.toml | 24 ------------------- .../fuzz/fuzz_targets/fuzz_parse.rs | 10 -------- 5 files changed, 41 deletions(-) delete mode 100644 projects/json5format/fuzz/.gitignore delete mode 100644 projects/json5format/fuzz/Cargo.toml delete mode 100644 projects/json5format/fuzz/fuzz_targets/fuzz_parse.rs 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 "] -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); - } -});