]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: does not crash if image header is too short 9044/head
authorKefu Chai <kchai@redhat.com>
Wed, 27 Apr 2016 16:59:34 +0000 (00:59 +0800)
committerJason Dillaman <dillaman@redhat.com>
Tue, 10 May 2016 16:27:53 +0000 (12:27 -0400)
commita2eb187658d045160fb85f6c1d9437eaa49f0830
tree7aa4c2de33d4dc0ae023d2c73efae3a45b75afdf
parentf99aba4a869bbb6dda5353a6f5c9c65da32dcd02
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>
(cherry picked from commit 7b52183addda83f98c8b1f37d3de20ca0fc4687b)
src/librbd/internal.cc