]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Striper.cc: fix another OVERFLOW_BEFORE_WIDEN
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 12 Mar 2015 21:56:22 +0000 (22:56 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 17 Mar 2015 08:19:39 +0000 (09:19 +0100)
commitd871889b31e5aa1e7b1953f16e33f217e16a336d
treed3777034dbeee770ebf2040c7d557e0f21f22d2a
parent3703940848935c98f8313c5dc6135f1a2a707725
osdc/Striper.cc: fix another OVERFLOW_BEFORE_WIDEN

Fix for:

CID 1247720 (#1 of 1): Unintentional integer overflow
(OVERFLOW_BEFORE_WIDEN)
 overflow_before_widen: Potentially overflowing expression
 stripe_count * stripe_unit with type unsigned int (32 bits,
 unsigned) is evaluated using 32-bit arithmetic before being
 used in a context which expects an expression of type
 uint64_t (64 bits, unsigned).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osdc/Striper.cc