]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
hobject: compensate for non-canonical hobject_t::get_max() encodings
authorSamuel Just <sjust@redhat.com>
Fri, 3 Jun 2016 00:36:21 +0000 (17:36 -0700)
committerSamuel Just <sjust@redhat.com>
Sat, 4 Jun 2016 17:09:35 +0000 (10:09 -0700)
commit42fad4b76def50a0984bf3de06f78ed434d56954
tree38c6dbfca4daa4c7e44fdb07a18a5dbf75c6fe92
parent542931f69cc53470b2e6c04319b2e10c3b39ea53
hobject: compensate for non-canonical hobject_t::get_max() encodings

This closes a loop-hole that could allow a non-canonical in memory
hobject_t::get_max() object which would return true for is_max(), but
false for *this == hobject_t::get_max().

Fixes: http://tracker.ceph.com/issues/16113
Signed-off-by: Samuel Just <sjust@redhat.com>
src/common/hobject.cc