Possible bug in 3.2.7
Remy Zandwijk
remy.zandwijk at falw.vu.nl
Fri Jan 16 19:41:27 GMT 2009
>> Since after
>> the if-block, we can't be sure the memory is still allocated. And since
>> 'servername' is used further down the code...
>
> You're thinking C++, not C. In C it's guarenteed to still be there.
Well, I have to admit, I am not a coder. A colleque of mine however pointed me to:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1336.pdf
Specificaly 6.2.1 point 2, 6.2.4 point 2 and 6.2.4 point 5.
Did you check the other places were sizeof() is (possibly wronly) being used?
-Remy
More information about the samba-technical
mailing list