[SSSD] [PATCH] ELAPI: Fix dispatcher structure initialization

Stephen Gallagher sgallagh at redhat.com
Wed Sep 16 15:16:28 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/16/2009 11:08 AM, Jakub Hrozek wrote:
> The memset size_t parameter was wrong and the async_ctx param was not
> manually zeroed resulting in random segfaults when the structure was freed.
> 
> 	Jakub


If you're memsetting handle, then you don't need to also explicitly set
handle->async_ctx (or any of the other pointers) to NULL.

If Valgrind is later complaining that testing for NULL is an unitialized
jump or move, that's a bug in Valgrind.

- ------------------------------------------------------------------------

_______________________________________________
sssd-devel mailing list
sssd-devel at lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/sssd-devel


- -- 
Stephen Gallagher
RHCE 804006346421761

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkqxAUcACgkQeiVVYja6o6PMjgCfX3C1vllI5mvLJvyN6Pt8Xui+
9ckAoKMcUEzY5B0+lLeMTo/3y/EXcgBb
=LT+z
-----END PGP SIGNATURE-----



More information about the sssd-devel mailing list