On Wed, 19 Jan 2005, Peter Stuge wrote: >Uninitialized variables are initialized to 0 by the compiler, so if I >can manage to somehow make those LDAP calls fail, I will have root >access on your system via the network. Not good.
It the memory beneath the variable is untouched, it will be 0 because that's its value at boot time. But 99.999999% of the time, it'll be garbage. And the compiler isn't required to clean up (gcc doesn't, and MSVC++ initializes it to garbage, if I'm not mistaken, to enforce a crash). Andy :-) -- Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg Author of Binc IMAP | "It is better not to do something http://www.bincimap.org/ | than to do it poorly."
