Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: strncpy() and NULL termination

From: Marc Slemko <marcs(at)znep.com>
Date: Sun Feb 16 1997 - 15:45:28 EST


On Sun, 16 Feb 1997, Eivind Eklund wrote:

> Better: (IMHO - as this is more robust to code changes)

Agreed, just be _sure_ buf isn't a pointer.

>
> While we're at it, I'd like to remind everybody of strdup() - and suggest

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


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library