Project

General

Profile

Bug #2768

mod_fastcgi segfault in lighttpd-1.4.43

Added by HenrikHolst 8 months ago. Updated 7 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_fastcgi
Target version:
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.

mod_fastcgi.c.diff (269 Bytes) mod_fastcgi.c.diff patch HenrikHolst, 2016-11-10 10:06

Associated revisions

Revision 40e05e9b (diff)
Added by gstrauss 7 months ago

[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

History

#1 Updated by gstrauss 8 months 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.

#2 Updated by gstrauss 7 months ago

(update: mod_scgi does not have this bug)

#3 Updated by gstrauss 7 months ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom