Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librados: invalid free() in rados_getxattrs_next()
Invalid free() can cause corruption when getting an object attribute with empty value. Check the validity of the pointer before free(). Also move the free() call at the start of rados_getxattrs_next() to avoid memory leak. Fixes: http://tracker.ceph.com/issues/22042 Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
- Loading branch information