File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
-
2
1
[package ]
3
2
name = " matroska-fuzz"
4
3
version = " 0.0.1"
5
4
authors = [" Automatically generated" ]
5
+ edition = " 2021"
6
6
publish = false
7
7
8
8
[package .metadata ]
9
9
cargo-fuzz = true
10
10
11
- [dependencies .matroska ]
12
- path = " .."
13
- [dependencies .libfuzzer-sys ]
14
- git = " https://github.com/rust-fuzz/libfuzzer-sys.git"
11
+ [dependencies ]
12
+ matroska = { path = " .." }
13
+ libfuzzer-sys = { git = " https://github.com/rust-fuzz/libfuzzer-sys.git" }
15
14
16
15
# Prevent this from interfering with workspaces
17
16
[workspace ]
18
17
members = [" ." ]
19
18
20
- [[bin ]]
21
- name = " fuzz_target_1"
22
- path = " fuzz_targets/fuzz_target_1.rs"
23
-
24
19
[[bin ]]
25
20
name = " ebml"
26
21
path = " fuzz_targets/ebml.rs"
Original file line number Diff line number Diff line change 1
1
#![ no_main]
2
- #[ macro_use] extern crate libfuzzer_sys;
3
- extern crate matroska;
4
2
5
- use matroska:: ebml:: parse_element;
3
+ use libfuzzer_sys:: fuzz_target;
4
+ use matroska:: ebml:: ebml_header;
6
5
7
6
fuzz_target ! ( |data: & [ u8 ] | {
8
- let _ = parse_element ( data) ;
7
+ let _ = ebml_header ( data) ;
9
8
} ) ;
You can’t perform that action at this time.
0 commit comments