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:
parent
9d884d7139
commit
d1c8d296a2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user