]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
utime.h: fix OVERFLOW_BEFORE_WIDEN
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 13 Mar 2015 16:21:02 +0000 (17:21 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 17 Mar 2015 08:19:40 +0000 (09:19 +0100)
commita894223ce5c53263e0a641a63363acea60c44cb6
tree2562e2d3b793fef186a0e501e3246757b4af874b
parent9a3a8a032e105f8682b32ebd6fa5a63e5ec5bb23
utime.h: fix OVERFLOW_BEFORE_WIDEN

CID 1274295 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
 overflow_before_widen: Potentially overflowing expression
 usec * 1000 with type int (32 bits, signed) 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/include/utime.h