From 698a573bfb167d8d6c51d07089995d861dd7fbd3 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Fri, 24 Jul 2009 09:30:54 +0000 Subject: libglusterfsclient: Workaround for local memory corruption There seems to a reproduceable corruption specifically of the libglusterfs_client_local_t that is allocated for the read call. Therefore, the subsequent access to fd inside local leads to a segfault. This is a temporary fix. Signed-off-by: Anand V. Avati BUG: 164 (libglusterfsclient: Segfault due to memory corruption of frame local in libgf_client_read) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=164 --- libglusterfsclient/src/libglusterfsclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfsclient/src/libglusterfsclient.c') diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 705373f70..c23dd6ff4 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -3219,7 +3219,7 @@ libgf_client_read (libglusterfs_client_ctx_t *ctx, } stbuf = &stub->args.readv_cbk.stbuf; libgf_transform_devnum (ctx, stbuf); - libgf_update_iattr_cache (local->fd->inode, LIBGF_UPDATE_STAT, + libgf_update_iattr_cache (fd->inode, LIBGF_UPDATE_STAT, stbuf); } -- cgit