]> git.apps.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>
Mon, 6 Jun 2016 16:36:00 +0000 (09:36 -0700)
commit1737ff3f49080904ef07a7519d200ee608fab446
tree79b263e780b73f5f127cd9fc98245afc5360403b
parentb1c4c4c456d1d20ccc91de4f762dbe46d8e339a3
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>
(cherry picked from commit 42fad4b76def50a0984bf3de06f78ed434d56954)
src/common/hobject.cc