NetBSD-Bugs archive

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

Re: bin/38201: Potential lack of null termination when copying a string



The following reply was made to PR bin/38201; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/38201: Potential lack of null termination when copying a string
Date: Sat, 8 Mar 2008 22:25:46 +0000

 On Sat, Mar 08, 2008 at 07:55:01PM +0000, netbsd%happyjack.org@localhost wrote:
  > [who/utmpentry.c]
  >
  > In two places, the wrong object is null-terminated after a
  > strncpy(), resulting in a potential lack of null termination.
 
 Good catch... but it turns out that those null terminations are
 neither necessary nor useful. I will clean up the mess...
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index