-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[package] | ||
name = "chia-protocol-fuzz" | ||
version = "0.0.0" | ||
authors = ["Automatically generated"] | ||
publish = false | ||
edition = "2021" | ||
|
||
[package.metadata] | ||
cargo-fuzz = true | ||
|
||
[dependencies] | ||
libfuzzer-sys = "0.4" | ||
|
||
[dependencies.chia-protocol] | ||
path = ".." | ||
|
||
# Prevent this from interfering with workspaces | ||
[workspace] | ||
members = ["."] | ||
|
||
[[bin]] | ||
name = "parse-full-block" | ||
path = "fuzz_targets/parse-full-block.rs" | ||
test = false | ||
doc = false | ||
|
||
[[bin]] | ||
name = "parse-header-block" | ||
path = "fuzz_targets/parse-header-block.rs" | ||
test = false | ||
doc = false | ||
|
||
[[bin]] | ||
name = "parse-foliage" | ||
path = "fuzz_targets/parse-foliage.rs" | ||
test = false | ||
doc = false | ||
|
||
[[bin]] | ||
name = "parse-tx-info" | ||
path = "fuzz_targets/parse-tx-info.rs" | ||
test = false | ||
doc = false | ||
|
||
[[bin]] | ||
name = "parse-program" | ||
path = "fuzz_targets/parse-program.rs" | ||
test = false | ||
doc = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#![no_main] | ||
use libfuzzer_sys::fuzz_target; | ||
use std::io::Cursor; | ||
use chia_protocol::Foliage; | ||
use chia_protocol::Streamable; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ret = <Foliage as Streamable>::parse(&mut Cursor::<&[u8]>::new(data)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#![no_main] | ||
use libfuzzer_sys::fuzz_target; | ||
use std::io::Cursor; | ||
use chia_protocol::FullBlock; | ||
use chia_protocol::Streamable; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ret = <FullBlock as Streamable>::parse(&mut Cursor::<&[u8]>::new(data)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#![no_main] | ||
use libfuzzer_sys::fuzz_target; | ||
use std::io::Cursor; | ||
use chia_protocol::HeaderBlock; | ||
use chia_protocol::Streamable; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ret = <HeaderBlock as Streamable>::parse(&mut Cursor::<&[u8]>::new(data)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#![no_main] | ||
use libfuzzer_sys::fuzz_target; | ||
use std::io::Cursor; | ||
use chia_protocol::Program; | ||
use chia_protocol::Streamable; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ret = <Program as Streamable>::parse(&mut Cursor::<&[u8]>::new(data)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#![no_main] | ||
use libfuzzer_sys::fuzz_target; | ||
use std::io::Cursor; | ||
use chia_protocol::TransactionsInfo; | ||
use chia_protocol::Streamable; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let _ret = <TransactionsInfo as Streamable>::parse(&mut Cursor::<&[u8]>::new(data)); | ||
}); |