[Bugs] [Bug 1503409] New: Missing null check after `iov_dup` in function `error_gen_writev` of xlators /debug/error-gen/src/error-gen.c

bugzilla at redhat.com bugzilla at redhat.com
Wed Oct 18 04:13:48 UTC 2017


            Bug ID: 1503409
           Summary: Missing null check after `iov_dup` in function
                    `error_gen_writev` of
           Product: GlusterFS
           Version: 3.10
         Component: error-gen
          Severity: low
          Assignee: bugs at gluster.org
          Reporter: alexc at sbrella.com
                CC: bugs at gluster.org

Description of problem:

Our code scanner has reported a potential null pointer dereference, in function
`error_gen_writev` of xlators/debug/error-gen/src/error-gen.c:

        shortvec = iov_dup(vector, 1);
        shortvec->iov_len /= 2;   // <== use of potential NULL

There are null checks after `iov_dup` in other places, so I thought the
programmer had forgotten to add one in above:

Alex, SourceBrella Inc.

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