]> git.kaiwu.me - nginx.git/commit
Added size check to ngx_http_alloc_large_header_buffer().
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 6 Aug 2020 02:02:22 +0000 (05:02 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 6 Aug 2020 02:02:22 +0000 (05:02 +0300)
commitbd7dad5b0eb9f667a9c66ea5175a017ac51cd027
tree998e03f2b572f9a47bf858cb7782f71889bf55f8
parentd2744ad26fef1e4f4f6e9c12e95b57866345c071
Added size check to ngx_http_alloc_large_header_buffer().

This ensures that copying won't write more than the buffer size
even if the buffer comes from hc->free and it is smaller than the large
client header buffer size in the virtual host configuration.  This might
happen if size of large client header buffers is different in name-based
virtual hosts, similarly to the problem with number of buffers fixed
in 6926:e662cbf1b932.
src/http/ngx_http_request.c