File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
- for target in CommitmentSigned FundingCreated FundingLocked FundingSigned OpenChannel RevokeAndACK Shutdown UpdateAddHTLC UpdateFailHTLC UpdateFailMalformedHTLC UpdateFee UpdateFulfillHTLC AcceptChannel ClosingSigned; do
1
+ for target in CommitmentSigned FundingCreated FundingLocked FundingSigned OpenChannel RevokeAndACK Shutdown UpdateAddHTLC UpdateFailHTLC UpdateFailMalformedHTLC UpdateFee UpdateFulfillHTLC AcceptChannel ClosingSigned; do
2
2
tn=$( echo $target | sed ' s/\([a-z0-9]\)\([A-Z]\)/\1_\L\2/g' )
3
3
fn=msg_$( echo $tn | tr ' [:upper:]' ' [:lower:]' ) _target.rs
4
4
cat msg_target_template.txt | sed s/MSG_TARGET/$target / > $fn
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
+
4
+ pushd fuzz_targets/msg_targets
5
+ rm * _target.rs
6
+ ./gen_target.sh
7
+ [ " $( git diff) " != " " ] && exit 1
8
+ popd
9
+
3
10
cargo install --force honggfuzz
4
11
for TARGET in fuzz_targets/* .rs fuzz_targets/msg_targets/* _target.rs; do
5
12
FILENAME=$( basename $TARGET )
You can’t perform that action at this time.
0 commit comments