Bug 1999284

Summary: Coverity Scan Review
Product: Red Hat Enterprise Linux 9 Reporter: Steve Grubb <sgrubb>
Component: glibcAssignee: glibc team <glibc-bugzilla>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.0CC: ashankar, codonell, dj, fweimer, mnewsome, pfrankli, sipoyare
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 23:40:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch with suggested fixes none

Description Steve Grubb 2021-08-30 19:16:10 UTC
Created attachment 1819165 [details]
Patch with suggested fixes

Description of problem:
As part of the RHEL 9 common criteria preparations, a review was done of coverity results to see if there are any problems found in the important results. Overall there were only 3 items that appear to be real bugs. All of them being resource leaks.

The coverity scan used is here:
https://cov01.lab.eng.brq.redhat.com/covscanhub/task/229105/log/glibc-2.34-2.el9/scan-results-imp.err

The real problems are these:

glibc-2.34/elf/ldconfig.c:506: leaked_storage:
iconv/gconv_parseconfdir.h:159: leaked_storage
iconv/iconv_charmap.c:238: leaked_storage

Additional info:
A patch with suggested fixes will be attached to expedite resolution.

Comment 1 Siddhesh Poyarekar 2021-08-30 23:40:25 UTC
I've kept bug 1938727 open to ensure that the scans remain clean for glibc through to release.  These specific issues should be fixed by the next rebase, i.e. bug 1994653 since they're fixed upstream[1][2][3] in release/2.34/master.

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=9995d0588f4f9adc68419224d2b3698e2ca4f77e
[2] https://sourceware.org/git/?p=glibc.git;a=commit;h=3a48da47a91ccc6f5de260574809e7a44551b876
[3] https://sourceware.org/git/?p=glibc.git;a=commit;h=0b03996304f86d6dba8f0d4b7048b9bb7186f17d

*** This bug has been marked as a duplicate of bug 1938727 ***