[PATCH] Add missing check for r->cache pointer validity in ngx_http_upstream_send_response()

Andrey Kulikov amdeich at gmail.com
Mon Apr 27 11:16:37 UTC 2020


Hello,

In ngx_http_upstream_send_response() function there are a lot of
checks for r->cache pointer validity.
But it is absent for if (u->cacheable){}, which starts with dereferencing
    valid = r->cache->valid_sec;
straight away.

If this considered to be an issue - patch attempting to fix it is attached.

--
Best wishes,
Andrey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-missing-check-for-r-cache-pointer-validity-in-ng.patch
Type: application/octet-stream
Size: 776 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200427/8435f810/attachment.obj>


More information about the nginx-devel mailing list