RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 771022 - Coverity scan revealed defects
Summary: Coverity scan revealed defects
Keywords:
Status: CLOSED DUPLICATE of bug 825903
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.2
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Gunannan Ren
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-31 08:41 UTC by Alex Jia
Modified: 2012-08-06 15:01 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-06 15:01:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
CoverityScan-libvirt-0.9.4-23.el6_2.2 (10.10 KB, text/plain)
2011-12-31 08:42 UTC, Alex Jia
no flags Details
CoverityScan-libvirt-0.9.4-23.el6_2.5 (26.69 KB, text/plain)
2012-02-21 07:07 UTC, Alex Jia
no flags Details

Description Alex Jia 2011-12-31 08:41:24 UTC
Description of problem:
Coverity detected some issues on libvirt-0.9.4-23.el6_2.2:

Analysis summary report:
------------------------
Files analyzed                 : 230
Total LoC input to cov-analyze : 278090
Functions analyzed             : 6864
Paths analyzed                 : 715974
New defects found              : 13 Total
                                  1 CHECKED_RETURN
                                  3 DEADCODE
                                  1 FORWARD_NULL
                                  1 MISSING_RETURN
                                  1 NULL_RETURNS
                                  4 RESOURCE_LEAK
                                  1 RETURN_LOCAL
                                  1 REVERSE_INULL

Version-Release number of selected component (if applicable):
libvirt-0.9.4-23.el6_2.2.src.rpm

How reproducible:
always

Steps to Reproduce:
1. coverity scan
2.
3.
  
Actual results:
Please see attachment.

Expected results:
Fix memory leaks and NULL pointer deref.

Additional info:

It should be a rhel6.2 ZStream bug.

Comment 1 Alex Jia 2011-12-31 08:42:02 UTC
Created attachment 550105 [details]
CoverityScan-libvirt-0.9.4-23.el6_2.2

Comment 3 Alex Jia 2012-01-06 02:55:16 UTC
Coverity detected some issues on libvirt-0.9.4-23.el6_2.3:

Analysis summary report:
------------------------
Files analyzed                 : 230
Total LoC input to cov-analyze : 278094
Functions analyzed             : 6864
Paths analyzed                 : 715989
New defects found              : 13 Total
                                  1 CHECKED_RETURN
                                  3 DEADCODE
                                  1 FORWARD_NULL
                                  1 MISSING_RETURN
                                  1 NULL_RETURNS
                                  4 RESOURCE_LEAK
                                  1 RETURN_LOCAL
                                  1 REVERSE_INULL

There aren't new issues are introduced according to above report, and the test result is the same with 0.9.4-23.el6_2.2, however, the previous issues still exist.

Comment 4 Alex Jia 2012-02-21 07:07:17 UTC
Coverity detected some issues on libvirt-0.9.4-23.el6_2.5:

Analysis summary report:
------------------------
Files analyzed                 : 230
Total LoC input to cov-analyze : 278201
Functions analyzed             : 6865
Paths analyzed                 : 732161
Defect occurrences found       : 36 Total
                                  3 CHECKED_RETURN
                                 13 DEADCODE
                                  2 FORWARD_NULL
                                  1 MISSING_RETURN
                                  1 NO_EFFECT
                                  1 NULL_RETURNS
                                  1 OVERRUN_STATIC
                                 11 RESOURCE_LEAK
                                  1 RETURN_LOCAL
                                  1 REVERSE_INULL
                                  1 UNINIT

Comparing with libvirt-0.9.4-23.el6_2.3, there are 1 'FORWARD_NULL' and 7 'RESOURCE_LEAK' are introduced on libvirt-0.9.4-23.el6_2.5.

Comment 5 Alex Jia 2012-02-21 07:07:52 UTC
Created attachment 564588 [details]
CoverityScan-libvirt-0.9.4-23.el6_2.5

Comment 10 Dave Allan 2012-08-06 15:01:12 UTC

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


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