From f33cdc33e28fa8364691a853e3bee84b335a4f9c Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Sat, 25 Jul 2009 12:59:14 +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') diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index a670ffa5..7df96beb 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