[SSSD] [PATCH] Do not call talloc_free() on uninitialized memory

Stephen Gallagher sgallagh at redhat.com
Wed Jul 13 11:20:41 UTC 2011


On Wed, 2011-07-13 at 13:01 +0200, Sumit Bose wrote:
> Hi,
> 
> during the sdap_cli_connect request we loop over all configured LDAP
> servers until we find a working one. For this we talloc_free() the old
> sdap handle before requesting a new one. But for the first attempt the
> handle is not initialized and we may free random memory.


Nack. This doesn't have any effect. When tevent_req state variables are
created inside tevent_req_create(), they are always initialized to zero.
(This is done by talloc_zero_size(req, data_size); )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110713/3df3e376/attachment.sig>


More information about the sssd-devel mailing list