]> git.kaiwu.me - nginx.git/commit
Slice filter: improved memory allocation error handling.
authorSergey Kandaurov <pluknet@nginx.com>
Thu, 27 Feb 2025 12:09:50 +0000 (16:09 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Mon, 10 Mar 2025 16:32:07 +0000 (19:32 +0300)
commitd31305653701bd99e8e5e6aa48094599a08f9f12
treeebb4e070c5869dd4de41e88f2fc4edc3bd9d6c84
parentd16251969bf113272b577920940f020524d5fceb
Slice filter: improved memory allocation error handling.

As uncovered by recent addition in slice.t, a partially initialized
context, coupled with HTTP 206 response from stub backend, might be
accessed in the next slice subrequest.

Found by bad memory allocator simulation.
src/http/modules/ngx_http_slice_filter_module.c