[Bugs] [Bug 1199003] New: Avoid possibility of segfault if xl->ctx is NULL.

bugzilla at redhat.com bugzilla at redhat.com
Thu Mar 5 10:09:17 UTC 2015


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

            Bug ID: 1199003
           Summary: Avoid possibility of segfault if xl->ctx is  NULL.
           Product: GlusterFS
           Version: mainline
         Component: core
          Assignee: bugs at gluster.org
          Reporter: hchiramm at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:

If xl->ctx is null, it can lead to segfault in xlator.c.  In different code
paths the ctx is getting adjusted, so we have to make sure the ctx is not null
before proceeding. 

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

GlusterFS 3.6.2

How reproducible:

N/A

Steps to Reproduce:

N/A

Actual results:

The dereferencing operations can lead to segfault as the ctx is getting tainted
at times in different paths. 

Expected results:

There shouldnt be any crash because ctx being null.

Additional info:

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