Matt Corallo
add1d9d9e5
Merge pull request #69 from savil/gen-target-fix
...
[fuzz] remove \L in sed regex for filenames in gen_target.sh
2018-07-22 23:25:30 -04:00
Matt Corallo
e93c9fbeaf
Migrate all Uint256s used for channel_ids to [u8; 32]
2018-07-22 18:55:20 -04:00
Savil Srivastava
dee4ce5171
[fuzz] remove \L in sed regex for filenames in gen_target.sh
...
Summary:
on `master` branch, if i ran `gen_target.sh` i would get the following output:
https://gist.github.com/savil/2b3114eaf34c3ef8499b65005e374841
Without it, I get the files generated that are already checked-in (as expected).
Looking at the sed docs (https://www.gnu.org/software/sed/manual/html_node/Regular-Expressions.html ) i don't see an explanation for what `\L` may do in whatever regex sed follows. Does this look correct? cc @yuntai
2018-07-20 23:00:31 -07:00
Matt Corallo
84cb40f859
Bump version for API overhauls, update deps and docs
2018-07-19 23:06:36 -04:00
Matt Corallo
77a96366ba
Shorten channelmonitor_deserialize_target's name for AFL
2018-07-18 14:36:48 -04:00
Matt Corallo
0b82f5584f
Test channelmonitor serialization roundtrip doesn't mutate state
2018-07-17 14:59:29 -04:00
Jean Pierre Dudey
d0e9137bc5
Add the OutPoint
type for the ChannelMonitor
's funding_txo field.
...
This structure replaces the (Sha256dHash, u16) tuple that was being used
for the funding output.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2018-06-29 12:12:17 -04:00
Matt Corallo
4de3cfe665
Fix message targets to not have an internal loop
2018-06-16 23:26:56 -04:00
Matt Corallo
a73dea7722
Add ping/pong fuzz targets
2018-06-16 23:26:56 -04:00
Matt Corallo
f462d8ac70
fuzztarget sha -> XOR, crates secp256k1
2018-06-04 20:02:07 -04:00
Matt Corallo
03d07bf73d
Update msg_target_template to note auto-generation
2018-05-13 13:28:47 -04:00
Matt Corallo
98af41ba29
Fix indentation in fuzz_target utils
2018-05-13 13:23:22 -04:00
Matt Corallo
ce382c0979
Make travis check that msg_targets match the template
2018-05-13 13:23:22 -04:00
Yuntai Kyong
913ea887fe
add fuzz target for messages
...
[[bin]] section for each new target in Cargo.toml
glob chanbes in travis-fuzz.sh
2018-05-13 05:22:55 +09:00
Yuntai Kyong
e2ff3393ea
add script to generate msg test target
2018-05-13 05:10:23 +09:00
Yuntai Kyong
7822af8bd1
Update dependency on secp256k1 pointing to https://github.com/rust-bitcoin/rust-secp256k1
2018-05-12 14:30:26 +09:00
Yuntai Kyong
dda8414161
add .gitignore
2018-05-12 14:30:26 +09:00
Matt Corallo
cff3ae5f26
Make channel_target return as channelmanager removes on shutdown
2018-05-10 10:39:20 -04:00
Matt Corallo
2d8afeccdb
Rewrite channelmonitor framework and implement a bunch of it
2018-04-24 20:42:24 -04:00
Matt Corallo
53d1518566
Move ChannelKeys creation into channelmanager
2018-04-17 12:43:12 -04:00
Matt Corallo
1ec9c3aa4b
Provide fallback for crypto's fixed_time_eq on non-x86/arm targets
2018-04-16 20:35:21 -04:00
Matt Corallo
374ea1f05e
Completely rewrite channel HTLC tracking and processing
...
It obviously was nonsensical prior, though its now way more
complicated...there's refactoring work to be done here, but it
should at least kinda sorta work now.
2018-04-16 20:35:21 -04:00
Matt Corallo
1ae603cc3d
Switch back to crates.io rust-bitcoin for 0.13 release
2018-04-16 20:35:03 -04:00
Matt Corallo
9ccfb358b4
Fix travis-fuzz upgrade-handling
2018-04-02 18:42:41 -04:00
Matt Corallo
b21048a1ce
Check funding txout format when transaction is confirmed in channel
2018-04-02 18:07:03 -04:00
Matt Corallo
8938cd7d78
Expand full_stack_target from uselessly-large to laughably-large
2018-04-02 18:07:03 -04:00
Matt Corallo
c528ff3650
Handle incoming shutdown messages
2018-04-02 18:07:02 -04:00
Matt Corallo
890e3cb165
Update for new rust-bitcoin API, avoid some duplicate hashing
2018-04-02 18:06:59 -04:00
Matt Corallo
942d760b83
impl more message decoders
2018-03-25 17:02:28 -04:00
Matt Corallo
2188192efa
Set travis to run honggfuzz for a while
2018-03-23 13:16:24 -04:00
Matt Corallo
1d2774dd64
Add some fuzz targets.
...
Sadly none of them are really any good without some hand-holding to
generate good input data, and unless sha256 gets stubbed out I'm
not sure they're gonna get good without a symbolic execution fuzzer
2018-03-23 13:16:24 -04:00