www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Hoogterp <dhoogt...@rtinews.com>
Subject mod_cgi/1125: NPH-CGI output can't have nulls, etc.
Date Fri, 12 Sep 1997 00:10:15 GMT

>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:



Mime
View raw message