core-lightning/tests
Rusty Russell 054eeb8aa2 plugins/sql: fix crash when subobject is missing which has subobject inside it.
There's only one place (added in v24.02) where we have nested subobjects, and
if the outer sub-object is not there it crashes.

```
sql: FATAL SIGNAL 11 (version v24.08rc1-2-ge134f2f-modded)
0x5781d447239b send_backtrace
        common/daemon.c:33
0x5781d4472432 crashdump
        common/daemon.c:75
0x787bcd64531f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x5781d447782a json_get_membern
        common/json_parse_simple.c:210
0x5781d44778cc json_get_member
        common/json_parse_simple.c:223
0x5781d445d0e2 process_json_obj
        plugins/sql.c:537
0x5781d445d10d process_json_obj
        plugins/sql.c:538
0x5781d445d598 process_json_list
        plugins/sql.c:684
0x5781d445d65a process_json_result
        plugins/sql.c:699
0x5781d445d7cb default_list_done
        plugins/sql.c:722
0x5781d446349d handle_rpc_reply
        plugins/libplugin.c:1016
0x5781d4463640 rpc_read_response_one
        plugins/libplugin.c:1202
0x5781d44636f1 rpc_conn_read_response
        plugins/libplugin.c:1226
0x5781d459e56c next_plan
        ccan/ccan/io/io.c:60
0x5781d459ea3d do_plan
        ccan/ccan/io/io.c:422
0x5781d459eafa io_ready
        ccan/ccan/io/io.c:439
0x5781d45a0469 io_loop
        ccan/ccan/io/poll.c:455
0x5781d4463dcb plugin_main
        plugins/libplugin.c:2230
```

Changelog-Fixed: Plugins: `sql` crash on querying `listpeerchannels` during channel establishment.
Fixes: https://github.com/ElementsProject/lightning/issues/7505
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-08-16 07:19:52 +09:30
..
data bookkeeper: fix up out-of-order migrations in rc1 2024-08-16 07:18:29 +09:30
fuzz fuzz: Add input for from_bech32_charset off-by-one bug 2024-06-20 10:53:50 +09:30
plugins bkpr: add two custom notifications that we listen for 2024-08-09 10:21:44 +09:30
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
autogenerate-rpc-examples.py script: Auto generate rpc examples for documentation 2024-08-09 23:56:45 -07:00
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py pytest: use --developer instead of environment variable. 2023-09-21 20:08:24 +09:30
fixtures.py pytest: use --developer instead of environment variable. 2023-09-21 20:08:24 +09:30
rkls_github_canned_server.py pytest: add blackbox tests for reckless 2023-04-09 12:41:11 +09:30
test_askrene.py askrene: add "auto.localchans" layer. 2024-08-07 20:35:30 +09:30
test_bookkeeper.py bookkeeper: fix up out-of-order migrations in rc1 2024-08-16 07:18:29 +09:30
test_cln_rs.py cln-plugin: add multi options for String and i64 2024-08-13 12:24:45 +09:30
test_clnrest.py rpc: Removing description from json_command struct 2024-07-31 14:42:58 +09:30
test_closing.py pytest: handle more expected broken messages. 2024-08-15 16:38:12 +09:30
test_connection.py pytest: fix test_feerate_stress race 2024-06-24 21:12:43 +09:30
test_db.py pytest: clean up tests/test_db.py::test_last_tx_psbt_upgrade 2024-05-08 21:54:50 -05:00
test_gossip.py pytest: handle more expected broken messages. 2024-08-15 16:38:12 +09:30
test_invoices.py autoclean: remove autocleaninvoice command. 2024-06-20 16:14:38 +09:30
test_misc.py pytest: handle more expected broken messages. 2024-08-15 16:38:12 +09:30
test_mkfunding.py pytest: add tests for devtools/mkfunding 2023-01-09 14:50:30 -06:00
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py config: actually deprecate --experimental-anchors. 2024-07-09 15:09:29 +02:00
test_pay.py lightningd: create new return code for enableoffer. 2024-08-11 11:27:10 +09:30
test_plugin.py plugins/sql: fix crash when subobject is missing which has subobject inside it. 2024-08-16 07:19:52 +09:30
test_reckless.py reckless: add json output option 2024-08-08 11:33:39 +09:30
test_renepay.py renepay: fix sources 2024-05-08 22:32:13 -05:00
test_runes.py commando: update removal version for rpcs 2024-06-18 14:06:06 +09:30
test_splicing.py splice: Add support for tx_abort to channeld 2024-02-11 10:46:23 +01:00
test_splicing_disconnect.py pytest: fix flake in test_splice_disconnect_sig 2024-05-09 16:14:23 -05:00
test_splicing_insane.py splice: Agressive restart testing during splices 2023-12-15 09:42:45 +10:30
test_wallet.py tests: Removed non-essential hsm copy step 2024-08-09 23:56:45 -07:00
utils.py devtools/gossmap-compress: allow setting the nodeid explicitly for generated nodes. 2024-08-07 20:35:30 +09:30
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30