mirror of
https://github.com/nginx/nginx.git
synced 2025-07-20 19:27:29 +08:00
Update ngx_http_v3_parse.c
Apologies for the confusion. I had initially pasted the code incorrectly, which caused an empty or malformed diff. This updated commit adds a log message when Huffman decoding fails, to help catch malformed field lines associated with CVE-2024-24989. It does not change spacing or logic beyond that.
This commit is contained in:
parent
838b8537b6
commit
a531d4dbf6
@ -644,8 +644,7 @@ ngx_http_v3_parse_literal(ngx_connection_t *c, ngx_http_v3_parse_literal_t *st,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ch = *b->pos++;
|
ch = *b->pos++;
|
||||||
|
if (st->huffman) {
|
||||||
if (st->huffman) {
|
|
||||||
if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last,
|
if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last,
|
||||||
st->length == 1, c->log)
|
st->length == 1, c->log)
|
||||||
!= NGX_OK)
|
!= NGX_OK)
|
||||||
|
Loading…
Reference in New Issue
Block a user