]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor fuzzing to be a C-callable library plus rust binaries 2019-12-fuzz-clib
authorMatt Corallo <git@bluematt.me>
Wed, 11 Dec 2019 18:18:43 +0000 (13:18 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 11 Dec 2019 20:13:14 +0000 (15:13 -0500)
commite28fd78e67b92de9f42dae3636c5dbea5e9b1f86
treea9abfd33ce24809d98c06521838df47849ea9eaa
parentcd21a357d85eec93668f2526e300746a921cbad2
Refactor fuzzing to be a C-callable library plus rust binaries

This should help us avoid rust's at-load syscalls by calling the
tests from a C program.
107 files changed:
fuzz/Cargo.toml
fuzz/fuzz_targets/chanmon_deser_target.rs [deleted file]
fuzz/fuzz_targets/chanmon_fail_consistency.rs [deleted file]
fuzz/fuzz_targets/full_stack_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/gen_target.sh [deleted file]
fuzz/fuzz_targets/msg_targets/msg_accept_channel_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_announcement_signatures_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_channel_announcement_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_channel_reestablish_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_channel_update_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_closing_signed_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_commitment_signed_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_decoded_onion_error_packet_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_error_message_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_funding_created_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_funding_locked_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_funding_signed_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_init_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_node_announcement_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_onion_hop_data_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_open_channel_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_ping_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_pong_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_revoke_and_ack_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_shutdown_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_target_template.txt [deleted file]
fuzz/fuzz_targets/msg_targets/msg_update_add_htlc_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_update_fail_htlc_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_update_fail_malformed_htlc_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_update_fee_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/msg_update_fulfill_htlc_target.rs [deleted file]
fuzz/fuzz_targets/msg_targets/utils.rs [deleted file]
fuzz/fuzz_targets/peer_crypt_target.rs [deleted file]
fuzz/fuzz_targets/router_target.rs [deleted file]
fuzz/fuzz_targets/utils/mod.rs [deleted file]
fuzz/fuzz_targets/utils/test_logger.rs [deleted file]
fuzz/src/bin/chanmon_consistency_target.rs [new file with mode: 0644]
fuzz/src/bin/chanmon_deser_target.rs [new file with mode: 0644]
fuzz/src/bin/full_stack_target.rs [new file with mode: 0644]
fuzz/src/bin/gen_target.sh [new file with mode: 0755]
fuzz/src/bin/msg_accept_channel_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_announcement_signatures_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_channel_announcement_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_channel_reestablish_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_channel_update_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_closing_signed_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_commitment_signed_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_decoded_onion_error_packet_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_error_message_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_funding_created_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_funding_locked_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_funding_signed_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_init_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_node_announcement_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_onion_hop_data_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_open_channel_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_ping_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_pong_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_revoke_and_ack_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_shutdown_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_update_add_htlc_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_update_fail_htlc_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_update_fail_malformed_htlc_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_update_fee_target.rs [new file with mode: 0644]
fuzz/src/bin/msg_update_fulfill_htlc_target.rs [new file with mode: 0644]
fuzz/src/bin/peer_crypt_target.rs [new file with mode: 0644]
fuzz/src/bin/router_target.rs [new file with mode: 0644]
fuzz/src/bin/target_template.txt [new file with mode: 0644]
fuzz/src/chanmon_consistency.rs [new file with mode: 0644]
fuzz/src/chanmon_deser.rs [new file with mode: 0644]
fuzz/src/full_stack.rs [new file with mode: 0644]
fuzz/src/lib.rs [new file with mode: 0644]
fuzz/src/msg_targets/gen_target.sh [new file with mode: 0755]
fuzz/src/msg_targets/mod.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_accept_channel.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_announcement_signatures.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_channel_announcement.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_channel_reestablish.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_channel_update.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_closing_signed.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_commitment_signed.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_decoded_onion_error_packet.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_error_message.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_funding_created.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_funding_locked.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_funding_signed.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_init.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_node_announcement.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_onion_hop_data.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_open_channel.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_ping.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_pong.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_revoke_and_ack.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_shutdown.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_target_template.txt [new file with mode: 0644]
fuzz/src/msg_targets/msg_update_add_htlc.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_update_fail_htlc.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_update_fail_malformed_htlc.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_update_fee.rs [new file with mode: 0644]
fuzz/src/msg_targets/msg_update_fulfill_htlc.rs [new file with mode: 0644]
fuzz/src/msg_targets/utils.rs [new file with mode: 0644]
fuzz/src/peer_crypt.rs [new file with mode: 0644]
fuzz/src/router.rs [new file with mode: 0644]
fuzz/src/utils/mod.rs [new file with mode: 0644]
fuzz/src/utils/test_logger.rs [new file with mode: 0644]
fuzz/targets.h [new file with mode: 0644]
fuzz/travis-fuzz.sh