You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Dan Hoogterp <dh...@rtinews.com> on 1997/09/12 02:10:15 UTC
mod_cgi/1125: NPH-CGI output can't have nulls, etc.
>Number: 1125
>Category: mod_cgi
>Synopsis: NPH-CGI output can't have nulls, etc.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache (Apache HTTP Project)
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Sep 11 17:10:02 1997
>Originator: dhoogterp@rtinews.com
>Organization:
apache
>Release: 1.3a1
>Environment:
Windows NT, 4.0, SP3. VC++ 5.0.
>Description:
The handling of nph- cgi programs presently prevents binary data, such as GIFs from being sent.
>How-To-Repeat:
Add a few null bytes in the middle of an output stream from an nph- type of
cgi program.
>Fix:
We worked around this with very minor changes in alloc.c and mod_cgi.c. alloc.c creates a binary pipe when the child is nph. mod_cgi.c has a loop using fread and bwrite instead of fgets and bputs.
We will provide our changes if desired
>Audit-Trail:
>Unformatted: