Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.h @ 6926:e662cbf1b932
Converted hc->busy/hc->free to use chain links.
Most notably, this fixes possible buffer overflows if number of large
client header buffers in a virtual server is different from the one in
the default server.
Reported by Daniil Bondarev.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 07 Mar 2017 18:49:31 +0300 |
parents | 1aeaae6e9446 |
children | 3ef4cadfad7f |
comparison
equal
deleted
inserted
replaced
6925:b3c5b4312667 | 6926:e662cbf1b932 |
---|---|
307 #if (NGX_PCRE) | 307 #if (NGX_PCRE) |
308 ngx_http_regex_t *ssl_servername_regex; | 308 ngx_http_regex_t *ssl_servername_regex; |
309 #endif | 309 #endif |
310 #endif | 310 #endif |
311 | 311 |
312 ngx_buf_t **busy; | 312 ngx_chain_t *busy; |
313 ngx_int_t nbusy; | 313 ngx_int_t nbusy; |
314 | 314 |
315 ngx_buf_t **free; | 315 ngx_chain_t *free; |
316 ngx_int_t nfree; | |
317 | 316 |
318 unsigned ssl:1; | 317 unsigned ssl:1; |
319 unsigned proxy_protocol:1; | 318 unsigned proxy_protocol:1; |
320 } ngx_http_connection_t; | 319 } ngx_http_connection_t; |
321 | 320 |