Update fuzzer for rename
This commit is contained in:
parent
fca508b473
commit
08474a4659
3 changed files with 8 additions and 8 deletions
6
interpreter/fuzz/Cargo.lock
generated
6
interpreter/fuzz/Cargo.lock
generated
|
@ -566,7 +566,7 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "mps-interpreter"
|
name = "muss-interpreter"
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bliss-audio-symphonia",
|
"bliss-audio-symphonia",
|
||||||
|
@ -581,11 +581,11 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "mps-interpreter-fuzz"
|
name = "muss-interpreter-fuzz"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libfuzzer-sys",
|
"libfuzzer-sys",
|
||||||
"mps-interpreter",
|
"muss-interpreter",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
[package]
|
[package]
|
||||||
name = "mps-interpreter-fuzz"
|
name = "muss-interpreter-fuzz"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
authors = ["Automatically generated"]
|
authors = ["Automatically generated"]
|
||||||
publish = false
|
publish = false
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[package.metadata]
|
[package.metadata]
|
||||||
cargo-fuzz = true
|
cargo-fuzz = true
|
||||||
|
@ -11,7 +11,7 @@ cargo-fuzz = true
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libfuzzer-sys = "0.4"
|
libfuzzer-sys = "0.4"
|
||||||
|
|
||||||
[dependencies.mps-interpreter]
|
[dependencies.muss-interpreter]
|
||||||
path = ".."
|
path = ".."
|
||||||
|
|
||||||
# Prevent this from interfering with workspaces
|
# Prevent this from interfering with workspaces
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#![no_main]
|
#![no_main]
|
||||||
#[macro_use] extern crate libfuzzer_sys;
|
#[macro_use] extern crate libfuzzer_sys;
|
||||||
extern crate mps_interpreter;
|
extern crate muss_interpreter;
|
||||||
|
|
||||||
fuzz_target!(|data: &[u8]| {
|
fuzz_target!(|data: &[u8]| {
|
||||||
if let Ok(s) = std::str::from_utf8(data) {
|
if let Ok(s) = std::str::from_utf8(data) {
|
||||||
|
@ -9,7 +9,7 @@ fuzz_target!(|data: &[u8]| {
|
||||||
print!("len:{},data:<non-ut8>,", data.len());
|
print!("len:{},data:<non-ut8>,", data.len());
|
||||||
}
|
}
|
||||||
let mut cursor = std::io::Cursor::new(data);
|
let mut cursor = std::io::Cursor::new(data);
|
||||||
let interpreter = mps_interpreter::MpsFaye::with_stream(&mut cursor);
|
let interpreter = muss_interpreter::Interpreter::with_stream(&mut cursor);
|
||||||
for item in interpreter {
|
for item in interpreter {
|
||||||
match item {
|
match item {
|
||||||
Err(e) => print!("err:{},", e),
|
Err(e) => print!("err:{},", e),
|
||||||
|
|
Loading…
Reference in a new issue