#527 Possible double-free in overwrite_and_free_pam_items()
Closed: Fixed None Opened 13 years ago by sgallagh.

Coverity reports:

Calling "overwrite_and_free_pam_items" frees pointer "pi.domain_name" which has already been freed.
"overwrite_and_free_pam_items" frees "pi.domain_name".
 1494        overwrite_and_free_pam_items(&pi);

I haven't been able on limited inspection to track this double-free condition, but I'm logging this bug so we don't lose track of it.


I haven't been able to track this, too. Maybe a false positive. Is it possible to get more information from Coverity?

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.2.1

Now I know how it can happen. If retries are enabled and sssd returns a domain name in one unsuccessful try and does not return a domain name in the following. I think in real life chances are very low that this will ever happen, but you never know. Patch is on the list.

Fixed by 541da63

fixedin: => 1.2.1
resolution: => fixed
status: new => closed

Fields changed

keywords: => coverity

Fields changed

rhbz: => 0

Metadata Update from @sgallagh:
- Issue assigned to sbose
- Issue set to the milestone: SSSD 1.2.1

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1569

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata