[Bugs] [Bug 1558574] New: Coverity: Warning for singlton array..

bugzilla at redhat.com bugzilla at redhat.com
Tue Mar 20 14:10:54 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1558574

            Bug ID: 1558574
           Summary: Coverity: Warning for singlton array..
           Product: GlusterFS
           Version: mainline
         Component: core
          Assignee: bugs at gluster.org
          Reporter: atumball at redhat.com
                CC: bugs at gluster.org



Description of problem:


(1) Event cond_false:    Condition "!next_xl->pass_through", taking false
branch.
(2) Event if_end:    End of if statement.
(3) Event cond_true:    Condition "next_xl->pass_through", taking true branch.
(4) Event address_of:    Taking address with
"&next_xl->pass_through_fops->stat" yields a singleton pointer.
(5) Event ptr_arith:    Using "&next_xl->pass_through_fops->stat" as an array.
This might corrupt or misinterpret adjacent memory locations.
2470         STACK_WIND_TAIL (frame,
2471                  FIRST_CHILD(this), FIRST_CHILD(this)->fops->fsetxattr,
2472                  fd, dict, flags, xdata);

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

How reproducible:
100%

Steps to Reproduce:
1. Check coverity emails.
2.
3.



Expected results:
No warnings.


Additional info:
Looks like the error got in with pass_through option.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list