]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/fs_types: fix unsigned integer overflow 12440/head
authorrunsisi <runsisi@zte.com.cn>
Mon, 12 Dec 2016 02:40:24 +0000 (10:40 +0800)
committerrunsisi <runsisi@zte.com.cn>
Mon, 12 Dec 2016 05:53:30 +0000 (13:53 +0800)
commit722a9a7f79a827fd55d1d657a95bc06add676f36
tree28b710ab0d4140d9ce77160b310948da561f3aef
parenta5c5ba6bb791f585f7a9ada103dc55a2866e5f81
include/fs_types: fix unsigned integer overflow

stats image has (stripe_count * object_size) > UINT32_MAX results following exception:
  ...
  5: (()+0xc3391) [0x7f720e638391]
  6: (librbd::Image::stat(rbd_image_info_t&, unsigned long)+0x46) [0x7f720e5d1fd6]
  7: (rbd::action::info::execute(boost::program_options::variables_map const&)+0x194) [0x7f7218266744]
  8: (rbd::Shell::execute(std::vector<char const*, std::allocator<char const*> > const&)+0x87d) [0x7f721823c1bd]
  9: (main()+0x72) [0x7f721820b4c2]
  ...
  Floating point exception (core dumped)

Signed-off-by: runsisi <runsisi@zte.com.cn>
src/include/fs_types.h