From: Nitin Swami Date: Wed, 11 Nov 2026 15:59:47 +0000 (+0530) Subject: QUIC: fixed parsing of transport parameter IDs X-Git-Url: https://git.kaiwu.me/http/ngx_http_fastcgi_module.html?a=commitdiff_plain;h=75f572494059d54aaeca2ca22114d5d0f4fde224;p=nginx.git QUIC: fixed parsing of transport parameter IDs Transport parameter IDs were truncated to 16 bits and could be misinterpreted as known ones from the permanent 0x00-0x3f range. --- diff --git a/src/event/quic/ngx_event_quic_transport.c b/src/event/quic/ngx_event_quic_transport.c index ba6211c33..19c23bec1 100644 --- a/src/event/quic/ngx_event_quic_transport.c +++ b/src/event/quic/ngx_event_quic_transport.c @@ -129,7 +129,7 @@ static size_t ngx_quic_create_retire_connection_id(u_char *p, static size_t ngx_quic_create_close(u_char *p, ngx_quic_frame_t *f); static ngx_int_t ngx_quic_parse_transport_param(u_char *p, u_char *end, - uint16_t id, ngx_quic_tp_t *dst); + uint64_t id, ngx_quic_tp_t *dst); uint32_t ngx_quic_versions[] = { @@ -1616,7 +1616,7 @@ ngx_quic_create_max_streams(u_char *p, ngx_quic_max_streams_frame_t *ms) static ngx_int_t -ngx_quic_parse_transport_param(u_char *p, u_char *end, uint16_t id, +ngx_quic_parse_transport_param(u_char *p, u_char *end, uint64_t id, ngx_quic_tp_t *dst) { uint64_t varint;