Bugtraq mailing list archives
Re: gzip bug w/ patch..
From: "Tim J. Robbins" <tim () robbins dropbear id au>
Date: Mon, 31 Dec 2001 13:05:38 +1100
On Sun, Dec 30, 2001 at 02:26:10PM -0000, greg wrote:
well anyway, there is an attached patch, bye.
- strcpy(nbuf,dir); + strncpy(nbuf, dir, sizeof(nbuf) - 1);
You must ensure the trailing NUL character is at the end of the string: nbuf[sizeof(nbuf) - 1] = '\0'; Tim
Current thread:
- gzip bug w/ patch.. greg (Dec 30)
- Re: gzip bug w/ patch.. Tim J. Robbins (Dec 31)
- Re: gzip bug w/ patch.. Wojtek Pilorz (Dec 31)