Files
node/doc/api
Christian Aurich Zanettini Martins a4f6d7587b quic: validate session close error codes
`session.close()` and `session.destroy()` only checked that
`options.code` was a bigint or a number. Numbers were then converted
to `uint64_t` unchecked, so fractions were truncated and negative,
non-finite or too large values were undefined behavior. Bigints were
only checked to fit in 64 bits, but QUIC error codes are
variable-length integers limited to 62 bits, so larger codes cannot
be encoded in the `CONNECTION_CLOSE` frame.

Reject codes that are not integers between `0` and `2n ** 62n - 1n`,
the range `QuicError` already enforces, before any close or destroy
side effects.

Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66302
Reviewed-By: Tim Perry <pimterry@gmail.com>
2026-10-06 17:40:30 +00:00
..
2026-09-16 20:13:19 +02:00
2026-09-28 04:22:37 +00:00
2026-10-05 16:47:38 +00:00
2026-09-03 11:40:52 +02:00
2026-09-22 10:59:57 +02:00
2026-09-03 15:37:21 +00:00
2026-09-25 20:28:33 +00:00
…
2026-10-05 21:26:47 +00:00
2026-09-11 13:15:27 -04:00
2026-10-05 16:47:38 +00:00
2026-09-26 21:18:43 +00:00
2026-08-03 11:44:23 +00:00
2026-09-25 20:28:33 +00:00
2026-09-09 18:04:31 +02:00