mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
HTTP/3: require that field section base index is not negative.
RFC 9204 explicitly requires that.
This commit is contained in:
parent
9d81ef744c
commit
7123ff2916
@ -474,7 +474,13 @@ done:
|
||||
}
|
||||
|
||||
if (st->sign) {
|
||||
if (st->insert_count <= st->delta_base) {
|
||||
ngx_log_error(NGX_LOG_INFO, c->log, 0, "client sent negative base");
|
||||
return NGX_HTTP_V3_ERR_DECOMPRESSION_FAILED;
|
||||
}
|
||||
|
||||
st->base = st->insert_count - st->delta_base - 1;
|
||||
|
||||
} else {
|
||||
st->base = st->insert_count + st->delta_base;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user