Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Are bad developer libraries the problem with M$ software?

From: <Valdis.Kletnieks(at)vt.edu>
Date: Fri Nov 22 2002 - 02:11:52 EST

On Wed, 20 Nov 2002 09:57:57 +1100, Andrew Dalgleish <secprog@andrewdalgleish.dyndns.org> said:

> No, it would not. strncpy does NOT append the trailing 0 if the

This has left teeth marks on the posterior of more than one programmer, when they manage to copy in exactly the number of bytes, forget to force a null in there, and the program then proceeds to waltz off to never-never land. I've seen one pathological case where the next zero byte in memory was somewhere over a megabyte away, which lead to one *amazing* stack-smash when it tried to use the purported result string.....

-- 
				Valdis Kletnieks
				Computer Systems Senior Engineer
				Virginia Tech

  • application/pgp-signature attachment: stored
Received on Mon Nov 25 14:22:59 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:44 EDT


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