mirror of
https://github.com/nginx/nginx.git
synced 2026-06-28 21:02:15 +00:00
HTTP/3: allocate insert buffer from connection pool
Previously, it was allocated from the encoder stream pool. This could lead to use-after-free if the stream was closed and another encoder stream was opened. Reported by Trung Nguyen (@everping) of CyStack.
This commit is contained in:
parent
875750a4f7
commit
ceccdbd2ee
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ ngx_http_v3_get_insert_buffer(ngx_connection_t *c)
|
|||
if (dt->insert_buffer == NULL) {
|
||||
h3scf = ngx_http_v3_get_module_srv_conf(c, ngx_http_v3_module);
|
||||
|
||||
dt->insert_buffer = ngx_create_temp_buf(c->pool,
|
||||
dt->insert_buffer = ngx_create_temp_buf(c->quic->parent->pool,
|
||||
h3scf->max_table_capacity);
|
||||
if (dt->insert_buffer == NULL) {
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue