[Bugs] [Bug 1211594] New: status.brick memory allocation failure.
bugzilla at redhat.com
bugzilla at redhat.com
Tue Apr 14 12:07:54 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1211594
Bug ID: 1211594
Summary: status.brick memory allocation failure.
Product: GlusterFS
Version: 3.7.0
Component: glusterd
Assignee: bugs at gluster.org
Reporter: hchiramm at redhat.com
CC: bugs at gluster.org, gluster-bugs at redhat.com
Description of problem:
At current stage, there is no memory allocation failure check on status.brick
which can cause issues later in the error path.
status.brick = GF_CALLOC (1, PATH_MAX + 256, gf_common_mt_strdup);
switch (cmd & GF_CLI_STATUS_MASK)
{ switch (cmd & GF_CLI_STATUS_MASK) {
....
Version-Release number of selected component (if applicable):
GlusterFS 3.6.2
How reproducible:
N/A
Steps to Reproduce:
N/A
Actual results:
The memory allocation success/failure is not respected in current code.
Expected results:
The proper error code has to be returned if there is a failure.
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