summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_palloc.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2024-12-10 18:19:27 +0400
committerpluknet <pluknet@nginx.com>2025-02-05 20:40:47 +0400
commit5c8a92f1f0e482028504e5340f0ba455423df336 (patch)
treeaba2f5d8c9cbac768b9026a71c29999a5b26af47 /src/core/ngx_palloc.c
parent0d11f2885eab99924dbe40d7effb91c80b00d9bf (diff)
downloadnginx-5c8a92f1f0e482028504e5340f0ba455423df336.tar.gz
nginx-5c8a92f1f0e482028504e5340f0ba455423df336.tar.bz2
QUIC: fixed accessing a released stream.
While trying to close a stream in ngx_quic_close_streams() by calling its read event handler, the next stream saved prior to that could be destroyed recursively. This caused a segfault while trying to access the next stream. The way the next stream could be destroyed in HTTP/3 is the following. A request stream read event handler ngx_http_request_handler() could end up calling ngx_http_v3_send_cancel_stream() to report a cancelled request stream in the decoder stream. If sending stream cancellation decoder instruction fails for any reason, and the decoder stream is the next in order after the request stream, the issue is triggered. The fix is to postpone calling read event handlers for all streams being closed to avoid closing a released stream.
Diffstat (limited to 'src/core/ngx_palloc.c')
0 files changed, 0 insertions, 0 deletions