]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: fix key num handling in PGBackend::omap_get_keys(). 35066/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 14 May 2020 10:17:05 +0000 (12:17 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 14 May 2020 11:21:36 +0000 (13:21 +0200)
commit4d93b817ab9a3edcac193ab5699cb9ffb05478e9
tree102ad239030f56252b8e3975cd97b228462303fa
parent1bbcad1fcb9fbb014fbfdb825d99189342615660
crimson/osd: fix key num handling in PGBackend::omap_get_keys().

The patch fixes running-out-of-buffer when decoding the data
from `omap_get_keys()`. In some cases, the declared number
of encoded keys is greater by 1 from the actual causing execption
`buffer::end_of_buffer` to be thrown at decoder.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/pg_backend.cc