ceph/ceph — pull request #1150 by jdurgin (2014-01-28 01:58:08+00:00)
Title: ReplicatedPG: avoid undefined behavior in xattr cmp

Reading past the end of a pointer returned by string.data() in c++98 is
undefined. This value is passed to strcmp later, so simply use the
NUL-terminated c_str() instead.

Fixes: #7250 Backport: dumpling Signed-off-by: Josh Durgin