Bug 810574 - cppcheck errors
Summary: cppcheck errors
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libtiff
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Nikola Forró
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 947775 1070830 1159820
TreeView+ depends on / blocked
 
Reported: 2012-04-06 19:32 UTC by Karel Volný
Modified: 2017-12-06 10:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-06 10:29:46 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Karel Volný 2012-04-06 19:32:48 UTC
Description of problem:
cppcheck reports some errors that may (or may not) be critical

Version-Release number of selected component (if applicable):
libtiff-3.9.4-5.el6_2

How reproducible:
always

Steps to Reproduce:
1. rpm -i libtiff-3.9.4-5.el6_2.src.rpm
2. rpmbuild -bp ~/rpmbuild/SPECS/libtiff.spec
3. cppcheck -f -v --quiet ~/rpmbuild/BUILD/tiff-3.9.4/
  
Actual results:
[/root/rpmbuild/BUILD/tiff-3.9.4/contrib/dbs/tiff-grayscale.c:89]: (error) Memory leak: gray
[/root/rpmbuild/BUILD/tiff-3.9.4/contrib/dbs/tiff-palette.c:222]: (error) Memory leak: red
[/root/rpmbuild/BUILD/tiff-3.9.4/contrib/dbs/tiff-palette.c:222]: (error) Memory leak: green
[/root/rpmbuild/BUILD/tiff-3.9.4/contrib/dbs/tiff-palette.c:222]: (error) Memory leak: blue
[/root/rpmbuild/BUILD/tiff-3.9.4/contrib/iptcutil/iptcutil.c:297]: (error) Memory leak: str
[/root/rpmbuild/BUILD/tiff-3.9.4/tools/fax2ps.c:384]: (error) Possible null pointer dereference: fd - otherwise it is redundant to check if fd is null at line 382
[/root/rpmbuild/BUILD/tiff-3.9.4/tools/fax2ps.c:342]: (error) Common realloc mistake: 'pages' nulled but not freed upon failure
[/root/rpmbuild/BUILD/tiff-3.9.4/tools/ras2tiff.c:93]: (error) Resource leak: in
[/root/rpmbuild/BUILD/tiff-3.9.4/tools/tiff2pdf.c:1955]: (error) Possible null pointer dereference: tbc
[/root/rpmbuild/BUILD/tiff-3.9.4/tools/tiff2pdf.c:1839]: (error) Possible null pointer dereference: sbc
[/root/rpmbuild/BUILD/tiff-3.9.4/tools/tiff2pdf.c:1846]: (error) Possible null pointer dereference: sbc
[/root/rpmbuild/BUILD/tiff-3.9.4/tools/tiff2ps.c:1892]: (error) Possible null pointer dereference: tf_buf - otherwise it is redundant to check if tf_buf is null at line 1893
[/root/rpmbuild/BUILD/tiff-3.9.4/tools/tiffcrop.c:2057]: (error) Dangerous usage of 'exportname' (strncpy doesn't always 0-terminate it)


Expected results:
(no errors)

Additional info:

Comment 2 RHEL Program Management 2012-09-07 05:16:41 UTC
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 unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 4 Jan Kurik 2017-12-06 10:29:46 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/


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