Bug 812316 - Resource leaks in sed in error cases
Summary: Resource leaks in sed in error cases
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sed
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Vojtech Vitek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-13 11:12 UTC by Pavel Raiskup
Modified: 2015-03-04 23:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 14:47:54 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0955 0 normal SHIPPED_LIVE sed bug fix update 2012-06-19 21:12:20 UTC

Description Pavel Raiskup 2012-04-13 11:12:51 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Pavel Raiskup 2012-04-13 11:14:43 UTC
Hi, I'm very sorry for my unintentional press of 'Enter'.  Here is my report:
===============

Coverity difference scan of updates in rhel-6.3 revealed following resource
leak problem:

  Resource leak: sed-4.2.1/sed/utils.c: line 449 and 455

  There are not closed files 'infile' and 'outfile' properly.  I'm not sure how
  we should deal with memory leaks in error cases but it looks like this is
  unintentional.

  Note that this bug is added by RH patch sed-4.2.1-copy-option.patch

This bug is mentioned just as a warning and it depends on you whether it will
be fixed.  Feel free to move it to 6.4 or close it as a NOTABUG if you consider
it as unnecessary fix.

Quality engineering:
  This issue was found by static analysis tool and we can't provide any
  reproducer for these.  We will verify the fix once available.  Please check
  these tests as SanityOnly (just check that patches for the issues and nothing
  unexpected is added by the commit).  If you want to check the new package
  with Coverity yourself, feel free to use covscan tool
  (https://engineering.redhat.com/trac/CoverityScan/wiki/covscan).

Comment 10 errata-xmlrpc 2012-06-20 14:47:54 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0955.html


Note You need to log in before you can comment on or make changes to this bug.