[Bugs] [Bug 1370931] New: glfs_realpath() should not return malloc()' d allocated memory
bugzilla at redhat.com
bugzilla at redhat.com
Sun Aug 28 14:30:25 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1370931
Bug ID: 1370931
Summary: glfs_realpath() should not return malloc()'d allocated
memory
Product: GlusterFS
Version: mainline
Component: libgfapi
Keywords: Triaged
Severity: medium
Assignee: ndevos at redhat.com
Reporter: ndevos at redhat.com
QA Contact: sdharane at redhat.com
CC: bugs at gluster.org, srangana at redhat.com
Depends On: 1344714
Description of problem:
Very similar to how upcall events are allocated by gfapi and returned to the
applications, glfs_realpath() uses malloc().
Version-Release number of selected component (if applicable):
all
How reproducible:
Compile an application that calls glfs_realpath() and have the function
allocate the memory on behalf of the application. If the application uses a
different memory allocated (i.e. jemalloc), free() will not work correctly and
can cause segfaults.
Additional info:
See http://review.gluster.org/14701 for a more complete description.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1344714
[Bug 1344714] removal of file from nfs mount crashs ganesha server
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=rBk0SOIJky&a=cc_unsubscribe
More information about the Bugs
mailing list