mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 11:38:36 +08:00
QUIC: client transport parameter data length checking.
This commit is contained in:
parent
75e3004902
commit
eaa6daa5f5
@ -1750,6 +1750,14 @@ ngx_quic_parse_transport_params(u_char *p, u_char *end, ngx_quic_tp_t *tp,
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
if ((size_t) (end - p) < len) {
|
||||
ngx_log_error(NGX_LOG_INFO, log, 0,
|
||||
"quic failed to parse"
|
||||
" transport param id:0x%xL, data length %uL too long",
|
||||
id, len);
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
rc = ngx_quic_parse_transport_param(p, p + len, id, tp);
|
||||
|
||||
if (rc == NGX_ERROR) {
|
||||
|
Loading…
Reference in New Issue
Block a user