[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: buffer overflow in /bin/gzip?



On Tue, Nov 20, 2001 at 11:33:20PM +0100, Anders Gj?re wrote:
> in gzip.c
> 
> the line:
> 	strcpy(nbuf,dir);
> 
> should maybe be replaced with:
> 	strncpy(nbuf, dir,sizeof(nbuf));

The call to strcpy() may be replaced with a call to strncpy(), but there is
no problem in the call to strcpy(). Look at the line preceding the call to
strcpy(), it ensures that nbuf will not be overflowed.

	Regards, Yotam Rubin


> 
> --_
> anders gj?re
> system engineer
> +47 414 22 934 
> 
> 
> --
> To UNSUBSCRIBE, email to debian-security-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: