Bug #2768
mod_fastcgi segfault in lighttpd-1.4.43
Start date:
2016-11-10
Due date:
% Done:
100%
Estimated time:
Missing in 1.5.x:
Description
The new fcgi_extension_host_get() function in 1.4.43 forgets to return NULL when all hosts are busy so it does a extension->hosts[-1] dereference which leads to a segfault whenever the server gets really busy.
Patch to fix this is attached.
Associated revisions
History
Updated by gstrauss over 2 years ago
- Status changed from New to Patch Pending
- Target version changed from 1.4.x to 1.4.44
thx HenrikHolst. There is a similar error in mod_scgi.c that needs to be fixed as well.
Updated by gstrauss about 2 years ago
- Status changed from Patch Pending to Fixed
- % Done changed from 0 to 100
Applied in changeset 40e05e9b8c5b123eeafcf77e8416744564273b9f.
Also available in: Atom
[mod_fastcgi] fix segfault if all backends down (fixes #2768)
(thx HenrikHolst)
x-ref:
"mod_fastcgi segfault in lighttpd-1.4.43"
https://redmine.lighttpd.net/issues/2768