Bug 1822135

Summary: _ppdOpen() leaks 'string' variable
Product: Red Hat Enterprise Linux 8 Reporter: Zdenek Dohnal <zdohnal>
Component: cupsAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Petr Dancak <pdancak>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.4CC: ovasik, pdancak, psklenar, thozza
Target Milestone: rcKeywords: Patch, TestCaseProvided, Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cups-2.2.6-34.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 01:42:20 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
Backported patch none

Description Zdenek Dohnal 2020-04-08 10:50:27 UTC
When valgrind is run on cups-browsed daemon from cups-filters package in test http://pkgs.devel.redhat.com/cgit/tests/cups-filters/tree/Regression/bz1811190-cups-browsed-leaks-memory , it reports memory leak in CUPS library - specifically in _ppdOpen().

'string' variable in question is overwritten without freeing the pointer first.


The issue is fixed in upstream but I forgot to backport those two lines during https://bugzilla.redhat.com/show_bug.cgi?id=1775668

Comment 1 Zdenek Dohnal 2020-04-08 10:52:10 UTC
Created attachment 1677197 [details]
Backported patch

Comment 10 errata-xmlrpc 2020-11-04 01:42:20 UTC
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 (Low: cups security and bug fix update), 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://access.redhat.com/errata/RHSA-2020:4469