chore: prepare for v0.10.0-alpha.1
This commit is contained in:
parent
9d7852c4f9
commit
af7c305c9e
111 changed files with 9132 additions and 9148 deletions
1
fuzz/.gitignore
vendored
1
fuzz/.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
target
|
||||
corpus
|
||||
artifacts
|
||||
coverage
|
||||
|
|
|
|||
|
|
@ -1,20 +1,27 @@
|
|||
[package]
|
||||
name = "orgize-fuzz"
|
||||
version = "0.0.1"
|
||||
authors = ["Automatically generated"]
|
||||
version = "0.0.0"
|
||||
publish = false
|
||||
edition = "2018"
|
||||
|
||||
[package.metadata]
|
||||
cargo-fuzz = true
|
||||
|
||||
[dependencies]
|
||||
libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git" }
|
||||
orgize = { path = ".." }
|
||||
libfuzzer-sys = "0.4"
|
||||
|
||||
[dependencies.orgize]
|
||||
path = ".."
|
||||
|
||||
# Prevent this from interfering with workspaces
|
||||
[workspace]
|
||||
members = ["."]
|
||||
|
||||
[profile.release]
|
||||
debug = 1
|
||||
|
||||
[[bin]]
|
||||
name = "fuzz_target_1"
|
||||
path = "fuzz_targets/fuzz_target_1.rs"
|
||||
test = false
|
||||
doc = false
|
||||
|
|
|
|||
|
|
@ -1,14 +1,11 @@
|
|||
#![no_main]
|
||||
|
||||
#[macro_use]
|
||||
extern crate libfuzzer_sys;
|
||||
extern crate orgize;
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
use orgize::syntax::{HtmlHandler, Org};
|
||||
use std::str;
|
||||
|
||||
use orgize::Org;
|
||||
|
||||
#[cfg_attr(rustfmt, rustfmt_skip)]
|
||||
libfuzzer_sys::fuzz_target!(|data: &[u8]| {
|
||||
if let Ok(s) = std::str::from_utf8(data) {
|
||||
let _ = Org::parse(s);
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
if let Ok(utf8) = str::from_utf8(data) {
|
||||
let _ = Org::parse(utf8);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue