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
>Release:        1.3a1
Windows NT, 4.0, SP3.  VC++ 5.0.
The handling of nph- cgi programs presently prevents binary data, such as GIFs from being
Add a few null bytes in the middle of an output stream from an nph- type of
 cgi program.
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

View raw message