]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: does not crash if image header is too short 8785/head
authorKefu Chai <kchai@redhat.com>
Wed, 27 Apr 2016 16:59:34 +0000 (00:59 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 27 Apr 2016 16:59:44 +0000 (00:59 +0800)
commit7b52183addda83f98c8b1f37d3de20ca0fc4687b
tree723640a0a1c2d65f78e17d2a9f073ebb65f4eeea
parentff18083d2364a7dc66d54f1cf46be70d47a8e252
librbd: does not crash if image header is too short

if something goes wrong with the object, and returns a chunk shorter
than expected, don't panic

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/librbd/internal.cc