Re: Are bad developer libraries the problem with M$ software?
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
|