rgb-cln/gossipd
Rusty Russell 26dda57cc0 utils: make tal_arr_expand safer.
Christian and I both unwittingly used it in form:

	*tal_arr_expand(&x) = tal(x, ...)

Since '=' isn't a sequence point, the compiler can (and does!) cache
the value of x, handing it to tal *after* tal_arr_expand() moves it
due to tal_resize().

The new version is somewhat less convenient to use, but doesn't have
this problem, since the assignment is always evaluated after the
resize.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-01-15 12:01:38 +01:00
..
test misc: Update short_channel_id representation to use 'x' separators 2019-01-15 03:50:27 +00:00
Makefile common: make funding_tx and withdraw_tx share UTXO code. 2018-12-06 23:11:51 +01:00
broadcast.c gossipd: wire up memleak detection. 2018-11-22 05:15:42 +00:00
broadcast.h gossipd: wire up memleak detection. 2018-11-22 05:15:42 +00:00
gossip_constants.h gossipd: split wire types into msgs from lightningd and msgs from per-peer daemons 2018-11-21 00:36:31 +00:00
gossip_peerd_wire.csv gossipd: split wire types into msgs from lightningd and msgs from per-peer daemons 2018-11-21 00:36:31 +00:00
gossip_store.c gossipd: split wire types into msgs from lightningd and msgs from per-peer daemons 2018-11-21 00:36:31 +00:00
gossip_store.csv gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_store.h gossipd: invalidate old gossip_stores. 2018-09-21 17:56:15 +02:00
gossip_wire.csv gossipd: wire up memleak detection. 2018-11-22 05:15:42 +00:00
gossipd.c utils: make tal_arr_expand safer. 2019-01-15 12:01:38 +01:00
routing.c utils: make tal_arr_expand safer. 2019-01-15 12:01:38 +01:00
routing.h gossipd: wire up memleak detection. 2018-11-22 05:15:42 +00:00