]> git.kaiwu.me - nginx.git/commit
HTTP/2: fixed null pointer dereference with server push.
authorRuslan Ermilov <ru@nginx.com>
Fri, 9 Feb 2018 20:20:08 +0000 (23:20 +0300)
committerRuslan Ermilov <ru@nginx.com>
Fri, 9 Feb 2018 20:20:08 +0000 (23:20 +0300)
commitc32d9d28fd94e295b08c289031b5c9640195f9c0
tree53e889e14f2d8c810c0e5b0d60532640eb104aa7
parent09eb20c8a76c0c8e7c70d9e6415a5404589cba51
HTTP/2: fixed null pointer dereference with server push.

r->headers_in.host can be NULL in ngx_http_v2_push_resource().

This happens when a request is terminated with 400 before the :authority
or Host header is parsed, and either pushing is enabled on the server{}
level or error_page 400 redirects to a location with pushes configured.

Found by Coverity (CID 1429156).
src/http/v2/ngx_http_v2_filter_module.c