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:


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.