https://bz.apache.org/bugzilla/show_bug.cgi?id=66168

--- Comment #4 from abernal <[email protected]> ---
Confirmed the root cause and fixed it:
https://github.com/apache/httpd/pull/1008

Reproduced with a minimal FastCGI responder sending the same malformed record
sequence (no PHP needed): an empty FCGI_STDOUT record followed by more STDOUT
data crashes mod_brotli with a NULL pointer dereference, because mod_proxy_fcgi
forwards the post-EOS data down an output filter chain that mod_brotli has
already torn down on the first EOS bucket.

The fix is at both ends: mod_proxy_fcgi now discards FastCGI STDOUT data
received after the stream-ending empty record instead of forwarding it, and
mod_brotli now removes itself from the output filter chain as soon as it sees
EOS (matching the defensive pattern mod_deflate already uses), so it can never
be invoked again for the same request regardless of the cause.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to