From ca67876f15347faccba9fdd3f3f2997c58ef3fa6 Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Wed, 30 Mar 2011 06:03:06 +0000 Subject: mgmt/Glusterd: prevent memory overflow Signed-off-by: Kaushik BV Signed-off-by: Vijay Bellur 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 --- xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit