forked from mimblewimble/grin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support protocol version 1 and 2 in fuzz targets (mimblewimble#3073)
- Loading branch information
Showing
8 changed files
with
196 additions
and
54 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,12 @@ | ||
#![no_main] | ||
extern crate grin_core; | ||
#[macro_use] | ||
extern crate libfuzzer_sys; | ||
|
||
use grin_core::core::Block; | ||
use grin_core::ser; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let mut d = data.clone(); | ||
let _t: Result<Block, ser::Error> = ser::deserialize(&mut d, ser::ProtocolVersion(2)); | ||
}); |
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,12 @@ | ||
#![no_main] | ||
extern crate grin_core; | ||
#[macro_use] | ||
extern crate libfuzzer_sys; | ||
|
||
use grin_core::core::CompactBlock; | ||
use grin_core::ser; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let mut d = data.clone(); | ||
let _t: Result<CompactBlock, ser::Error> = ser::deserialize(&mut d, ser::ProtocolVersion(2)); | ||
}); |
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,12 @@ | ||
#![no_main] | ||
extern crate grin_core; | ||
#[macro_use] | ||
extern crate libfuzzer_sys; | ||
|
||
use grin_core::core::Transaction; | ||
use grin_core::ser; | ||
|
||
fuzz_target!(|data: &[u8]| { | ||
let mut d = data.clone(); | ||
let _t: Result<Transaction, ser::Error> = ser::deserialize(&mut d, ser::ProtocolVersion(2)); | ||
}); |