|
|||||||||||
|
Re: strncpy() and NULL termination
From: Marc Slemko <marcs(at)znep.com>
Date: Sun Feb 16 1997 - 15:45:28 EST
> Better: (IMHO - as this is more robust to code changes)
Agreed, just be _sure_ buf isn't a pointer. >
Just be careful modiying code where there are existing limits to introduce strings of possibly unlimited length without being very sure you traced the dataflow down to the very bottom of the program. A good number of potential overflows are avoided right now by some arbitrary limitation higher up in the code; remove that without fixing everything else and you have problems. Note that some of these dependencies may be in other programs that are executed. Received on Sun Feb 16 12:53:13 1997 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:41:02 EDT |
||||||||||
|
|||||||||||