URL: https://github.com/SSSD/sssd/pull/5560 Author: alexey-tikhonov Title: #5560: pam_sss: fixed potential mem leak Action: opened
PR body: """ Fixes following covscan issue: ``` Error: RESOURCE_LEAK (CWE-772): [#def1] src/sss_client/pam_sss.c:1714: alloc_arg: "asprintf" allocates memory that is stored into "prompt". src/sss_client/pam_sss.c:1765: leaked_storage: Variable "prompt" going out of scope leaks the storage it points to. # 1763| free(response); # 1764| # 1765|-> return ret; # 1766| #else # 1767| return ENOTSUP; ```
https://bugzilla.redhat.com/show_bug.cgi?id=1938876 """
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/5560/head:pr5560 git checkout pr5560
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
Label: +Waiting for review
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
alexey-tikhonov commented: """ https://cov01.lab.eng.brq.redhat.com/covscanhub/task/210351/log/fixed.err """
See the full comment at https://github.com/SSSD/sssd/pull/5560#issuecomment-810004812
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
pbrezina commented: """ Thank you. Ack. """
See the full comment at https://github.com/SSSD/sssd/pull/5560#issuecomment-818668246
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
Label: -Waiting for review
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
Label: +Accepted
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
Label: +Ready to push
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
pbrezina commented: """ Pushed PR: https://github.com/SSSD/sssd/pull/5560
* `master` * 53ae9b1e3ef5a3b9fcbcd324796b690caf695a9f - pam_sss: fixed potential mem leak
"""
See the full comment at https://github.com/SSSD/sssd/pull/5560#issuecomment-818672390
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
Label: +Pushed
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
Label: -Accepted
URL: https://github.com/SSSD/sssd/pull/5560 Title: #5560: pam_sss: fixed potential mem leak
Label: -Ready to push
URL: https://github.com/SSSD/sssd/pull/5560 Author: alexey-tikhonov Title: #5560: pam_sss: fixed potential mem leak Action: closed
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/5560/head:pr5560 git checkout pr5560
sssd-devel@lists.fedorahosted.org