Christian Aurich
72c1feaf04
quic: reject zero addressLRUSize
...
SocketAddressLRU::Upsert always inserts an entry before evicting down
to max_size_. With max_size_ == 0, it evicts the entry it just
inserted and then accesses the now-missing key via
map_[address]->second. operator[] recreates the key with a
default-constructed std::list iterator, which is then dereferenced.
This is undefined behavior, observed as a SIGSEGV in Endpoint::Receive
on the first UDP packet accepted by a QuicEndpoint constructed with
{ addressLRUSize: 0 }.
SocketAddressLRU has no useful semantics for a zero-capacity cache,
and Upsert's callers rely on it returning a valid pointer. Reject 0
(and 0n) at the options-parsing boundary instead of changing Upsert's
contract.
Signed-off-by: Christian Aurich <christian.aurichzm@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/65827
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tim Perry <pimterry@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2026-09-07 23:22:00 +00:00
..
2026-09-03 23:54:01 +00:00
2026-09-03 15:37:22 +00:00
2026-09-05 02:49:07 +00:00
2026-09-03 15:37:22 +00:00
2026-09-06 08:43:54 +00:00
2026-09-06 08:43:54 +00:00
2026-09-06 08:43:54 +00:00
2026-09-06 08:43:54 +00:00
2026-09-05 02:49:04 +00:00
2026-09-05 02:49:04 +00:00
2026-09-06 08:43:54 +00:00
2026-09-06 08:43:54 +00:00
2026-09-06 08:43:54 +00:00
2026-09-06 08:43:54 +00:00
2026-09-03 15:37:21 +00:00
2026-09-06 08:43:54 +00:00
2026-09-05 02:49:07 +00:00
2026-09-06 08:43:54 +00:00
2026-09-06 08:43:54 +00:00
2026-09-05 02:49:07 +00:00
2026-09-06 08:43:54 +00:00
2026-09-06 08:43:54 +00:00
2026-09-05 02:49:05 +00:00
2026-09-03 12:57:27 +00:00
2026-09-04 13:28:27 +00:00
2026-09-03 05:35:54 +00:00
2026-09-05 05:44:06 +00:00
2026-09-06 06:34:38 +00:00
2026-09-05 13:31:22 +00:00
2026-09-02 08:50:34 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 10:42:52 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 20:54:14 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-07 05:10:02 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-02 08:50:34 +00:00
2026-09-02 16:43:10 +00:00
2026-09-04 16:48:33 +00:00
2026-09-06 08:43:53 +00:00
2026-09-03 11:40:52 +02:00
2026-09-03 11:40:52 +02:00
2026-09-03 11:40:52 +02:00
2026-09-03 11:40:52 +02:00
2026-09-03 11:40:52 +02:00
2026-09-03 11:40:52 +02:00
2026-09-04 04:45:19 +00:00
2026-09-06 08:43:50 +00:00
2026-09-07 05:26:21 +00:00
2026-09-07 05:26:21 +00:00
2026-09-07 05:26:21 +00:00
2026-09-07 05:26:21 +00:00
2026-09-07 05:26:21 +00:00
2026-09-07 05:26:19 +00:00
2026-09-07 05:26:21 +00:00
2026-09-03 05:36:15 +00:00
2026-09-06 23:02:02 +00:00
2026-09-06 23:02:02 +00:00
2026-09-03 15:28:39 +00:00
2026-09-03 15:28:39 +00:00
2026-09-03 15:28:39 +00:00
2026-09-06 04:36:06 +00:00
2026-09-02 16:17:15 -04:00
2026-09-02 16:17:15 -04:00
2026-09-02 16:17:15 -04:00
2026-09-02 16:17:15 -04:00
2026-09-02 16:17:15 -04:00
2026-09-03 08:43:14 +00:00
2026-09-03 08:43:14 +00:00
2026-09-03 08:43:14 +00:00
2026-09-03 08:43:14 +00:00
2026-09-03 08:43:14 +00:00
2026-09-03 08:43:14 +00:00
2026-09-03 08:43:14 +00:00
2026-09-03 15:28:39 +00:00
2026-09-03 09:30:21 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-07 11:42:09 +00:00
2026-09-03 15:37:21 +00:00
2026-09-03 15:37:21 +00:00
2026-09-02 14:59:15 +00:00
2026-09-02 14:59:15 +00:00
2026-09-02 14:59:15 +00:00
2026-09-04 22:22:10 +00:00
2026-09-04 22:22:10 +00:00
2026-09-04 16:48:33 +00:00
2026-09-02 05:48:32 +00:00
2026-09-05 17:43:03 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-02 10:00:05 +00:00
2026-09-02 10:00:05 +00:00
2026-09-07 23:22:00 +00:00
2026-09-06 04:36:06 +00:00
2026-09-03 23:54:01 +00:00
2026-09-02 23:33:37 +00:00
2026-09-03 15:36:30 +00:00
2026-09-06 04:35:55 +00:00
2026-09-06 04:36:01 +00:00
2026-09-02 13:14:36 +00:00
2026-09-06 04:36:06 +00:00
2026-09-02 13:14:36 +00:00
2026-09-06 04:36:04 +00:00
2026-09-02 13:14:35 +00:00
2026-09-06 04:35:59 +00:00
2026-09-06 04:36:00 +00:00
2026-09-06 04:36:05 +00:00
2026-09-06 04:36:05 +00:00
2026-09-06 04:36:06 +00:00
2026-09-02 13:14:35 +00:00
2026-09-02 13:14:34 +00:00
2026-09-06 04:36:05 +00:00
2026-09-06 04:36:06 +00:00
2026-09-06 04:36:06 +00:00
2026-09-06 04:36:06 +00:00
2026-09-02 13:14:31 +00:00
2026-09-04 19:57:57 +00:00
2026-09-07 12:35:04 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-03 15:28:39 +00:00
2026-09-07 05:10:02 +00:00
2026-09-02 05:48:32 +00:00
2026-09-04 16:48:33 +00:00
2026-09-02 21:47:04 -07:00
2026-09-02 21:47:04 -07:00
2026-09-07 14:48:56 +00:00
2026-09-02 07:27:11 +00:00
2026-09-02 07:27:11 +00:00
2026-09-02 07:27:11 +00:00
2026-09-02 05:36:48 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 10:42:52 +00:00
2026-09-05 10:42:52 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 10:42:52 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 13:31:22 +00:00
2026-09-05 10:42:52 +00:00
2026-09-05 13:31:22 +00:00
2026-09-07 14:49:09 +00:00
2026-09-05 13:31:22 +00:00
2026-09-02 07:27:11 +00:00