]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
fastbmap_allocator_impl: avoid std::vector[] for oob index
authorSamuel Just <sjust@redhat.com>
Sat, 21 Dec 2019 02:04:47 +0000 (02:04 +0000)
committerSamuel Just <sjust@redhat.com>
Thu, 23 Jan 2020 00:03:14 +0000 (16:03 -0800)
commit9c89b16a8c3dfefd3a2d93dea533350377178ff5
treefa460f5cf6f3e61e93dd7558cfcd3279da9b1918
parentd2b4cd28203a10d5eea5c2dbcee68413cacc12eb
fastbmap_allocator_impl: avoid std::vector[] for oob index

This was relatively harmless as the pointer won't actually be
dereferenced, but it runs afoul of std::vector's bounds checks with
_GLIBCXX_ASSERTIONS enabled.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/os/bluestore/fastbmap_allocator_impl.cc