core-lightning/wallet
ZmnSCPxj, ZmnSCPxj jxPCSmnZ 044705a547 peer_control: Fix a use-after-free bug. (#1237)
This bug is a classic case of being lazy:
1. peer_accept_channel() allocated its return off the input message,
   rather than taking an explicit allocation context.  This concealed the
   lifetime nature of the return.
2. The context for sanitize_error was the error itself, rather than the
   more obvious tmpctx (connect_failed does not take).

The global tmpctx removes the "efficiency" excuse for grabbing a random
object to use as context, and is also nice and explicit.

All-the-hard-work-by: @ZmnSCPxj
2018-03-19 09:27:09 +00:00
..
test peer_control: Fix a use-after-free bug. (#1237) 2018-03-19 09:27:09 +00:00
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
db.c wallet: Add DB fields for recording routing failures. 2018-03-14 05:33:09 +00:00
db.h wallet: add check-source to makefile. 2018-03-07 18:55:51 +01:00
invoices.c Mark unused parameters as such (using "UNUSED") 2018-03-16 01:17:40 +00:00
invoices.h wallet: add check-source to makefile. 2018-03-07 18:55:51 +01:00
Makefile wallet: add check-source to makefile. 2018-03-07 18:55:51 +01:00
txfilter.c utils: remove tal_tmpctx altogether, use global. 2018-03-16 00:16:10 +00:00
txfilter.h txfilter: clean up prototypes. 2018-03-07 18:55:51 +01:00
wallet.c pay: delete HTLC when we delete payment. 2018-03-16 04:01:06 +00:00
wallet.h pay: delete HTLC when we delete payment. 2018-03-16 04:01:06 +00:00
walletrpc.c lightningd/json: Move json helpers specific for lightningd to new module. 2018-03-19 00:27:55 +00:00
walletrpc.h walletrpc: Implemented the withdrawal flow 2017-06-23 16:02:20 +09:30