Mercurial > hg > nginx-quic
view contrib/README @ 8019:fc16e303003a quic
QUIC: fixed possible use-after-free on stream cleanup.
A QUIC stream could be destroyed by handler while in ngx_quic_stream_input().
To detect this, ngx_quic_find_stream() is used to check that it still exists.
Previously, a stream id was passed to this routine off the frame structure.
In case of stream cleanup, it is freed along with other frames belonging to
the stream on cleanup. Then, a cleanup handler reuses last frames to update
MAX_STREAMS and serve other purpose. Thus, ngx_quic_find_stream() is passed
a reused frame with zeroed out part pointed by stream_id. If a stream with
id 0x0 still exists, this leads to use-after-free.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 07 Aug 2020 12:34:11 +0300 |
parents | 1bdf906bba99 |
children |
line wrap: on
line source
geo2nginx.pl by Andrei Nigmatulin The perl script to convert CSV geoip database ( free download at http://www.maxmind.com/app/geoip_country ) to format, suitable for use by the ngx_http_geo_module. unicode2nginx by Maxim Dounin The perl script to convert unicode mappings ( available at http://www.unicode.org/Public/MAPPINGS/ ) to the nginx configuration file format. Two generated full maps for windows-1251 and koi8-r. vim by Evan Miller Syntax highlighting of nginx configuration for vim, to be placed into ~/.vim/.