| Summary: | libtar: file descriptor leaks reported by cppcheck | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Karel Volný <kvolny> | ||||
| Component: | libtar | Assignee: | Kamil Dudka <kdudka> | ||||
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.0 | CC: | emajorsi, jscotka, ovasik | ||||
| Target Milestone: | alpha | Keywords: | Patch | ||||
| Target Release: | 7.2 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | libtar-1.2.11-29.el7 | Doc Type: | Bug Fix | ||||
| Doc Text: |
Previously, the error handling code in libtar did not properly release file descriptors before losing track of them. This led to unnecessary file descriptor leakage. An upstream patch has been applied on libtar source code to properly release file descriptors on error paths. Now, libtar no longer leaks file descriptors.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-05-18 08:22:19 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1191020 | ||||||
| Attachments: |
|
||||||
|
Description
Karel Volný
2012-01-30 14:57:11 UTC
Created attachment 559936 [details]
proposed fix
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. If you would like it considered as an exception in the current release, please ask your support representative. fixed in libtar-1.2.11-27.fc21 It is too late to fix the bug in RHEL-6. I am moving it to RHEL-7... up2date cppcheck does not detect the descriptor leaks above. However, it detects a memory leak on OOM path, which I reported upstream: https://lists.feep.net:8080/pipermail/libtar/2015-April/000412.html ... but I am not going to fix that one in RHEL. reproducible with cppcheck-1.53 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1014.html |