]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: avoid undefined behavior in xattr comparison
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 7 Feb 2014 02:50:50 +0000 (18:50 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 18 Feb 2014 20:34:33 +0000 (12:34 -0800)
commite550ad79154ead3c276a2cdefc75ced02c43d4c4
tree1ee4344b0c62f19295bae796b3636db1e5f86beb
parent4b229f71caee6ae2b0eb6104e604545f2afe4514
ReplicatedPG: avoid undefined behavior in xattr comparison

Reading past the end of a pointer returned by string.data() in c++98
is undefined. While we're fixing this, also allow comparison of xattrs
containing null bytes.

Fixes: #7250
Backport: dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
PendingReleaseNotes
src/osd/ReplicatedPG.cc
src/test/librados/c_read_operations.cc