Project

General

Profile

Actions

Bug #145

closed

lighttpd will exist if a cgi is 'broken'

Added by Anonymous over 19 years ago. Updated almost 8 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_cgi
Target version:
ASK QUESTIONS IN Forums:

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

Actions #1

Updated by stbuehler over 16 years ago

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

Now, ticket is way too old :)

Actions #2

Updated by stbuehler about 16 years ago

  • Status changed from Fixed to Missing Feedback
Actions #3

Updated by gstrauss almost 8 years 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

Actions

Also available in: Atom