diff options
author | Kaushik BV <kaushikbv@gluster.com> | 2011-03-30 06:03:06 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-30 08:22:11 -0700 |
commit | ca67876f15347faccba9fdd3f3f2997c58ef3fa6 (patch) | |
tree | 58c61036775b36b681cd337944dc309f7046dbae /xlators | |
parent | f8c798350a5efa537418d1453f3e547574e68b55 (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.c | 2 |
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 f2c5c3ff259..4696b6ca343 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) { |