Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fuzzing] adding merkle tree proto fuzzing #1232

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions testsuite/libra-fuzzer/src/fuzz_targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ macro_rules! proto_fuzz_target {
}

// List fuzz target modules here.
mod accumulator_merkle_proof;
mod admission_control;
mod compiled_module;
mod consensus_proposal;
mod inbound_rpc_protocol;
mod inner_signed_transaction;
mod signed_transaction;
mod sparse_merkle_proof;
mod vm_value;

lazy_static! {
Expand All @@ -70,6 +72,8 @@ lazy_static! {
Box::new(compiled_module::CompiledModuleTarget::default()),
Box::new(signed_transaction::SignedTransactionTarget::default()),
Box::new(inner_signed_transaction::SignedTransactionTarget::default()),
Box::new(sparse_merkle_proof::SparseMerkleProofTarget::default()),
Box::new(accumulator_merkle_proof::AccumulatorProofTarget::default()),
Box::new(vm_value::ValueTarget::default()),
Box::new(consensus_proposal::ConsensusProposal::default()),
Box::new(admission_control::AdmissionControlSubmitTransactionRequest::default()),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Copyright (c) The Libra Core Contributors
// SPDX-License-Identifier: Apache-2.0

use libra_types::proof::TransactionAccumulatorProof;
use libra_types::proto::types::AccumulatorProof as ProtoAccumulatorProof;

proto_fuzz_target!(AccumulatorProofTarget => TransactionAccumulatorProof, ProtoAccumulatorProof);
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) The Libra Core Contributors
// SPDX-License-Identifier: Apache-2.0
use libra_types::proof::SparseMerkleProof;
use libra_types::proto::types::SparseMerkleProof as ProtoSparseMerkleProof;

proto_fuzz_target!(SparseMerkleProofTarget => SparseMerkleProof, ProtoSparseMerkleProof);