Skip to content

Commit e398dd1

Browse files
committed
Merge branch 'fuzz-updates'
2 parents d1f712f + 3bcb84b commit e398dd1

File tree

3 files changed

+74
-35
lines changed

3 files changed

+74
-35
lines changed

fuzz/Cargo.lock

Lines changed: 55 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fuzz/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ path = "fuzz_targets/reader_detected_all_formats.rs"
2626
test = false
2727
doc = false
2828
bench = false
29+
30+
[[bin]]
31+
name = "slice_special"
32+
path = "fuzz_targets/slice_special.rs"
33+
test = false
34+
doc = false
35+
bench = false

fuzz/fuzz_targets/slice_special.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![no_main]
2+
3+
use std::io;
4+
5+
use libfuzzer_sys::fuzz_target;
6+
7+
use xt::Format;
8+
9+
fuzz_target!(|data: &[u8]| {
10+
let _ = xt::translate_slice(data, Some(Format::Yaml), Format::Json, io::sink());
11+
let _ = xt::translate_slice(data, Some(Format::Msgpack), Format::Json, io::sink());
12+
});

0 commit comments

Comments
 (0)