diff options
author | Kaushal M <kaushal@redhat.com> | 2012-03-29 12:41:22 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-03-29 07:45:11 -0700 |
commit | d1c8d296a23244a351bc2274e78c315b0870aeeb (patch) | |
tree | 3e50d2a79382ec3c14d6b2d544650ff8658ec4f0 | |
parent | 9d884d7139e9c5b3edca2ecb89f7824ac207ad98 (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>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 2 |
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 04101e0e3..c5b41441e 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; |