Re: gzip bug w/ patch..

From: Tim J. Robbins (timat_private)
Date: Sun Dec 30 2001 - 18:05:38 PST

  • Next message: Zeeshan Mustafa: "IMail Web Service User Aliases / Mailing Lists Admin Vulnerability"

    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
    



    This archive was generated by hypermail 2b30 : Mon Dec 31 2001 - 15:01:21 PST