Updated json5format for upstrem merge. (#5472)

This commit is contained in:
DavidKorczynski 2021-03-22 19:23:35 +00:00 committed by GitHub
parent 8a67befa1c
commit 0413793d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 41 deletions

View File

@ -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

View File

@ -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

View File

@ -1,4 +0,0 @@
target
corpus
artifacts

View File

@ -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"

View File

@ -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);
}
});