DanS and Claude Opus 5.5
3537531901
rpc: cap HTTP request headers at 8 KiB, and keep getblocktemplate from aborting on an error
...
From the general audit, both still on dev:
- libevent's max_headers_size defaults to unlimited, and the request line and headers are buffered
before the -rpcallowip check or authentication runs, so one connection could grow the node's memory
with every byte it sent. Capped at 8 KiB. Regtest: a 9 KiB header and a 10 KiB request line now get
400 (the old binary accepted the first and processed the second); normal calls are unaffected.
qa/rpc-tests/httpbasics.py gains a request-line case.
- getblocktemplate left cs_main with LEAVE_CRITICAL_SECTION around CreateNewBlockWithKey. If that
threw (a wallet or BDB fault), the enclosing scoped lock's destructor unlocked an already unlocked
mutex while unwinding, which aborts the node with nothing logged. It now re-enters cs_main first,
so the error reaches the caller. Regtest: getblocktemplate returns templates as before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-11-20 20:10:01 -06:00
..
2026-08-27 15:19:22 -05:00
2026-03-19 09:30:50 -05:00
2026-08-27 11:35:38 -05:00
2026-07-06 01:57:18 -05:00
2026-11-20 19:51:15 -06:00
2026-07-08 05:48:39 +02:00
2026-03-19 09:30:50 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-03 17:28:49 -06:00
2023-12-04 05:10:48 +00:00
2026-11-20 20:10:01 -06:00
2024-03-15 15:16:04 -04:00
2024-10-01 10:49:13 -04:00
2020-10-21 07:28:10 -04:00
2024-02-27 23:59:59 +01:00
2025-12-30 16:38:42 -05:00
2024-02-27 23:59:59 +01:00
2020-10-21 07:28:10 -04:00
2024-02-27 23:59:59 +01:00
2026-11-20 20:10:01 -06:00
2026-11-18 10:33:00 -06:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2023-01-06 15:23:22 +00:00
2024-02-27 23:59:59 +01:00
2026-08-27 16:51:16 -05:00
2026-08-27 16:51:16 -05:00
2026-07-21 14:13:31 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:55:00 -05:00
2026-11-20 19:05:53 -06:00
2026-08-25 19:18:30 +02:00
2026-08-25 19:18:30 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2021-01-23 22:18:57 -05:00
2026-08-31 17:35:52 -05:00
2020-10-21 07:28:10 -04:00
2020-12-16 08:30:32 -05:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-10-27 15:27:25 -05:00
2026-08-27 12:24:04 -05:00
2026-08-25 18:36:03 -05:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2026-08-25 18:36:03 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2018-12-31 21:41:05 -11:00
2024-02-27 23:59:59 +01:00
2026-08-21 19:15:56 -05:00
2026-10-27 15:27:25 -05:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:02:01 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:55:00 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-11-20 20:10:01 -06:00
2024-02-27 23:59:59 +01:00
2026-10-28 17:05:03 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-01-01 15:24:57 -05:00
2024-02-27 23:59:59 +01:00
2026-10-30 22:28:32 -05:00
2024-02-27 23:59:59 +01:00
2025-08-08 21:58:39 -04:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-01-01 15:24:57 -05:00
2024-02-27 23:59:59 +01:00
2026-08-31 02:38:38 -05:00
2026-08-27 15:02:01 -05:00
2026-08-27 15:02:01 -05:00
2026-08-27 13:20:51 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-31 02:38:38 -05:00
2024-03-15 13:33:18 -04:00
2024-03-15 13:33:18 -04:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:02:01 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-11-18 11:08:57 -06:00
2024-02-27 23:59:59 +01:00
2026-11-18 10:33:00 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-07-06 01:57:18 -05:00
2026-08-23 06:23:09 +02:00
2026-08-23 06:23:09 +02:00
2024-02-27 23:59:59 +01:00
2018-07-06 07:08:33 +07:00
2026-11-20 19:51:15 -06:00
2026-10-28 12:37:36 -05:00
2026-11-20 19:04:51 -06:00
2026-11-20 19:51:15 -06:00
2024-02-27 23:59:59 +01:00
2026-06-28 16:58:31 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2026-10-30 22:27:41 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2021-08-09 17:40:35 -04:00
2026-10-16 21:23:00 -05:00
2026-11-20 19:51:15 -06:00
2026-03-05 05:22:44 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-10-28 10:23:20 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 16:51:16 -05:00
2026-07-09 01:26:30 +02:00
2024-02-27 23:59:59 +01:00
2026-06-29 21:22:54 -05:00
2026-06-29 21:22:54 -05:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-04-18 06:41:25 -07:00
2024-03-15 15:14:26 -04:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-28 23:35:06 -05:00
2024-02-28 11:39:22 -05:00
2024-02-27 23:59:59 +01:00
2024-09-27 22:40:46 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-10-22 08:50:39 -04:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-11-18 10:33:00 -06:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:19:22 -05:00
2026-07-09 06:59:25 +02:00
2026-07-09 09:01:06 +02:00
2026-07-09 09:01:06 +02:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-08-27 15:19:22 -05:00
2024-06-09 11:22:21 -04:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2024-02-27 23:59:59 +01:00
2026-10-28 10:36:23 -05:00
2026-10-28 10:36:23 -05:00
2026-09-01 19:06:54 -05:00
2026-03-04 18:42:42 -06:00
2024-02-27 23:59:59 +01:00