You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by sameer <sa...@c2.net> on 1996/11/03 01:45:10 UTC

nasty bug in buff.c

	Has this been caught for 1.2?

	Here's the patch. If it's not already fixed in 1.2, someone
should commit this.

Index: buff.c
===================================================================
RCS file: /usr/local/apache-cvs/stronghold/apache/buff.c,v
retrieving revision 1.4
diff -c -r1.4 buff.c
*** 1.4 1996/10/31 02:49:05
--- buff.c      1996/11/03 00:43:47
***************
*** 112,118 ****
      else fb->inbase = NULL;
  
      if (flags & B_WR) fb->outbase = palloc(p, fb->bufsiz);
!     else fb->inbase = NULL;
  
      fb->inptr = fb->inbase;
  
--- 112,118 ----
      else fb->inbase = NULL;
  
      if (flags & B_WR) fb->outbase = palloc(p, fb->bufsiz);
!     else fb->outbase = NULL;
  
      fb->inptr = fb->inbase;

-- 
Sameer Parekh					Voice:   510-986-8770
C2Net						FAX:     510-986-8777
The Internet Privacy Provider
http://www.c2.net/				sameer@c2.net

Re: nasty bug in buff.c

Posted by Brian Behlendorf <br...@organic.com>.
Applied.

	Brian

On Sat, 2 Nov 1996, sameer wrote:
> 	Has this been caught for 1.2?
> 
> 	Here's the patch. If it's not already fixed in 1.2, someone
> should commit this.
> 
> Index: buff.c
> ===================================================================
> RCS file: /usr/local/apache-cvs/stronghold/apache/buff.c,v
> retrieving revision 1.4
> diff -c -r1.4 buff.c
> *** 1.4 1996/10/31 02:49:05
> --- buff.c      1996/11/03 00:43:47
> ***************
> *** 112,118 ****
>       else fb->inbase = NULL;
>   
>       if (flags & B_WR) fb->outbase = palloc(p, fb->bufsiz);
> !     else fb->inbase = NULL;
>   
>       fb->inptr = fb->inbase;
>   
> --- 112,118 ----
>       else fb->inbase = NULL;
>   
>       if (flags & B_WR) fb->outbase = palloc(p, fb->bufsiz);
> !     else fb->outbase = NULL;
>   
>       fb->inptr = fb->inbase;
> 
> -- 
> Sameer Parekh					Voice:   510-986-8770
> C2Net						FAX:     510-986-8777
> The Internet Privacy Provider
> http://www.c2.net/				sameer@c2.net
> 
> 

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS