mirror of https://github.com/google/oss-fuzz.git
Updated json5format for upstrem merge. (#5472)
This commit is contained in:
parent
8a67befa1c
commit
0413793d5e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
|
||||
target
|
||||
corpus
|
||||
artifacts
|
|
@ -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"
|
|
@ -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);
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue