mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
nghttpx: Fix QUIC stateless reset stack buffer overflow
This commit is contained in:
@@ -590,7 +590,7 @@ int QUICConnectionHandler::send_stateless_reset(
|
|||||||
|
|
||||||
// SCID + minimum expansion - NGTCP2_STATELESS_RESET_TOKENLEN
|
// SCID + minimum expansion - NGTCP2_STATELESS_RESET_TOKENLEN
|
||||||
constexpr size_t max_rand_byteslen =
|
constexpr size_t max_rand_byteslen =
|
||||||
SHRPX_QUIC_SCIDLEN + 22 - NGTCP2_STATELESS_RESET_TOKENLEN;
|
NGTCP2_MAX_CIDLEN + 22 - NGTCP2_STATELESS_RESET_TOKENLEN;
|
||||||
|
|
||||||
size_t rand_byteslen;
|
size_t rand_byteslen;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user