diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-07-25 12:59:14 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-07-27 11:33:35 -0700 |
commit | f33cdc33e28fa8364691a853e3bee84b335a4f9c (patch) | |
tree | 30781f854201e40ab043c2483ae6e2a43c06beb0 /libglusterfsclient/src | |
parent | ccd93eb64c0f2f73f83e025d3efae794803aaa4c (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')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index a670ffa5102..7df96bebfdf 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); } |