[Bugs] [Bug 1235904] New: fgetxattr() crashes when key name is NULL
bugzilla at redhat.com
bugzilla at redhat.com
Fri Jun 26 04:41:35 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1235904
Bug ID: 1235904
Summary: fgetxattr() crashes when key name is NULL
Product: GlusterFS
Version: 3.7.2
Component: posix
Assignee: bugs at gluster.org
Reporter: ppai at redhat.com
CC: bugs at gluster.org, gluster-bugs at redhat.com
Description of problem:
fgetxattr() crashes when key name is NULL
Version-Release number of selected component (if applicable):
3.7.x branch
This is used to get the size of xattr list (to later allocate buffer):
glfs_flistxattr(glfd, NULL, 0);
glfs_flistxattr() internally has the following call:
syncop_fgetxattr (subvol, fd, &xattr, NULL, NULL, NULL);
strncmp() segfaults as name is NULL in posix_fgetxattr()
Actual results:
SEGFAULT
Expected results:
No crash
Additional info:
This coverity fix that's in master was missed (not backported) from 3.7.x
branch.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list