summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKaushik BV <kaushikbv@gluster.com>2011-03-30 06:03:06 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-30 08:22:11 -0700
commitca67876f15347faccba9fdd3f3f2997c58ef3fa6 (patch)
tree58c61036775b36b681cd337944dc309f7046dbae /xlators
parentf8c798350a5efa537418d1453f3e547574e68b55 (diff)
mgmt/Glusterd: prevent memory overflow
Signed-off-by: Kaushik BV <kaushikbv@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2632 (possible memory overflow in one of the code paths in volume gsync stop) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2632
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index f2c5c3ff2..4696b6ca3 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -3593,7 +3593,7 @@ stop_gsync (char *master, char *slave, char **op_errstr)
pid_t pid = 0;
FILE *file = NULL;
char pidfile[PATH_MAX] = {0,};
- char buf [256] = {0,};
+ char buf [1024] = {0,};
ret = gsync_status (master, slave, &status);
if (ret == 0 && status == -1) {