On Fri, 11 Jun 2004, Jeff Squyres wrote:
> I *think* the __libc_getspecific() thing will return 0. So result will
> == NULL, and it'll use &last_result. And last_result does not appear to
> be statically initialized. So "result->returned" could well generate
> Badness.
Sorry -- that wasn't clear.
What I meant: I *think* the values in last_result could be totally random,
so not just result->returned could be random (and potentially lead to
badness later), but also things like the string pointer, etc. So even if
the code snipit that I sent doesn't cause the fault, something slightly
later could cause the fault because of random values in last_result.
Sorry for the confusion...
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|