Bug 1964975

Summary: cups: memory leaks in http_tls_upgrade() and _cupsEncodeOption()
Product: Red Hat Enterprise Linux 9 Reporter: Petr Sklenar <psklenar>
Component: cupsAssignee: Richard Lescak <rlescak>
Status: CLOSED ERRATA QA Contact: Petr Dancak <pdancak>
Severity: high Docs Contact:
Priority: medium    
Version: 9.0CC: zdohnal
Target Milestone: betaKeywords: AutoVerified, Patch, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cups-2.3.3op2-13.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:56:19 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:

Description Petr Sklenar 2021-05-26 13:12:10 UTC
Description of problem:
valgrind found some issues

Version-Release number of selected component (if applicable):

cups-filters-1.28.7-6.el9.x86_64

How reproducible:
always

Steps to Reproduce:
1. run /CoreOS/cups-filters/Regression/bz1811190-cups-browsed-leaks-memory

Actual results:
http://artifacts.osci.redhat.com/baseos-ci/brew-build/36/78/69/36786955/https___baseos-jenkins.rhev-ci-vms.eng.rdu2.redhat.com-ci-artemis/8728/tmpLixMwD.01/recipes/1/tasks/1/logs/taskout.log

Expected results:
no error

Additional info:
==16301== Command: /usr/sbin/cups-browsed
...
...
==16301== LEAK SUMMARY:
==16301==    definitely lost: 78 bytes in 4 blocks
==16301==    indirectly lost: 0 bytes in 0 blocks
==16301==      possibly lost: 768 bytes in 2 blocks
==16301==    still reachable: 565,447 bytes in 9,568 blocks
==16301==         suppressed: 0 bytes in 0 blocks
==16301== Reachable blocks (those to which a pointer was found) are not shown.
==16301== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==16301== 
==16301== For lists of detected and suppressed errors, rerun with: -s
==16301== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)

Comment 38 errata-xmlrpc 2022-05-17 15:56:19 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 (new packages: cups), 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/RHBA-2022:3970