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>
This commit is contained in:
Kaushal M 2012-03-29 12:41:22 +05:30 committed by Vijay Bellur
parent 9d884d7139
commit d1c8d296a2

View File

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