Project

General

Profile

Bug #145

lighttpd will exist if a cgi is 'broken'

Added by Anonymous over 12 years ago. Updated 9 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_cgi
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

I have a cgi 'upload.cgi', used to upload files.

This is about the current svn version
If a user provided a file that is too big (100M, for example),
this cgi will not read the stdin. It will just print a simple
page and exist. This behavior is reasonable, right?

But this will cause the server, lighttpd, to exist. In mod_cgi.c:735,
the function returns 'HANDLER_ERROR', and then in server.c:996, 'SEGFAULT;',
the server is down.

I'm now doing a dirty hack in mod_cgi.c:735, 'return HANDLER_FINISHED'. It
works right now but I don't know whether there are other problems.

-- yasheng

History

#1

Updated by stbuehler over 9 years ago

  • Status changed from New to Fixed
  • Resolution set to worksforme

Now, ticket is way too old :)

#2

Updated by stbuehler about 9 years ago

  • Status changed from Fixed to Missing Feedback
#3

Updated by gstrauss 9 months ago

  • Description updated (diff)
  • Status changed from Missing Feedback to Fixed
  • Target version changed from 1.4.20 to 1.4.x

fixed in lighttpd 1.4.40

Also available in: Atom