summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-07-24 09:30:54 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-27 11:33:53 -0700
commit698a573bfb167d8d6c51d07089995d861dd7fbd3 (patch)
tree14ed4a2e98e9085dae8c6840a3ed3f91afaabb79 /libglusterfsclient/src/libglusterfsclient.c
parent53438fa2826ea6a5ea9fd9751d797c2875c2dca5 (diff)
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 <avati@dev.gluster.com> 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
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.c')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 705373f..c23dd6f 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);
}