]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: add check when try to get_block_device_size()
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 22 Jul 2016 03:11:33 +0000 (11:11 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 29 Jul 2016 03:13:48 +0000 (11:13 +0800)
commitf6cfb48b92f2922ae664b92bdfc683a08e77b8a2
tree60da196b26d5d672b203fee452e087207420d4ea
parente7cfdc842e731ba964c72a8b3fd07459a1d27c39
os/bluestore: add check when try to get_block_device_size()

If "id" passed in is greater than bdev.size(), then
bdev[id] is undefined and the code is at risk of accessing
violation.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueFS.cc