mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 06:46:16 +08:00
Fixed buffer overrun in create_transport_params() with -24.
It writes 16-bit prefix as designed, but length calculation assumed varint.
This commit is contained in:
parent
4764ef1590
commit
79e49c2a16
@ -1136,7 +1136,7 @@ ngx_quic_create_transport_params(u_char *pos, u_char *end, ngx_quic_tp_t *tp)
|
||||
|
||||
if (pos == NULL) {
|
||||
#if (quic_version < 0xff00001b)
|
||||
len += ngx_quic_varint_len(len);
|
||||
len += 2;
|
||||
#endif
|
||||
return len;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user