summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKaushal M <kaushal@redhat.com>2012-03-29 12:41:22 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-29 07:45:11 -0700
commitd1c8d296a23244a351bc2274e78c315b0870aeeb (patch)
tree3e50d2a79382ec3c14d6b2d544650ff8658ec4f0 /xlators
parent9d884d7139e9c5b3edca2ecb89f7824ac207ad98 (diff)
glusterd: Increase output_string size in glusterd_get_volopt_content
The number of volume options with docs has increased, which causes the output_string to overflow and causes glusterd to crash. This change prevents glusterd from crashing. Change-Id: I79f8931f92ad55245aa547e7df15c9826537b615 BUG: 807914 Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.com/3030 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c
index 04101e0e3fe..c5b41441e89 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
@@ -2017,7 +2017,7 @@ glusterd_get_volopt_content (gf_boolean_t xml_out)
int ret = -1;
char *def_val = NULL;
char *descr = NULL;
- char output_string[8192] = {0, };
+ char output_string[16384] = {0, };
char *output = NULL;
char tmp_str[1024] = {0, };
dict_t *ctx = NULL;