Bug 771022

Summary: Coverity scan revealed defects
Product: Red Hat Enterprise Linux 6 Reporter: Alex Jia <ajia>
Component: libvirtAssignee: Gunannan Ren <gren>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.2CC: acathrow, dallan, dyuan, mzhan, rwu, veillard
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-06 15:01:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
CoverityScan-libvirt-0.9.4-23.el6_2.2
none
CoverityScan-libvirt-0.9.4-23.el6_2.5 none

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 ***