Welcome! Log In Create A New Profile

Advanced

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

Andrey Kulikov
April 27, 2020 07:18AM
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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Andrey Kulikov 545 April 27, 2020 07:18AM

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

Maxim Dounin 245 April 27, 2020 10:34AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 277
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready