[Bugs] [Bug 1221008] libgfapi: Segfault seen when glfs_*() methods are invoked with invalid glfd
bugzilla at redhat.com
bugzilla at redhat.com
Tue Jul 7 15:06:46 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1221008
--- Comment #4 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/10759 committed in master by Shyamsundar
Ranganathan (srangana at redhat.com)
------
commit afa793ff16b349989ca7c958466eae15d2d003f9
Author: Prashanth Pai <ppai at redhat.com>
Date: Tue May 12 16:36:55 2015 +0530
libgfapi: Gracefully exit when glfd is invalid
When glfs_* methods operating on glfd are invoked after calling
glfs_close(), the program segfaults inside __GLFS_ENTRY_VALIDATE_FD
trying to deference glfd->fd->inode which is invalid.
Also, returning EBADF seemed more specific than EINVAL.
BUG: 1221008
Change-Id: I13a92dca52da9a300252b69e026581b3a9e931fd
Signed-off-by: Prashanth Pai <ppai at redhat.com>
Reviewed-on: http://review.gluster.org/10759
Tested-by: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Shyamsundar Ranganathan <srangana at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=r2pOJFB26n&a=cc_unsubscribe
More information about the Bugs
mailing list