httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <hart...@hyperreal.com>
Subject bug in 0.8.11 under SGI irix5.3 (fwd) {You'll love this one}
Date Wed, 30 Aug 1995 17:27:48 GMT

Maybe this is causing some serious side-effects which are showing 
themselves elsewhere...

I've responded to the sender.

Forwarded message:
> From olchansk@a2.phy.bnl.gov  Tue Aug 29 11:01:35 1995
> Message-Id: <199508291801.OAA24983@a2.phy.bnl.gov>
> Date: Tue, 29 Aug 95 14:01:30 -0400
> Sender: olchansk@a2.phy.bnl.gov
> From: Konstantin Olchanski <olchansk@a2.phy.bnl.gov>
> Organization: Brookhaven National Laboratory
> X-Mailer: Mozilla 1.1N (X11; I; IRIX 5.3 IP22)
> Mime-Version: 1.0
> To: apache-bugs@apache.org
> Subject: bug in 0.8.11 under SGI irix5.3
> X-Url: http://www.apache.org/
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain; charset=us-ascii
> 
> There is an error in apache-httpd version 0.8.11
> 	which prevents httpd from running under SGI irix5.3.
> 
> The error is in the file 'http_main.c', function 'accept_mutex_init',
> 	in the first two lines, where 19 bytes are allocated on
> 	the stack and then 22+1 bytes are written into the allocated space.
> 	This overwrites the function's argument (pool*p) and leads to
> 	a core dump later on. Shame to whoever wrote that code.
> 
> I am not subscribed to this list, so please somebody
> 	send me email to <olchansk@b1.phy.bnl.gov> so that I know that
> 	my bug report did not go into the bit bucket.
> 
> Below is the 'diff -c' between the broken and working code:
> 
> QUOTE--- diff -c output
> *** http_main.c Tue Aug 29 13:23:40 1995
> --- http_main.c-orig    Tue Aug 22 21:16:10 1995
> ***************
> *** 150,156 ****
>   void
>   accept_mutex_init(pool *p)
>   {
> !     char lock_fname[100];
>   
>       strcpy(lock_fname, "/usr/tmp/htlock.XXXXXX");
>       
> --- 150,156 ----
>   void
>   accept_mutex_init(pool *p)
>   {
> !     char lock_fname[19];
>   
>       strcpy(lock_fname, "/usr/tmp/htlock.XXXXXX");
>       
> UNQUOTE----
> 
> C.O.
> 
> 

Mime
View raw message