[Bugs] [Bug 1142406] Core: client crash while doing rename operations on the mount
bugzilla at redhat.com
bugzilla at redhat.com
Wed Sep 17 04:26:04 UTC 2014
https://bugzilla.redhat.com/show_bug.cgi?id=1142406
--- Comment #2 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/8750 committed in release-3.6 by Vijay Bellur
(vbellur at redhat.com)
------
commit a6499d32292ca5a1418e1c785d617317226b2f53
Author: Raghavendra G <rgowdapp at redhat.com>
Date: Tue Sep 16 13:55:03 2014 -0400
cluster/dht: fix memory corruption in locking api.
<man 3 qsort>
The contents of the array are sorted in ascending order
according to a comparison function pointed to by compar, which is
called with two arguments that "point to the objects being
compared".
</man 3 qsort>
qsort passes "pointers to members of the array" to comparision
function. Since the members of the array happen to be (dht_lock_t *),
the arguments passed to dht_lock_request_cmp are of type (dht_lock_t
**). Previously we assumed them to be of type (dht_lock_t *), which
resulted in memory corruption.
Change-Id: Iee0758704434beaff3c3a1ad48d549cbdc9e1c96
BUG: 1142406
Signed-off-by: Raghavendra G <rgowdapp at redhat.com>
Reviewed-on-master: http://review.gluster.org/8659
Tested-by: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Shyamsundar Ranganathan <srangana at redhat.com>
Reviewed-by: Vijay Bellur <vbellur at redhat.com>
Reviewed-on: http://review.gluster.org/8750
--
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=mMgPpCz9Tg&a=cc_unsubscribe
More information about the Bugs
mailing list