core-lightning/wallet/test
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
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile channel: reserve a bip32 index as soon as channel is opened. 2018-03-07 18:55:51 +01:00
run-db.c Remove unused parameter testname in create_test_db(const char *testname) 2018-02-22 10:46:30 +01:00
run-wallet.c peer_control: Fix a use-after-free bug. (#1237) 2018-03-19 09:27:09 +00:00
test_utils.h wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00